@nebula.js/sn-pivot-table 3.8.1 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.8.1
2
+ * @nebula.js/sn-pivot-table v3.8.3
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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 ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=ke;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(_e[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)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!_e[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=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}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(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 k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===b.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,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function 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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,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}},Q={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}}},J={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 Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=["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"],f=["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")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${M},${M},${M}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${I}\\)$`),T=new RegExp(`^rgba\\(${M},${M},${M},${I}\\)$`),O=new RegExp(`^hsl\\(${I},${M},${M}\\)$`),N=new RegExp(`^hsla\\(${I},${M},${M},${I}\\)$`),q={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 F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(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=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(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:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(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=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,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:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new _e(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new _e(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Me)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Ie(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Me(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _e(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}_e.prototype=Re.prototype={constructor:_e,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Ie)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=function(e){
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=I(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):M(i)&&M(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&I(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!I(t[0])&&I(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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 ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Me=ke;function Ie(e){return Ie="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},Ie(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Ie(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(n)||Me.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(l++,"object"!==Ie(_e[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)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!_e[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const I=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=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}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(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 k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),I(g,t,r),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===b.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,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function 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 n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,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}},Q={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}}},J={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 Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Ie,arrayName:Me,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=["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"],f=["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")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${I},${I},${I}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${M}\\)$`),T=new RegExp(`^rgba\\(${I},${I},${I},${M}\\)$`),O=new RegExp(`^hsl\\(${M},${I},${I}\\)$`),N=new RegExp(`^hsla\\(${M},${I},${I},${M}\\)$`),q={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 F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(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=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(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:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(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=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,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:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new _e(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new _e(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ie)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Me(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ie(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _e(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}_e.prototype=Re.prototype={constructor:_e,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Me)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=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 n,r,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\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=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}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},It=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),Mt=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,_t=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:Mt(o,n),borderBottom:Mt(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=_t(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Mt(2,o)),n||(a.borderLeft=Mt(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=Mt(1,n)),t&&(r.borderRight=Mt(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(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:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=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:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}var Xt={exports:{}};function Qt(){}function Jt(){}Jt.resetWarningCache=Qt;Xt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Jt,resetWarningCache:Qt};return n.PropTypes=n,n}();var Zt=n(Xt.exports);function en(e){if(e.type)return e;if("#"===e.charAt(0))return en(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function tn(e,t){return e=en(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}var nn={exports:{}},rn={},on=Symbol.for("react.element"),an=Symbol.for("react.portal"),ln=Symbol.for("react.fragment"),sn=Symbol.for("react.strict_mode"),un=Symbol.for("react.profiler"),cn=Symbol.for("react.provider"),dn=Symbol.for("react.context"),pn=Symbol.for("react.forward_ref"),fn=Symbol.for("react.suspense"),mn=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),gn=Symbol.iterator;var vn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bn=Object.assign,yn={};function xn(e,t,n){this.props=e,this.context=t,this.refs=yn,this.updater=n||vn}function Sn(){}function En(e,t,n){this.props=e,this.context=t,this.refs=yn,this.updater=n||vn}xn.prototype.isReactComponent={},xn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Sn.prototype=xn.prototype;var Cn=En.prototype=new Sn;Cn.constructor=En,bn(Cn,xn.prototype),Cn.isPureReactComponent=!0;var wn=Array.isArray,Rn=Object.prototype.hasOwnProperty,Ln={current:null},kn={key:!0,ref:!0,__self:!0,__source:!0};function In(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Rn.call(t,r)&&!kn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:on,type:e,key:i,ref:a,props:o,_owner:Ln.current}}function Mn(e){return"object"==typeof e&&null!==e&&e.$$typeof===on}var _n=/\/+/g;function Pn(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function An(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case on:case an:a=!0}}if(a)return o=o(a=e),e=""===r?"."+Pn(a,0):r,wn(o)?(n="",null!=e&&(n=e.replace(_n,"$&/")+"/"),An(o,t,n,"",(function(e){return e}))):null!=o&&(Mn(o)&&(o=function(e,t){return{$$typeof:on,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(_n,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",wn(e))for(var l=0;l<e.length;l++){var s=r+Pn(i=e[l],l);a+=An(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=gn&&e[gn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=An(i=i.value,t,n,s=r+Pn(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Dn(e,t,n){if(null==e)return e;var r=[],o=0;return An(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Tn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var On={current:null},Nn={transition:null},qn={ReactCurrentDispatcher:On,ReactCurrentBatchConfig:Nn,ReactCurrentOwner:Ln};function Fn(){throw Error("act(...) is not supported in production builds of React.")}rn.Children={map:Dn,forEach:function(e,t,n){Dn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return Dn(e,(function(){t++})),t},toArray:function(e){return Dn(e,(function(e){return e}))||[]},only:function(e){if(!Mn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},rn.Component=xn,rn.Fragment=ln,rn.Profiler=un,rn.PureComponent=En,rn.StrictMode=sn,rn.Suspense=fn,rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qn,rn.act=Fn,rn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bn({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Ln.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Rn.call(t,s)&&!kn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:on,type:e.type,key:o,ref:i,props:r,_owner:a}},rn.createContext=function(e){return(e={$$typeof:dn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:cn,_context:e},e.Consumer=e},rn.createElement=In,rn.createFactory=function(e){var t=In.bind(null,e);return t.type=e,t},rn.createRef=function(){return{current:null}},rn.forwardRef=function(e){return{$$typeof:pn,render:e}},rn.isValidElement=Mn,rn.lazy=function(e){return{$$typeof:hn,_payload:{_status:-1,_result:e},_init:Tn}},rn.memo=function(e,t){return{$$typeof:mn,type:e,compare:void 0===t?null:t}},rn.startTransition=function(e){var t=Nn.transition;Nn.transition={};try{e()}finally{Nn.transition=t}},rn.unstable_act=Fn,rn.useCallback=function(e,t){return On.current.useCallback(e,t)},rn.useContext=function(e){return On.current.useContext(e)},rn.useDebugValue=function(){},rn.useDeferredValue=function(e){return On.current.useDeferredValue(e)},rn.useEffect=function(e,t){return On.current.useEffect(e,t)},rn.useId=function(){return On.current.useId()},rn.useImperativeHandle=function(e,t,n){return On.current.useImperativeHandle(e,t,n)},rn.useInsertionEffect=function(e,t){return On.current.useInsertionEffect(e,t)},rn.useLayoutEffect=function(e,t){return On.current.useLayoutEffect(e,t)},rn.useMemo=function(e,t){return On.current.useMemo(e,t)},rn.useReducer=function(e,t,n){return On.current.useReducer(e,t,n)},rn.useRef=function(e){return On.current.useRef(e)},rn.useState=function(e){return On.current.useState(e)},rn.useSyncExternalStore=function(e,t,n){return On.current.useSyncExternalStore(e,t,n)},rn.useTransition=function(){return On.current.useTransition()},rn.version="18.3.1",nn.exports=rn;var zn=nn.exports,jn=n(zn),$n=t({__proto__:null,default:jn},[zn]);const Bn={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"},Hn={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Bn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Wn=12,Gn=14,Vn=16,Un=24,Yn=3,Kn=300,Xn=400,Qn=600,Jn=700,Zn={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};tn(Hn.GREYSCALE_0,.05),tn(Hn.GREEN_PALE,.5),tn(Hn.BLUE_PALE,.5),tn(Hn.GREEN_PALE,.5),tn(Hn.BLUE_PALE,.5),tn(Hn.GREEN_PALE,.5),tn(Hn.BLUE_PALE,.5);var er;function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}tn(Hn.GREEN_PALE,.5),tn(Hn.BLUE_PALE,.5),tn(Hn.GREEN_PALE,.5),tn(Hn.BLUE_PALE,.5);var nr,rr=function(e){return zn.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),er||(er=zn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(this,arguments)}var ir=function(e){return zn.createElement("svg",or({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),nr||(nr=zn.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 ar({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return jn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var lr=(e={})=>jn.createElement(ar,{...e},jn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},jn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),jn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),sr=(e={})=>jn.createElement(ar,{...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),jn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),ur=(e={})=>jn.createElement(ar,{fontSize:"medium",...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},jn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),cr=(e={})=>jn.createElement(ar,{fontSize:"medium",...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),jn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),dr=({className:e})=>jn.createElement(ar,{fontSize:"small",className:e},jn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},jn.createElement("g",{transform:"translate(4.324187, 1.300372)"},jn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),jn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var pr={black:"#000",white:"#fff"};var fr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var mr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var hr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var gr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var vr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var br={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var yr={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 xr(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 Sr="$$material";function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er.apply(this,arguments)}function Cr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function wr(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 Rr=Object.freeze({__proto__:null,default:wr}),Lr=function(){return Lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lr.apply(this,arguments)};function kr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ir="-ms-",Mr="-moz-",_r="-webkit-",Pr="comm",Ar="rule",Dr="decl",Tr="@import",Or="@keyframes",Nr="@layer",qr=Math.abs,Fr=String.fromCharCode,zr=Object.assign;function jr(e){return e.trim()}function $r(e,t){return(e=t.exec(e))?e[0]:e}function Br(e,t,n){return e.replace(t,n)}function Hr(e,t,n){return e.indexOf(t,n)}function Wr(e,t){return 0|e.charCodeAt(t)}function Gr(e,t,n){return e.slice(t,n)}function Vr(e){return e.length}function Ur(e){return e.length}function Yr(e,t){return t.push(e),e}function Kr(e,t){return e.filter((function(e){return!$r(e,t)}))}var Xr=1,Qr=1,Jr=0,Zr=0,eo=0,to="";function no(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xr,column:Qr,length:a,return:"",siblings:l}}function ro(e,t){return zr(no("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function oo(e){for(;e.root;)e=ro(e.root,{children:[e]});Yr(e,e.siblings)}function io(){return eo=Zr>0?Wr(to,--Zr):0,Qr--,10===eo&&(Qr=1,Xr--),eo}function ao(){return eo=Zr<Jr?Wr(to,Zr++):0,Qr++,10===eo&&(Qr=1,Xr++),eo}function lo(){return Wr(to,Zr)}function so(){return Zr}function uo(e,t){return Gr(to,e,t)}function co(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 po(e){return jr(uo(Zr-1,ho(91===e?e+2:40===e?e+1:e)))}function fo(e){for(;(eo=lo())&&eo<33;)ao();return co(e)>2||co(eo)>3?"":" "}function mo(e,t){for(;--t&&ao()&&!(eo<48||eo>102||eo>57&&eo<65||eo>70&&eo<97););return uo(e,so()+(t<6&&32==lo()&&32==ao()))}function ho(e){for(;ao();)switch(eo){case e:return Zr;case 34:case 39:34!==e&&39!==e&&ho(eo);break;case 40:41===e&&ho(e);break;case 92:ao()}return Zr}function go(e,t){for(;ao()&&e+eo!==57&&(e+eo!==84||47!==lo()););return"/*"+uo(t,Zr-1)+"*"+Fr(47===e?e:ao())}function vo(e){for(;!co(lo());)ao();return uo(e,Zr)}function bo(e){return function(e){return to="",e}(yo("",null,null,null,[""],e=function(e){return Xr=Qr=1,Jr=Vr(to=e),Zr=0,[]}(e),0,[0],e))}function yo(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=ao()){case 40:if(108!=m&&58==Wr(C,d-1)){-1!=Hr(C+=Br(po(b),"&","&\f"),"&\f",qr(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=po(b);break;case 9:case 10:case 13:case 32:C+=fo(m);break;case 92:C+=mo(so()-1,7);continue;case 47:switch(lo()){case 42:case 47:Yr(So(go(ao(),so()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Vr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Br(C,/\f/g,"")),f>0&&Vr(C)-d&&Yr(f>32?Eo(C+";",r,n,d-1,s):Eo(Br(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Yr(E=xo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)yo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Wr(C,3)?100:p){case 100:case 108:case 109:case 115:yo(e,E,E,r&&Yr(xo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:yo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Vr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==io())continue;switch(C+=Fr(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Vr(C)-1)*v,v=1;break;case 64:45===lo()&&(C+=po(ao())),p=lo(),c=d=Vr(y=C+=vo(so())),b++;break;case 45:45===m&&2==Vr(C)&&(h=0)}}return i}function xo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Ur(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Gr(e,p+1,p=qr(g=a[h])),x=e;b<m;++b)(x=jr(g>0?f[b]+" "+y:Br(y,/&\f/g,f[b])))&&(s[v++]=x);return no(e,t,n,0===o?Ar:l,s,u,c,d)}function So(e,t,n,r){return no(e,t,n,Pr,Fr(eo),Gr(e,2,-2),0,r)}function Eo(e,t,n,r,o){return no(e,t,n,Dr,Gr(e,0,r),Gr(e,r+1,-1),r,o)}function Co(e,t,n){switch(function(e,t){return 45^Wr(e,0)?(((t<<2^Wr(e,0))<<2^Wr(e,1))<<2^Wr(e,2))<<2^Wr(e,3):0}(e,t)){case 5103:return _r+"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 _r+e+e;case 4789:return Mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+Mr+e+Ir+e+e;case 5936:switch(Wr(e,t+11)){case 114:return _r+e+Ir+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+Ir+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+Ir+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _r+e+Ir+e+e;case 6165:return _r+e+Ir+"flex-"+e+e;case 5187:return _r+e+Br(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+Ir+"flex-$1$2")+e;case 5443:return _r+e+Ir+"flex-item-"+Br(e,/flex-|-self/g,"")+($r(e,/flex-|baseline/)?"":Ir+"grid-row-"+Br(e,/flex-|-self/g,""))+e;case 4675:return _r+e+Ir+"flex-line-pack"+Br(e,/align-content|flex-|-self/g,"")+e;case 5548:return _r+e+Ir+Br(e,"shrink","negative")+e;case 5292:return _r+e+Ir+Br(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+Br(e,"-grow","")+_r+e+Ir+Br(e,"grow","positive")+e;case 4554:return _r+Br(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return Br(Br(Br(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return Br(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return Br(Br(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+Ir+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_r+e+e;case 4200:if(!$r(e,/flex-|baseline/))return Ir+"grid-column-align"+Gr(e,t)+e;break;case 2592:case 3360:return Ir+Br(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,$r(e.props,/grid-\w+-end/)}))?~Hr(e+(n=n[t].value),"span",0)?e:Ir+Br(e,"-start","")+e+Ir+"grid-row-span:"+(~Hr(n,"span",0)?$r(n,/\d+/):+$r(n,/\d+/)-+$r(e,/\d+/))+";":Ir+Br(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return $r(e.props,/grid-\w+-start/)}))?e:Ir+Br(Br(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Br(e,/(.+)-inline(.+)/,_r+"$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(Vr(e)-1-t>6)switch(Wr(e,t+1)){case 109:if(45!==Wr(e,t+4))break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+Mr+(108==Wr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hr(e,"stretch",0)?Co(Br(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Br(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ir+n+":"+r+l+(o?Ir+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Wr(e,t+6))return Br(e,":",":"+_r)+e;break;case 6444:switch(Wr(e,45===Wr(e,14)?18:11)){case 120:return Br(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_r+(45===Wr(e,14)?"inline-":"")+"box$3$1"+_r+"$2$3$1"+Ir+"$2box$3")+e;case 100:return Br(e,":",":"+Ir)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Br(e,"scroll-","scroll-snap-")+e}return e}function wo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ro(e,t,n,r){switch(e.type){case Nr:if(e.children.length)break;case Tr:case Dr:return e.return=e.return||e.value;case Pr:return"";case Or:return e.return=e.value+"{"+wo(e.children,r)+"}";case Ar:if(!Vr(e.value=e.props.join(",")))return""}return Vr(n=wo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lo(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dr:return void(e.return=Co(e.value,e.length,n));case Or:return wo([ro(e,{value:Br(e.value,"@","@"+_r)})],r);case Ar:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch($r(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":oo(ro(e,{props:[Br(t,/:(read-\w+)/,":"+Mr+"$1")]})),oo(ro(e,{props:[t]})),zr(e,{props:Kr(n,r)});break;case"::placeholder":oo(ro(e,{props:[Br(t,/:(plac\w+)/,":"+_r+"input-$1")]})),oo(ro(e,{props:[Br(t,/:(plac\w+)/,":"+Mr+"$1")]})),oo(ro(e,{props:[Br(t,/:(plac\w+)/,Ir+"input-$1")]})),oo(ro(e,{props:[t]})),zr(e,{props:Kr(n,r)})}return""}))}}var ko={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},Io="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Mo="active",_o="data-styled-version",Po="6.1.11",Ao="/*!sc*/\n",Do="undefined"!=typeof window&&"HTMLElement"in window,To=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)),Oo={},No=Object.freeze([]),qo=Object.freeze({});function Fo(e,t,n){return void 0===n&&(n=qo),e.theme!==n.theme&&e.theme||t||n.theme}var zo=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"]),jo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$o=/(^-|-$)/g;function Bo(e){return e.replace(jo,"-").replace($o,"")}var Ho=/(a)(d)/gi,Wo=52,Go=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vo(e){var t,n="";for(t=Math.abs(e);t>Wo;t=t/Wo|0)n=Go(t%Wo)+n;return(Go(t%Wo)+n).replace(Ho,"$1-$2")}var Uo,Yo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ko=function(e){return Yo(5381,e)};function Xo(e){return Vo(Ko(e)>>>0)}function Qo(e){return"string"==typeof e&&!0}var Jo="function"==typeof Symbol&&Symbol.for,Zo=Jo?Symbol.for("react.memo"):60115,ei=Jo?Symbol.for("react.forward_ref"):60112,ti={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ni={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ri={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oi=((Uo={})[ei]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[Zo]=ri,Uo);function ii(e){return("type"in(t=e)&&t.type.$$typeof)===Zo?ri:"$$typeof"in e?oi[e.$$typeof]:ti;var t}var ai=Object.defineProperty,li=Object.getOwnPropertyNames,si=Object.getOwnPropertySymbols,ui=Object.getOwnPropertyDescriptor,ci=Object.getPrototypeOf,di=Object.prototype;function pi(e,t,n){if("string"!=typeof t){if(di){var r=ci(t);r&&r!==di&&pi(e,r,n)}var o=li(t);si&&(o=o.concat(si(t)));for(var i=ii(e),a=ii(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ni||n&&n[s]||a&&s in a||i&&s in i)){var u=ui(t,s);try{ai(e,s,u)}catch(e){}}}}return e}function fi(e){return"function"==typeof e}function mi(e){return"object"==typeof e&&"styledComponentId"in e}function hi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function gi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function vi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bi(e,t,n){if(void 0===n&&(n=!1),!n&&!vi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=bi(e[r],t[r]);else if(vi(t))for(var r in t)e[r]=bi(e[r],t[r]);return e}function yi(e,t){Object.defineProperty(e,"toString",{value:t})}function xi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Si=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw xi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Ao);return t},e}(),Ei=new Map,Ci=new Map,wi=1,Ri=function(e){if(Ei.has(e))return Ei.get(e);for(;Ci.has(wi);)wi++;var t=wi++;return Ei.set(e,t),Ci.set(t,e),t},Li=function(e,t){wi=t+1,Ei.set(e,t),Ci.set(t,e)},ki="style[".concat(Io,"][").concat(_o,'="').concat(Po,'"]'),Ii=new RegExp("^".concat(Io,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Mi=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},_i=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ao),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ii);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Li(c,u),Mi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Pi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Io,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Io,Mo),r.setAttribute(_o,Po);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ai=function(){function e(e){this.element=Pi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw xi(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}(),Di=function(){function e(e){this.element=Pi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ti=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}(),Oi=Do,Ni={isServer:!Do,useCSSOMInjection:!To},qi=function(){function e(e,t,n){void 0===e&&(e=qo),void 0===t&&(t={});var r=this;this.options=Lr(Lr({},Ni),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Do&&Oi&&(Oi=!1,function(e){for(var t=document.querySelectorAll(ki),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Io)!==Mo&&(_i(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),yi(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Ci.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Io,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Ao)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ri(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Lr(Lr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ti(n):t?new Ai(n):new Di(n)}(this.options),new Si(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Ri(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ri(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ri(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Fi=/&/g,zi=/^\s*\/\/.*$/gm;function ji(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=ji(e.children,t)),e}))}var $i=new qi,Bi=function(e){var t,n,r,o=void 0===e?qo:e,i=o.options,a=void 0===i?qo:i,l=o.plugins,s=void 0===l?No:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Ar&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Fi,n).replace(r,u))})),a.prefix&&c.push(Lo),c.push(Ro);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(zi,""),u=bo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=ji(u,a.namespace));var d,p=[];return wo(u,function(e){var t=Ur(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||xi(15),Yo(e,t.name)}),5381).toString():"",d}(),Hi=jn.createContext({shouldForwardProp:void 0,styleSheet:$i,stylis:Bi});function Wi(){return zn.useContext(Hi)}Hi.Consumer;var Gi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Bi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,yi(this,(function(){throw xi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Bi),this.name+e.hash},e}(),Vi=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Vi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Yi=function(e){return null==e||!1===e||""===e},Ki=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Yi(i)&&(Array.isArray(i)&&i.isCss||fi(i)?r.push("".concat(Ui(o),":"),i,";"):vi(i)?r.push.apply(r,kr(kr(["".concat(o," {")],Ki(i),!1),["}"],!1)):r.push("".concat(Ui(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ko||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Xi(e,t,n,r){return Yi(e)?[]:mi(e)?[".".concat(e.styledComponentId)]:fi(e)?!fi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Xi(e(t),t,n,r):e instanceof Gi?n?(e.inject(n,r),[e.getName(r)]):[e]:vi(e)?Ki(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map((function(e){return Xi(e,t,n,r)}))):[e.toString()];var o}function Qi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(fi(n)&&!mi(n))return!1}return!0}var Ji=Ko(Po),Zi=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Qi(e),this.componentId=t,this.baseHash=Yo(Ji,t),this.baseStyle=n,qi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=hi(r,this.staticRulesId);else{var o=gi(Xi(this.rules,e,t,n)),i=Vo(Yo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=hi(r,i),this.staticRulesId=i}else{for(var l=Yo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=gi(Xi(c,e,t,n));l=Yo(l,d+u),s+=d}}if(s){var p=Vo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=hi(r,p)}}return r},e}(),ea=jn.createContext(void 0);ea.Consumer;var ta={};new Set;function na(e,t,n){var r=mi(e),o=e,i=!Qo(e),a=t.attrs,l=void 0===a?No:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Bo(e);ta[n]=(ta[n]||0)+1;var r="".concat(n,"-").concat(Xo(Po+n+ta[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Qo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new Zi(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=jn.useContext(ea),c=Wi(),d=e.shouldForwardProp||c.shouldForwardProp,p=Fo(t,u,i)||qo,f=function(e,t,n){for(var r,o=Lr(Lr({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=fi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?hi(o[l],a[l]):"style"===l?Lr(Lr({},o[l]),a[l]):a[l]}return t.className&&(o.className=hi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Wi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=hi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[Qo(m)&&!zo.has(m)?"class":"className"]=b,h.ref=n,zn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=jn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?hi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)bi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),yi(y,(function(){return".".concat(y.styledComponentId)})),i&&pi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ra(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var oa=function(e){return Object.assign(e,{isCss:!0})};function ia(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(fi(e)||vi(e))return oa(Xi(ra(No,kr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Xi(r):oa(Xi(ra(r,t)))}function aa(e,t,n){if(void 0===n&&(n=qo),!t)throw xi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ia.apply(void 0,kr([r],o,!1)))};return r.attrs=function(r){return aa(e,t,Lr(Lr({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return aa(e,t,Lr(Lr({},n),r))},r}var la=function(e){return aa(na,e)},sa=la;zo.forEach((function(e){sa[e]=la(e)}));var ua=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qi(e),qi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(gi(Xi(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&qi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=gi(ia.apply(void 0,kr([e],t,!1))),o=Xo(r);return new Gi(o,r)}function da(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}da.propTypes={children:Zt.node,injectFirst:Zt.bool};const pa=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ia.apply(void 0,kr([e],t,!1)),o="sc-global-".concat(Xo(JSON.stringify(r))),i=new ua(r,o),a=function(e){var t=Wi(),n=jn.useContext(ea),r=jn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Oo,n,o);else{var l=Lr(Lr({},t),{theme:Fo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return jn.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var fa=pa;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=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}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&lt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&lt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Mt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),It=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,_t=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:It(o,n),borderBottom:It(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=_t(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=It(2,o)),n||(a.borderLeft=It(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=It(1,n)),t&&(r.borderRight=It(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(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:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=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:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(null,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var Mn=Array.isArray,In=Object.prototype.hasOwnProperty,_n={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)In.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:_n.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,Mn(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Mn(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:_n};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_n.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)In.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={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"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.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 cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var gr={black:"#000",white:"#fff"};var vr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var br={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var yr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var xr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Sr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Er={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Cr={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 wr(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 Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Mr(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 Ir=Object.freeze({__proto__:null,default:Mr}),_r=function(){return _r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_r.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(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 go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"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 Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$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(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Mo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Io(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Mo(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Mo(e.children,r))?e.return=e.value+"{"+n+"}":""}function _o(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Mo([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={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},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.12",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=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)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ri=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Mi=1,Ii=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Mi);)Mi++;var t=Mi++;return Li.set(e,t),ki.set(t,e),t},_i=function(e,t){Mi=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(_i(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Oi=function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ni=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},qi=function(){function e(e){this.element=Ni(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(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}(),Fi=function(){function e(e){this.element=Ni(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),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}(),ji=qo,$i={isServer:!qo,useCSSOMInjection:!Fo},Bi=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=_r(_r({},$i),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&ji&&(ji=!1,Oi(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ii(e)},e.prototype.rehydrate=function(){!this.server&&qo&&Oi(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(_r(_r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new zi(n):t?new qi(n):new Fi(n)}(this.options),new Ri(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(Ii(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ii(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ii(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Hi=/&/g,Wi=/^\s*\/\/.*$/gm;function Gi(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=Gi(e.children,t)),e}))}var Vi=new Bi,Ui=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Hi,n).replace(r,u))})),a.prefix&&c.push(_o),c.push(Io);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Wi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Gi(u,a.namespace));var d,p=[];return Mo(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Yi=Wn.createContext({shouldForwardProp:void 0,styleSheet:Vi,stylis:Ui});function Ki(){return Hn.useContext(Yi)}Yi.Consumer;var Xi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ui);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ui),this.name+e.hash},e}(),Qi=function(e){return e>="A"&&e<="Z"};function Ji(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Qi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zi=function(e){return null==e||!1===e||""===e},ea=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Zi(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Ji(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],ea(i),!1),["}"],!1)):r.push("".concat(Ji(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ta(e,t,n,r){return Zi(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ta(e(t),t,n,r):e instanceof Xi?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?ea(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ta(e,t,n,r)}))):[e.toString()];var o}function na(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var ra=Zo(Oo),oa=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&na(e),this.componentId=t,this.baseHash=Jo(ra,t),this.baseStyle=n,Bi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ta(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ta(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),ia=Wn.createContext(void 0);ia.Consumer;var aa={};new Set;function la(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);aa[n]=(aa[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+aa[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new oa(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(ia),c=Ki(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=_r(_r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?_r(_r({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Ki();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function sa(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ua=function(e){return Object.assign(e,{isCss:!0})};function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return ua(ta(sa(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ta(r):ua(ta(sa(r,t)))}function da(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ca.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return da(e,t,_r(_r({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return da(e,t,_r(_r({},n),r))},r}var pa=function(e){return da(la,e)},fa=pa;Ho.forEach((function(e){fa[e]=pa(e)}));var ma=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=na(e),Bi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ta(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Bi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ha(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ca.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Xi(o,r)}function ga(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}ga.propTypes={children:en.node,injectFirst:en.bool};const va=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ca.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new ma(r,o),a=function(e){var t=Ki(),n=Wn.useContext(ia),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=_r(_r({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var ba=va;
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.0.0-alpha.24
12
12
  *
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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 ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):sa(e),n}pa.propTypes={defaultTheme:Zt.object,styles:Zt.oneOfType([Zt.array,Zt.string,Zt.object,Zt.func])};const ha=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var ga=Object.freeze({__proto__:null,GlobalStyles:fa,StyledEngineProvider:da,ThemeContext:ea,css:ia,default:ma,internal_processStyles:ha,keyframes:ca});function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va.apply(null,arguments)}function ba(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ya(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 xa(e){if(!ya(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=xa(e[n])})),t}function Sa(e,t,n={clone:!0}){const r=n.clone?va({},e):e;return ya(e)&&ya(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ya(t[o])&&o in e&&ya(e[o])?r[o]=Sa(e[o],t[o],n):n.clone?r[o]=ya(t[o])?xa(t[o]):t[o]:r[o]=t[o])})),r}var Ea,Ca=Object.freeze({__proto__:null,default:Sa,isPlainObject:ya}),wa={exports:{}},Ra={},La=Symbol.for("react.element"),ka=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),Ma=Symbol.for("react.strict_mode"),_a=Symbol.for("react.profiler"),Pa=Symbol.for("react.provider"),Aa=Symbol.for("react.context"),Da=Symbol.for("react.server_context"),Ta=Symbol.for("react.forward_ref"),Oa=Symbol.for("react.suspense"),Na=Symbol.for("react.suspense_list"),qa=Symbol.for("react.memo"),Fa=Symbol.for("react.lazy"),za=Symbol.for("react.offscreen");function ja(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case La:switch(e=e.type){case Ia:case _a:case Ma:case Oa:case Na:return e;default:switch(e=e&&e.$$typeof){case Da:case Aa:case Ta:case Fa:case qa:case Pa:return e;default:return t}}case ka:return t}}}Ea=Symbol.for("react.module.reference"),Ra.ContextConsumer=Aa,Ra.ContextProvider=Pa,Ra.Element=La,Ra.ForwardRef=Ta,Ra.Fragment=Ia,Ra.Lazy=Fa,Ra.Memo=qa,Ra.Portal=ka,Ra.Profiler=_a,Ra.StrictMode=Ma,Ra.Suspense=Oa,Ra.SuspenseList=Na,Ra.isAsyncMode=function(){return!1},Ra.isConcurrentMode=function(){return!1},Ra.isContextConsumer=function(e){return ja(e)===Aa},Ra.isContextProvider=function(e){return ja(e)===Pa},Ra.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===La},Ra.isForwardRef=function(e){return ja(e)===Ta},Ra.isFragment=function(e){return ja(e)===Ia},Ra.isLazy=function(e){return ja(e)===Fa},Ra.isMemo=function(e){return ja(e)===qa},Ra.isPortal=function(e){return ja(e)===ka},Ra.isProfiler=function(e){return ja(e)===_a},Ra.isStrictMode=function(e){return ja(e)===Ma},Ra.isSuspense=function(e){return ja(e)===Oa},Ra.isSuspenseList=function(e){return ja(e)===Na},Ra.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ia||e===_a||e===Ma||e===Oa||e===Na||e===za||"object"==typeof e&&null!==e&&(e.$$typeof===Fa||e.$$typeof===qa||e.$$typeof===Pa||e.$$typeof===Aa||e.$$typeof===Ta||e.$$typeof===Ea||void 0!==e.getModuleId)},Ra.typeOf=ja,wa.exports=Ra;var $a=wa.exports;const Ba=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ha(e){const t=`${e}`.match(Ba);return t&&t[1]||""}function Wa(e,t=""){return e.displayName||e.name||Ha(e)||t}function Ga(e,t,n){const r=Wa(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Va=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Wa(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $a.ForwardRef:return Ga(e,e.render,"ForwardRef");case $a.Memo:return Ga(e,e.type,"memo");default:return}}},getFunctionName:Ha});function Ua(e){if("string"!=typeof e)throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ya=Object.freeze({__proto__:null,default:Ua});function Ka(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Xa(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Qa(e){return e&&e.ownerDocument||document}function Ja(e){return Qa(e).defaultView||window}function Za(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var el="undefined"!=typeof window?zn.useLayoutEffect:zn.useEffect;function tl(e){const t=zn.useRef(e);return el((()=>{t.current=e})),zn.useRef(((...e)=>(0,t.current)(...e))).current}function nl(...e){return zn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Za(e,t)}))}),e)}const rl={};const ol=[];let il=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function al(){const e=function(e,t){const n=zn.useRef(rl);return n.current===rl&&(n.current=e(t)),n}(il.create).current;var t;return t=e.disposeEffect,zn.useEffect(t,ol),e}let ll=!0,sl=!1;const ul=new il,cl={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 dl(e){e.metaKey||e.altKey||e.ctrlKey||(ll=!0)}function pl(){ll=!1}function fl(){"hidden"===this.visibilityState&&sl&&(ll=!0)}function ml(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ll||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!cl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hl(){const e=zn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",dl,!0),t.addEventListener("mousedown",pl,!0),t.addEventListener("pointerdown",pl,!0),t.addEventListener("touchstart",pl,!0),t.addEventListener("visibilitychange",fl,!0))}),[]),t=zn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ml(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sl=!0,ul.start(100,(()=>{sl=!1})),t.current=!1,!0)},ref:e}}function gl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vl(e,t){const n=va({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=va({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=va({},i),Object.keys(o).forEach((e=>{n[r][e]=vl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function bl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const yl=e=>e;var xl=(()=>{let e=yl;return{configure(t){e=t},generate:t=>e(t),reset(){e=yl}}})();const Sl={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 El(e,t,n="Mui"){const r=Sl[t];return r?`${n}-${r}`:`${xl.generate(e)}-${t}`}function Cl(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=El(e,t,n)})),r}function wl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Rl=Object.freeze({__proto__:null,default:wl});const Ll=["values","unit","step"],kl=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)=>va({},e,{[t.key]:t.val})),{})};var Il={borderRadius:4};function Ml(e,t){return t?Sa(e,t,{clone:!1}):e}const _l={xs:0,sm:600,md:900,lg:1200,xl:1536},Pl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_l[e]}px)`};function Al(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pl;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Pl;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||_l).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Dl(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Tl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Dl(e,n)||r,t&&(o=t(o,r,e)),o}function Ol(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Dl(e.theme,r)||{};return Al(e,i,(e=>{let r=Tl(a,o,e);return e===r&&"string"==typeof e&&(r=Tl(a,o,`${t}${"default"===e?"":Ua(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Nl={m:"margin",p:"padding"},ql={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Fl[e])return[e];e=Fl[e]}const[t,n]=e.split(""),r=Nl[t],o=ql[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),jl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$l=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bl(e,t,n,r){var o;const i=null!=(o=Dl(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Hl(e){return Bl(e,"spacing",8)}function Wl(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Gl(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Wl(t,n),e)),{})}(zl(n),r);return Al(e,e[n],o)}function Vl(e,t){const n=Hl(e.theme);return Object.keys(e).map((r=>Gl(e,t,r,n))).reduce(Ml,{})}function Ul(e){return Vl(e,jl)}function Yl(e){return Vl(e,$l)}function Kl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ml(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xl(e){return"number"!=typeof e?e:`${e}px solid`}function Ql(e,t){return Ol({prop:e,themeKey:"borders",transform:t})}Ul.propTypes={},Ul.filterProps=jl,Yl.propTypes={},Yl.filterProps=$l;const Jl=Ql("border",Xl),Zl=Ql("borderTop",Xl),es=Ql("borderRight",Xl),ts=Ql("borderBottom",Xl),ns=Ql("borderLeft",Xl),rs=Ql("borderColor"),os=Ql("borderTopColor"),is=Ql("borderRightColor"),as=Ql("borderBottomColor"),ls=Ql("borderLeftColor"),ss=Ql("outline",Xl),us=Ql("outlineColor"),cs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Wl(t,e)});return Al(e,e.borderRadius,n)}return null};cs.propTypes={},cs.filterProps=["borderRadius"],Kl(Jl,Zl,es,ts,ns,rs,os,is,as,ls,cs,ss,us);const ds=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bl(e.theme,"spacing",8),n=e=>({gap:Wl(t,e)});return Al(e,e.gap,n)}return null};ds.propTypes={},ds.filterProps=["gap"];const ps=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bl(e.theme,"spacing",8),n=e=>({columnGap:Wl(t,e)});return Al(e,e.columnGap,n)}return null};ps.propTypes={},ps.filterProps=["columnGap"];const fs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bl(e.theme,"spacing",8),n=e=>({rowGap:Wl(t,e)});return Al(e,e.rowGap,n)}return null};fs.propTypes={},fs.filterProps=["rowGap"];function ms(e,t){return"grey"===t?t:e}Kl(ds,ps,fs,Ol({prop:"gridColumn"}),Ol({prop:"gridRow"}),Ol({prop:"gridAutoFlow"}),Ol({prop:"gridAutoColumns"}),Ol({prop:"gridAutoRows"}),Ol({prop:"gridTemplateColumns"}),Ol({prop:"gridTemplateRows"}),Ol({prop:"gridTemplateAreas"}),Ol({prop:"gridArea"}));function hs(e){return e<=1&&0!==e?100*e+"%":e}Kl(Ol({prop:"color",themeKey:"palette",transform:ms}),Ol({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ms}),Ol({prop:"backgroundColor",themeKey:"palette",transform:ms}));const gs=Ol({prop:"width",transform:hs}),vs=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||_l[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:hs(t)}};return Al(e,e.maxWidth,t)}return null};vs.filterProps=["maxWidth"];const bs=Ol({prop:"minWidth",transform:hs}),ys=Ol({prop:"height",transform:hs}),xs=Ol({prop:"maxHeight",transform:hs}),Ss=Ol({prop:"minHeight",transform:hs});Ol({prop:"size",cssProperty:"width",transform:hs}),Ol({prop:"size",cssProperty:"height",transform:hs});Kl(gs,vs,bs,ys,xs,Ss,Ol({prop:"boxSizing"}));var Es={border:{themeKey:"borders",transform:Xl},borderTop:{themeKey:"borders",transform:Xl},borderRight:{themeKey:"borders",transform:Xl},borderBottom:{themeKey:"borders",transform:Xl},borderLeft:{themeKey:"borders",transform:Xl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cs},color:{themeKey:"palette",transform:ms},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ms},backgroundColor:{themeKey:"palette",transform:ms},p:{style:Yl},pt:{style:Yl},pr:{style:Yl},pb:{style:Yl},pl:{style:Yl},px:{style:Yl},py:{style:Yl},padding:{style:Yl},paddingTop:{style:Yl},paddingRight:{style:Yl},paddingBottom:{style:Yl},paddingLeft:{style:Yl},paddingX:{style:Yl},paddingY:{style:Yl},paddingInline:{style:Yl},paddingInlineStart:{style:Yl},paddingInlineEnd:{style:Yl},paddingBlock:{style:Yl},paddingBlockStart:{style:Yl},paddingBlockEnd:{style:Yl},m:{style:Ul},mt:{style:Ul},mr:{style:Ul},mb:{style:Ul},ml:{style:Ul},mx:{style:Ul},my:{style:Ul},margin:{style:Ul},marginTop:{style:Ul},marginRight:{style:Ul},marginBottom:{style:Ul},marginLeft:{style:Ul},marginX:{style:Ul},marginY:{style:Ul},marginInline:{style:Ul},marginInlineStart:{style:Ul},marginInlineEnd:{style:Ul},marginBlock:{style:Ul},marginBlockStart:{style:Ul},marginBlockEnd:{style:Ul},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:ds},rowGap:{style:fs},columnGap:{style:ps},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hs},maxWidth:{style:vs},minWidth:{transform:hs},height:{transform:hs},maxHeight:{transform:hs},minHeight:{transform:hs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Cs=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Dl(n,l)||{};if(u)return u(o);return Al(o,t,(t=>{let n=Tl(c,s,t);return t===n&&"string"==typeof t&&(n=Tl(c,s,`${e}${"default"===t?"":Ua(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Es;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Ml(s,e(n,o,i,a));else{const e=Al({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Ml(s,e):s[n]=t({sx:o,theme:i})}else s=Ml(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Cs.filterProps=["sx"];var ws=Cs;function Rs(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Ls=["breakpoints","palette","spacing","shape"];function ks(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ba(e,Ls),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ba(e,Ll),i=kl(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return va({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Hl({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Sa({breakpoints:l,direction:"ltr",components:{},palette:va({mode:"light"},r),spacing:s,shape:va({},Il,i)},a);return u.applyStyles=Rs,u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=va({},Es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ws({sx:e,theme:this})},u}function Is(e=null){const t=zn.useContext(ea);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ms=ks();function _s(e=Ms){return Is(e)}var Ps={exports:{}},As={},Ds=zn,Ts=Symbol.for("react.element"),Os=Symbol.for("react.fragment"),Ns=Object.prototype.hasOwnProperty,qs=Ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fs={key:!0,ref:!0,__self:!0,__source:!0};function zs(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ns.call(t,r)&&!Fs.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ts,type:e,key:i,ref:a,props:o,_owner:qs.current}}As.Fragment=Os,As.jsx=zs,As.jsxs=zs,Ps.exports=As;var js=Ps.exports;function $s({styles:e,themeId:t,defaultTheme:n={}}){const r=_s(n),o="function"==typeof e?e(t&&r[t]||r):e;return js.jsx(fa,{styles:o})}const Bs=["sx"],Hs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Es;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ws(e){const{sx:t}=e,n=ba(e,Bs),{systemProps:r,otherProps:o}=Hs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ya(n)?va({},r,n):r}:va({},r,t),va({},o,{sx:i})}function Gs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gs(e))&&(r&&(r+=" "),r+=t);return r}const Us=["className","component"];const Ys=["ownerState"],Ks=["variants"],Xs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Js=ks(),Zs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eu({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tu(e){return e?(t,n)=>n[e]:null}function nu(e,t){let{ownerState:n}=t,r=ba(t,Ys);const o="function"==typeof e?e(va({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nu(e,va({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=ba(o,Ks);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(va({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(va({ownerState:n},r)):e.style))})),t}return o}function ru({props:e,name:t,defaultTheme:n,themeId:r}){let o=_s(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function ou(e,t=0,n=1){return wl(e,t,n)}function iu(e){if(e.type)return e;if("#"===e.charAt(0))return iu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(wr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(wr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function au(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function lu(e){let t="hsl"===(e=iu(e)).type||"hsla"===e.type?iu(function(e){e=iu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),au({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 su(e,t){return e=iu(e),t=ou(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,au(e)}var uu=zn.createContext(null);function cu(){return zn.useContext(uu)}var du="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pu(e){const{children:t,theme:n}=e,r=cu(),o=zn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return va({},e,t)}(r,n);return null!=e&&(e[du]=null!==r),e}),[n,r]);return js.jsx(uu.Provider,{value:o,children:t})}function fu(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 mu(e){if(!fu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mu(e[n])})),t}function hu(e,t,n={clone:!0}){const r=n.clone?va({},e):e;return fu(e)&&fu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(fu(t[o])&&o in e&&fu(e[o])?r[o]=hu(e[o],t[o],n):n.clone?r[o]=fu(t[o])?mu(t[o]):t[o]:r[o]=t[o])})),r}function gu(e){if("string"!=typeof e)throw new Error(xr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vu(e){return e&&e.ownerDocument||document}function bu(e){return vu(e).defaultView||window}var yu="undefined"!=typeof window?zn.useLayoutEffect:zn.useEffect;let xu=0;const Su=$n["useId".toString()];function Eu(e){if(void 0!==Su){const t=Su();return null!=e?e:t}return function(e){const[t,n]=zn.useState(e),r=e||t;return zn.useEffect((()=>{null==t&&(xu+=1,n(`mui-${xu}`))}),[t]),r}(e)}function Cu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=zn.useRef(void 0!==e),[i,a]=zn.useState(t);return[o?e:i,zn.useCallback((e=>{o||a(e)}),[])]}function wu(e){const t=zn.useRef(e);return yu((()=>{t.current=e})),zn.useRef(((...e)=>(0,t.current)(...e))).current}function Ru(...e){return zn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Lu{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Lu}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let ku=!0,Iu=!1;const Mu=new Lu,_u={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 Pu(e){e.metaKey||e.altKey||e.ctrlKey||(ku=!0)}function Au(){ku=!1}function Du(){"hidden"===this.visibilityState&&Iu&&(ku=!0)}function Tu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ku||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!_u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ou(){const e=zn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Pu,!0),t.addEventListener("mousedown",Au,!0),t.addEventListener("pointerdown",Au,!0),t.addEventListener("touchstart",Au,!0),t.addEventListener("visibilitychange",Du,!0))}),[]),t=zn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Tu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Iu=!0,Mu.start(100,(()=>{Iu=!1})),t.current=!1,!0)},ref:e}}function Nu(e,t){const n=va({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=va({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=va({},i),Object.keys(o).forEach((e=>{n[r][e]=Nu(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const qu=e=>e;var Fu=(()=>{let e=qu;return{configure(t){e=t},generate:t=>e(t),reset(){e=qu}}})();const zu={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 ju(e,t,n="Mui"){const r=zu[t];return r?`${n}-${r}`:`${Fu.generate(e)}-${t}`}function $u(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ju(e,t,n)})),r}const Bu=["mode","contrastThreshold","tonalOffset"],Hu={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:pr.white,default:pr.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}},Wu={text:{primary:pr.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:pr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Gu(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=iu(e),t=ou(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return au(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=iu(e),t=ou(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return au(e)}(e.main,i)))}function Vu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Cr(e,Bu),i=e.primary||function(e="light"){return"dark"===e?{main:hr[200],light:hr[50],dark:hr[400]}:{main:hr[700],light:hr[400],dark:hr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mr[200],light:mr[50],dark:mr[400]}:{main:mr[500],light:mr[300],dark:mr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:fr[500],light:fr[300],dark:fr[700]}:{main:fr[700],light:fr[400],dark:fr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:gr[400],light:gr[300],dark:gr[700]}:{main:gr[700],light:gr[500],dark:gr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[800],light:vr[500],dark:vr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:br[400],light:br[300],dark:br[700]}:{main:"#ed6c02",light:br[500],dark:br[900]}}(t);function d(e){const t=function(e,t){const n=lu(e),r=lu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Wu.text.primary)>=n?Wu.text.primary:Hu.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Er({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(xr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(xr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Gu(e,"light",o,r),Gu(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Wu,light:Hu};return hu(Er({common:Er({},pr),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:yr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Uu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Yu={textTransform:"uppercase"},Ku='"Roboto", "Helvetica", "Arial", sans-serif';function Xu(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ku,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Cr(n,Uu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Er({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ku?{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,Yu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Yu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hu(Er({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Qu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Ju=["none",Qu(0,2,1,-1,0,1,1,0,0,1,3,0),Qu(0,3,1,-2,0,2,2,0,0,1,5,0),Qu(0,3,3,-2,0,3,4,0,0,1,8,0),Qu(0,2,4,-1,0,4,5,0,0,1,10,0),Qu(0,3,5,-1,0,5,8,0,0,1,14,0),Qu(0,3,5,-1,0,6,10,0,0,1,18,0),Qu(0,4,5,-2,0,7,10,1,0,2,16,1),Qu(0,5,5,-3,0,8,10,1,0,3,14,2),Qu(0,5,6,-3,0,9,12,1,0,3,16,2),Qu(0,6,6,-3,0,10,14,1,0,4,18,3),Qu(0,6,7,-4,0,11,15,1,0,4,20,3),Qu(0,7,8,-4,0,12,17,2,0,5,22,4),Qu(0,7,8,-4,0,13,19,2,0,5,24,4),Qu(0,7,9,-4,0,14,21,2,0,5,26,4),Qu(0,8,9,-5,0,15,22,2,0,6,28,5),Qu(0,8,10,-5,0,16,24,2,0,6,30,5),Qu(0,8,11,-5,0,17,26,2,0,6,32,5),Qu(0,9,11,-5,0,18,28,2,0,7,34,6),Qu(0,9,12,-6,0,19,29,2,0,7,36,6),Qu(0,10,13,-6,0,20,31,3,0,8,38,7),Qu(0,10,13,-6,0,21,33,3,0,8,40,7),Qu(0,10,14,-6,0,22,35,3,0,8,42,7),Qu(0,11,14,-7,0,23,36,3,0,9,44,8),Qu(0,11,15,-7,0,24,38,3,0,9,46,8)];const Zu=["duration","easing","delay"],ec={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)"},tc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nc(e){return`${Math.round(e)}ms`}function rc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function oc(e){const t=Er({},ec,e.easing),n=Er({},tc,e.duration);return Er({getAutoHeightDuration:rc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Cr(r,Zu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:nc(o)} ${i} ${"string"==typeof a?a:nc(a)}`)).join(",")}},e,{easing:t,duration:n})}var ic={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ac=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function lc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Cr(e,ac);if(e.vars)throw new Error(xr(18));const l=Vu(r),s=ks(e);let u=hu(s,{mixins:(c=s.breakpoints,d=n,Er({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ju.slice(),typography:Xu(l,i),transitions:oc(o),zIndex:Er({},ic),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=hu(u,a),u=t.reduce(((e,t)=>hu(e,t)),u),u.unstable_sxConfig=Er({},Es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ws({sx:e,theme:this})},u}var sc=lc();function uc(){const e=_s(sc);return e[Sr]||e}function cc({props:e,name:t}){return ru({props:e,name:t,defaultTheme:sc,themeId:Sr})}const dc=e=>Qs(e)&&"classes"!==e,pc=Qs,fc=function(e={}){const{themeId:t,defaultTheme:n=Js,rootShouldForwardProp:r=Qs,slotShouldForwardProp:o=Qs}=e,i=e=>ws(va({},e,{theme:eu(va({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ha(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tu(Zs(s))}=a,p=ba(a,Xs),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Qs;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ma(e,va({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||ya(e)?r=>nu(e,va({},r,{theme:eu({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=eu(va({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=nu(n,va({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=eu(va({},e,{defaultTheme:n,themeId:t}));return nu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},va({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Sr,defaultTheme:sc,rootShouldForwardProp:dc});var mc=fc;var hc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function gc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gc(e))&&(r&&(r+=" "),r+=t);return r}function bc(e){return ju("MuiSvgIcon",e)}$u("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xc=mc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${gu(n.color)}`],t[`fontSize${gu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Sc=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Cr(n,yc),f=zn.isValidElement(r)&&"svg"===r.type,m=Er({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return bl({root:["root","inherit"!==t&&`color${gu(t)}`,`fontSize${gu(n)}`]},bc,r)})(m);return js.jsxs(xc,Er({as:a,className:vc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?js.jsx("title",{children:c}):null]}))}));Sc.muiName="SvgIcon";var Ec=Sc;var Cc,wc={},Rc=Symbol.for("react.element"),Lc=Symbol.for("react.portal"),kc=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),_c=Symbol.for("react.provider"),Pc=Symbol.for("react.context"),Ac=Symbol.for("react.server_context"),Dc=Symbol.for("react.forward_ref"),Tc=Symbol.for("react.suspense"),Oc=Symbol.for("react.suspense_list"),Nc=Symbol.for("react.memo"),qc=Symbol.for("react.lazy"),Fc=Symbol.for("react.offscreen");
17
+ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):fa(e),n}va.propTypes={defaultTheme:en.object,styles:en.oneOfType([en.array,en.string,en.object,en.func])};const xa=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Sa=Object.freeze({__proto__:null,GlobalStyles:ba,StyledEngineProvider:ga,ThemeContext:ia,css:ca,default:ya,internal_processStyles:xa,keyframes:ha});function Ea(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 Ca(e){if(!Ea(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ca(e[n])})),t}function wa(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return Ea(e)&&Ea(t)&&Object.keys(t).forEach((o=>{Ea(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ea(e[o])?r[o]=wa(e[o],t[o],n):n.clone?r[o]=Ea(t[o])?Ca(t[o]):t[o]:r[o]=t[o]})),r}var Ra,La=Object.freeze({__proto__:null,default:wa,isPlainObject:Ea}),ka={exports:{}},Ma={},Ia=Symbol.for("react.element"),_a=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Da=Symbol.for("react.profiler"),Ta=Symbol.for("react.provider"),Oa=Symbol.for("react.context"),Na=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),ja=Symbol.for("react.memo"),$a=Symbol.for("react.lazy"),Ba=Symbol.for("react.offscreen");function Ha(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ia:switch(e=e.type){case Pa:case Da:case Aa:case Fa:case za:return e;default:switch(e=e&&e.$$typeof){case Na:case Oa:case qa:case $a:case ja:case Ta:return e;default:return t}}case _a:return t}}}Ra=Symbol.for("react.module.reference"),Ma.ContextConsumer=Oa,Ma.ContextProvider=Ta,Ma.Element=Ia,Ma.ForwardRef=qa,Ma.Fragment=Pa,Ma.Lazy=$a,Ma.Memo=ja,Ma.Portal=_a,Ma.Profiler=Da,Ma.StrictMode=Aa,Ma.Suspense=Fa,Ma.SuspenseList=za,Ma.isAsyncMode=function(){return!1},Ma.isConcurrentMode=function(){return!1},Ma.isContextConsumer=function(e){return Ha(e)===Oa},Ma.isContextProvider=function(e){return Ha(e)===Ta},Ma.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ia},Ma.isForwardRef=function(e){return Ha(e)===qa},Ma.isFragment=function(e){return Ha(e)===Pa},Ma.isLazy=function(e){return Ha(e)===$a},Ma.isMemo=function(e){return Ha(e)===ja},Ma.isPortal=function(e){return Ha(e)===_a},Ma.isProfiler=function(e){return Ha(e)===Da},Ma.isStrictMode=function(e){return Ha(e)===Aa},Ma.isSuspense=function(e){return Ha(e)===Fa},Ma.isSuspenseList=function(e){return Ha(e)===za},Ma.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pa||e===Da||e===Aa||e===Fa||e===za||e===Ba||"object"==typeof e&&null!==e&&(e.$$typeof===$a||e.$$typeof===ja||e.$$typeof===Ta||e.$$typeof===Oa||e.$$typeof===qa||e.$$typeof===Ra||void 0!==e.getModuleId)},Ma.typeOf=Ha,ka.exports=Ma;var Wa=ka.exports;const Ga=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Va(e){const t=`${e}`.match(Ga);return t&&t[1]||""}function Ua(e,t=""){return e.displayName||e.name||Va(e)||t}function Ya(e,t,n){const r=Ua(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ka=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ua(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Wa.ForwardRef:return Ya(e,e.render,"ForwardRef");case Wa.Memo:return Ya(e,e.type,"memo");default:return}}},getFunctionName:Va});function Xa(e){if("string"!=typeof e)throw new Error(Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Qa=Object.freeze({__proto__:null,default:Xa});function Ja(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Za(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function el(e){return e&&e.ownerDocument||document}function tl(e){return el(e).defaultView||window}function nl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var rl="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;function ol(e){const t=Hn.useRef(e);return rl((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function il(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{nl(e,t)}))}),e)}const al={};const ll=[];let sl=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function ul(){const e=function(e,t){const n=Hn.useRef(al);return n.current===al&&(n.current=e(t)),n}(sl.create).current;var t;return t=e.disposeEffect,Hn.useEffect(t,ll),e}let cl=!0,dl=!1;const pl=new sl,fl={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 ml(e){e.metaKey||e.altKey||e.ctrlKey||(cl=!0)}function hl(){cl=!1}function gl(){"hidden"===this.visibilityState&&dl&&(cl=!0)}function vl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bl(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ml,!0),t.addEventListener("mousedown",hl,!0),t.addEventListener("pointerdown",hl,!0),t.addEventListener("touchstart",hl,!0),t.addEventListener("visibilitychange",gl,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dl=!0,pl.start(100,(()=>{dl=!1})),t.current=!1,!0)},ref:e}}function yl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xl(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=xl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const El=e=>e;var Cl=(()=>{let e=El;return{configure(t){e=t},generate:t=>e(t),reset(){e=El}}})();const wl={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 Rl(e,t,n="Mui"){const r=wl[t];return r?`${n}-${r}`:`${Cl.generate(e)}-${t}`}function Ll(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Rl(e,t,n)})),r}function kl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Ml=Object.freeze({__proto__:null,default:kl});function Il(e){return"string"==typeof e}function _l(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_l(e))&&(r&&(r+=" "),r+=t);return r}function Al(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Dl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Tl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ol(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,Tl),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Al(Xt({},o,r)),l=Dl(r),s=Dl(o),u=t(a),c=Pl(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Xt({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Il(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Nl=["values","unit","step"],ql=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)=>Xt({},e,{[t.key]:t.val})),{})};var Fl={borderRadius:4};function zl(e,t){return t?wa(e,t,{clone:!1}):e}const jl={xs:0,sm:600,md:900,lg:1200,xl:1536},$l={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jl[e]}px)`};function Bl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||$l;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||$l;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||jl).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Hl(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Wl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Hl(e,n)||r,t&&(o=t(o,r,e)),o}function Gl(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Hl(e.theme,r)||{};return Bl(e,i,(e=>{let r=Wl(a,o,e);return e===r&&"string"==typeof e&&(r=Wl(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Vl={m:"margin",p:"padding"},Ul={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Yl[e])return[e];e=Yl[e]}const[t,n]=e.split(""),r=Vl[t],o=Ul[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ql=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jl(e,t,n,r){var o;const i=null!=(o=Hl(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Zl(e){return Jl(e,"spacing",8)}function es(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ts(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=es(t,n),e)),{})}(Kl(n),r);return Bl(e,e[n],o)}function ns(e,t){const n=Zl(e.theme);return Object.keys(e).map((r=>ts(e,t,r,n))).reduce(zl,{})}function rs(e){return ns(e,Xl)}function os(e){return ns(e,Ql)}function is(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?zl(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function as(e){return"number"!=typeof e?e:`${e}px solid`}function ls(e,t){return Gl({prop:e,themeKey:"borders",transform:t})}rs.propTypes={},rs.filterProps=Xl,os.propTypes={},os.filterProps=Ql;const ss=ls("border",as),us=ls("borderTop",as),cs=ls("borderRight",as),ds=ls("borderBottom",as),ps=ls("borderLeft",as),fs=ls("borderColor"),ms=ls("borderTopColor"),hs=ls("borderRightColor"),gs=ls("borderBottomColor"),vs=ls("borderLeftColor"),bs=ls("outline",as),ys=ls("outlineColor"),xs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:es(t,e)});return Bl(e,e.borderRadius,n)}return null};xs.propTypes={},xs.filterProps=["borderRadius"],is(ss,us,cs,ds,ps,fs,ms,hs,gs,vs,xs,bs,ys);const Ss=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jl(e.theme,"spacing",8),n=e=>({gap:es(t,e)});return Bl(e,e.gap,n)}return null};Ss.propTypes={},Ss.filterProps=["gap"];const Es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jl(e.theme,"spacing",8),n=e=>({columnGap:es(t,e)});return Bl(e,e.columnGap,n)}return null};Es.propTypes={},Es.filterProps=["columnGap"];const Cs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jl(e.theme,"spacing",8),n=e=>({rowGap:es(t,e)});return Bl(e,e.rowGap,n)}return null};Cs.propTypes={},Cs.filterProps=["rowGap"];function ws(e,t){return"grey"===t?t:e}is(Ss,Es,Cs,Gl({prop:"gridColumn"}),Gl({prop:"gridRow"}),Gl({prop:"gridAutoFlow"}),Gl({prop:"gridAutoColumns"}),Gl({prop:"gridAutoRows"}),Gl({prop:"gridTemplateColumns"}),Gl({prop:"gridTemplateRows"}),Gl({prop:"gridTemplateAreas"}),Gl({prop:"gridArea"}));function Rs(e){return e<=1&&0!==e?100*e+"%":e}is(Gl({prop:"color",themeKey:"palette",transform:ws}),Gl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ws}),Gl({prop:"backgroundColor",themeKey:"palette",transform:ws}));const Ls=Gl({prop:"width",transform:Rs}),ks=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||jl[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Rs(t)}};return Bl(e,e.maxWidth,t)}return null};ks.filterProps=["maxWidth"];const Ms=Gl({prop:"minWidth",transform:Rs}),Is=Gl({prop:"height",transform:Rs}),_s=Gl({prop:"maxHeight",transform:Rs}),Ps=Gl({prop:"minHeight",transform:Rs});Gl({prop:"size",cssProperty:"width",transform:Rs}),Gl({prop:"size",cssProperty:"height",transform:Rs});is(Ls,ks,Ms,Is,_s,Ps,Gl({prop:"boxSizing"}));var As={border:{themeKey:"borders",transform:as},borderTop:{themeKey:"borders",transform:as},borderRight:{themeKey:"borders",transform:as},borderBottom:{themeKey:"borders",transform:as},borderLeft:{themeKey:"borders",transform:as},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:as},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xs},color:{themeKey:"palette",transform:ws},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ws},backgroundColor:{themeKey:"palette",transform:ws},p:{style:os},pt:{style:os},pr:{style:os},pb:{style:os},pl:{style:os},px:{style:os},py:{style:os},padding:{style:os},paddingTop:{style:os},paddingRight:{style:os},paddingBottom:{style:os},paddingLeft:{style:os},paddingX:{style:os},paddingY:{style:os},paddingInline:{style:os},paddingInlineStart:{style:os},paddingInlineEnd:{style:os},paddingBlock:{style:os},paddingBlockStart:{style:os},paddingBlockEnd:{style:os},m:{style:rs},mt:{style:rs},mr:{style:rs},mb:{style:rs},ml:{style:rs},mx:{style:rs},my:{style:rs},margin:{style:rs},marginTop:{style:rs},marginRight:{style:rs},marginBottom:{style:rs},marginLeft:{style:rs},marginX:{style:rs},marginY:{style:rs},marginInline:{style:rs},marginInlineStart:{style:rs},marginInlineEnd:{style:rs},marginBlock:{style:rs},marginBlockStart:{style:rs},marginBlockEnd:{style:rs},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ss},rowGap:{style:Cs},columnGap:{style:Es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rs},maxWidth:{style:ks},minWidth:{transform:Rs},height:{transform:Rs},maxHeight:{transform:Rs},minHeight:{transform:Rs},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,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Hl(n,l)||{};if(u)return u(o);return Bl(o,t,(t=>{let n=Wl(c,s,t);return t===n&&"string"==typeof t&&(n=Wl(c,s,`${e}${"default"===t?"":Xa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:As;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=zl(s,e(n,o,i,a));else{const e=Bl({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=zl(s,e):s[n]=t({sx:o,theme:i})}else s=zl(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ds.filterProps=["sx"];var Ts=Ds;function Os(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Ns=["breakpoints","palette","spacing","shape"];function qs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,Ns),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,Nl),i=ql(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Xt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Zl({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},Fl,i)},a);return u.applyStyles=Os,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}function Fs(e=null){const t=Hn.useContext(ia);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const zs=qs();function js(e=zs){return Fs(e)}var $s={exports:{}},Bs={},Hs=Hn,Ws=Symbol.for("react.element"),Gs=Symbol.for("react.fragment"),Vs=Object.prototype.hasOwnProperty,Us=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0};function Ks(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Vs.call(t,r)&&!Ys.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ws,type:e,key:i,ref:a,props:o,_owner:Us.current}}Bs.Fragment=Gs,Bs.jsx=Ks,Bs.jsxs=Ks,$s.exports=Bs;var Xs=$s.exports;function Qs({styles:e,themeId:t,defaultTheme:n={}}){const r=js(n),o="function"==typeof e?e(t&&r[t]||r):e;return Xs.jsx(ba,{styles:o})}const Js=["sx"],Zs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:As;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function eu(e){const{sx:t}=e,n=rn(e,Js),{systemProps:r,otherProps:o}=Zs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}const tu=["className","component"];const nu=["ownerState"],ru=["variants"],ou=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const au=qs(),lu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function su({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function uu(e){return e?(t,n)=>n[e]:null}function cu(e,t){let{ownerState:n}=t,r=rn(t,nu);const o="function"==typeof e?e(Xt({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>cu(e,Xt({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=rn(o,ru);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Xt({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Xt({ownerState:n},r)):e.style))})),t}return o}function du({props:e,name:t,defaultTheme:n,themeId:r}){let o=js(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function pu(e,t=0,n=1){return kl(e,t,n)}function fu(e){if(e.type)return e;if("#"===e.charAt(0))return fu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Mr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function hu(e){let t="hsl"===(e=fu(e)).type||"hsla"===e.type?fu(function(e){e=fu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),mu({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 gu(e,t){return e=fu(e),t=pu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mu(e)}function vu(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 bu(e){if(!vu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=bu(e[n])})),t}function yu(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return vu(e)&&vu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(vu(t[o])&&o in e&&vu(e[o])?r[o]=yu(e[o],t[o],n):n.clone?r[o]=vu(t[o])?bu(t[o]):t[o]:r[o]=t[o])})),r}function xu(e){if("string"!=typeof e)throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Su(e){return e&&e.ownerDocument||document}function Eu(e){return Su(e).defaultView||window}var Cu="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;let wu=0;const Ru=Gn["useId".toString()];function Lu(e){if(void 0!==Ru){const t=Ru();return null!=e?e:t}return function(e){const[t,n]=Hn.useState(e),r=e||t;return Hn.useEffect((()=>{null==t&&(wu+=1,n(`mui-${wu}`))}),[t]),r}(e)}function ku({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Hn.useRef(void 0!==e),[i,a]=Hn.useState(t);return[o?e:i,Hn.useCallback((e=>{o||a(e)}),[])]}function Mu(e){const t=Hn.useRef(e);return Cu((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function Iu(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class _u{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _u}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Pu=!0,Au=!1;const Du=new _u,Tu={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 Ou(e){e.metaKey||e.altKey||e.ctrlKey||(Pu=!0)}function Nu(){Pu=!1}function qu(){"hidden"===this.visibilityState&&Au&&(Pu=!0)}function Fu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Pu||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zu(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ou,!0),t.addEventListener("mousedown",Nu,!0),t.addEventListener("pointerdown",Nu,!0),t.addEventListener("touchstart",Nu,!0),t.addEventListener("visibilitychange",qu,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Au=!0,Du.start(100,(()=>{Au=!1})),t.current=!1,!0)},ref:e}}function ju(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=ju(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const $u=e=>e;var Bu=(()=>{let e=$u;return{configure(t){e=t},generate:t=>e(t),reset(){e=$u}}})();const Hu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wu(e,t,n="Mui"){const r=Hu[t];return r?`${n}-${r}`:`${Bu.generate(e)}-${t}`}function Gu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Wu(e,t,n)})),r}const Vu=["mode","contrastThreshold","tonalOffset"],Uu={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:gr.white,default:gr.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}},Yu={text:{primary:gr.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:gr.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 Ku(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=fu(e),t=pu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mu(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fu(e),t=pu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mu(e)}(e.main,i)))}function Xu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,Vu),i=e.primary||function(e="light"){return"dark"===e?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[700],light:yr[400],dark:yr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[500],light:br[300],dark:br[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[700],light:xr[500],dark:xr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[800],light:Sr[500],dark:Sr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Er[400],light:Er[300],dark:Er[700]}:{main:"#ed6c02",light:Er[500],dark:Er[900]}}(t);function d(e){const t=function(e,t){const n=hu(e),r=hu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yu.text.primary)>=n?Yu.text.primary:Uu.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Lr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ku(e,"light",o,r),Ku(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Yu,light:Uu};return yu(Lr({common:Lr({},gr),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:Cr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Qu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ju={textTransform:"uppercase"},Zu='"Roboto", "Helvetica", "Arial", sans-serif';function ec(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Qu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Lr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Zu?{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,Ju),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yu(Lr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function tc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var nc=["none",tc(0,2,1,-1,0,1,1,0,0,1,3,0),tc(0,3,1,-2,0,2,2,0,0,1,5,0),tc(0,3,3,-2,0,3,4,0,0,1,8,0),tc(0,2,4,-1,0,4,5,0,0,1,10,0),tc(0,3,5,-1,0,5,8,0,0,1,14,0),tc(0,3,5,-1,0,6,10,0,0,1,18,0),tc(0,4,5,-2,0,7,10,1,0,2,16,1),tc(0,5,5,-3,0,8,10,1,0,3,14,2),tc(0,5,6,-3,0,9,12,1,0,3,16,2),tc(0,6,6,-3,0,10,14,1,0,4,18,3),tc(0,6,7,-4,0,11,15,1,0,4,20,3),tc(0,7,8,-4,0,12,17,2,0,5,22,4),tc(0,7,8,-4,0,13,19,2,0,5,24,4),tc(0,7,9,-4,0,14,21,2,0,5,26,4),tc(0,8,9,-5,0,15,22,2,0,6,28,5),tc(0,8,10,-5,0,16,24,2,0,6,30,5),tc(0,8,11,-5,0,17,26,2,0,6,32,5),tc(0,9,11,-5,0,18,28,2,0,7,34,6),tc(0,9,12,-6,0,19,29,2,0,7,36,6),tc(0,10,13,-6,0,20,31,3,0,8,38,7),tc(0,10,13,-6,0,21,33,3,0,8,40,7),tc(0,10,14,-6,0,22,35,3,0,8,42,7),tc(0,11,14,-7,0,23,36,3,0,9,44,8),tc(0,11,15,-7,0,24,38,3,0,9,46,8)];const rc=["duration","easing","delay"],oc={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)"},ic={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ac(e){return`${Math.round(e)}ms`}function lc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sc(e){const t=Lr({},oc,e.easing),n=Lr({},ic,e.duration);return Lr({getAutoHeightDuration:lc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,rc),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ac(o)} ${i} ${"string"==typeof a?a:ac(a)}`)).join(",")}},e,{easing:t,duration:n})}var uc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,cc);if(e.vars)throw new Error(wr(18));const l=Xu(r),s=qs(e);let u=yu(s,{mixins:(c=s.breakpoints,d=n,Lr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:nc.slice(),typography:ec(l,i),transitions:sc(o),zIndex:Lr({},uc),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=yu(u,a),u=t.reduce(((e,t)=>yu(e,t)),u),u.unstable_sxConfig=Lr({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}var pc=dc();function fc(){const e=js(pc);return e[Rr]||e}function mc({props:e,name:t}){return du({props:e,name:t,defaultTheme:pc,themeId:Rr})}const hc=e=>iu(e)&&"classes"!==e,gc=iu,vc=function(e={}){const{themeId:t,defaultTheme:n=au,rootShouldForwardProp:r=iu,slotShouldForwardProp:o=iu}=e,i=e=>Ts(Xt({},e,{theme:su(Xt({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{xa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=uu(lu(s))}=a,p=rn(a,ou),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=iu;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ya(e,Xt({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Ea(e)?r=>cu(e,Xt({},r,{theme:su({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=su(Xt({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=cu(n,Xt({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=su(Xt({},e,{defaultTheme:n,themeId:t}));return cu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Xt({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Rr,defaultTheme:pc,rootShouldForwardProp:hc});var bc=vc;var yc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xc(e))&&(r&&(r+=" "),r+=t);return r}function Ec(e){return Wu("MuiSvgIcon",e)}Gu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wc=bc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${xu(n.color)}`],t[`fontSize${xu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Rc=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=kr(n,Cc),f=Hn.isValidElement(r)&&"svg"===r.type,m=Lr({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sl({root:["root","inherit"!==t&&`color${xu(t)}`,`fontSize${xu(n)}`]},Ec,r)})(m);return Xs.jsxs(wc,Lr({as:a,className:Sc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Xs.jsx("title",{children:c}):null]}))}));Rc.muiName="SvgIcon";var Lc=Rc;var kc,Mc={},Ic=Symbol.for("react.element"),_c=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Dc=Symbol.for("react.profiler"),Tc=Symbol.for("react.provider"),Oc=Symbol.for("react.context"),Nc=Symbol.for("react.server_context"),qc=Symbol.for("react.forward_ref"),Fc=Symbol.for("react.suspense"),zc=Symbol.for("react.suspense_list"),jc=Symbol.for("react.memo"),$c=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function ma(e,t){let n;return n=t?sa(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 zc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case kc:case Mc:case Ic:case Tc:case Oc:return e;default:switch(e=e&&e.$$typeof){case Ac:case Pc:case Dc:case qc:case Nc:case _c:return e;default:return t}}case Lc:return t}}}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jc(e,t)}function $c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}Cc=Symbol.for("react.module.reference"),wc.ContextConsumer=Pc,wc.ContextProvider=_c,wc.Element=Rc,wc.ForwardRef=Dc,wc.Fragment=kc,wc.Lazy=qc,wc.Memo=Nc,wc.Portal=Lc,wc.Profiler=Mc,wc.StrictMode=Ic,wc.Suspense=Tc,wc.SuspenseList=Oc,wc.isAsyncMode=function(){return!1},wc.isConcurrentMode=function(){return!1},wc.isContextConsumer=function(e){return zc(e)===Pc},wc.isContextProvider=function(e){return zc(e)===_c},wc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},wc.isForwardRef=function(e){return zc(e)===Dc},wc.isFragment=function(e){return zc(e)===kc},wc.isLazy=function(e){return zc(e)===qc},wc.isMemo=function(e){return zc(e)===Nc},wc.isPortal=function(e){return zc(e)===Lc},wc.isProfiler=function(e){return zc(e)===Mc},wc.isStrictMode=function(e){return zc(e)===Ic},wc.isSuspense=function(e){return zc(e)===Tc},wc.isSuspenseList=function(e){return zc(e)===Oc},wc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kc||e===Mc||e===Ic||e===Tc||e===Oc||e===Fc||"object"==typeof e&&null!==e&&(e.$$typeof===qc||e.$$typeof===Nc||e.$$typeof===_c||e.$$typeof===Pc||e.$$typeof===Dc||e.$$typeof===Cc||void 0!==e.getModuleId)},wc.typeOf=zc;var Bc={exports:{}},Hc={},Wc={exports:{}},Gc={};
26
+ */function Hc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ic:switch(e=e.type){case Pc:case Dc:case Ac:case Fc:case zc:return e;default:switch(e=e&&e.$$typeof){case Nc:case Oc:case qc:case $c:case jc:case Tc:return e;default:return t}}case _c:return t}}}kc=Symbol.for("react.module.reference"),Mc.ContextConsumer=Oc,Mc.ContextProvider=Tc,Mc.Element=Ic,Mc.ForwardRef=qc,Mc.Fragment=Pc,Mc.Lazy=$c,Mc.Memo=jc,Mc.Portal=_c,Mc.Profiler=Dc,Mc.StrictMode=Ac,Mc.Suspense=Fc,Mc.SuspenseList=zc,Mc.isAsyncMode=function(){return!1},Mc.isConcurrentMode=function(){return!1},Mc.isContextConsumer=function(e){return Hc(e)===Oc},Mc.isContextProvider=function(e){return Hc(e)===Tc},Mc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ic},Mc.isForwardRef=function(e){return Hc(e)===qc},Mc.isFragment=function(e){return Hc(e)===Pc},Mc.isLazy=function(e){return Hc(e)===$c},Mc.isMemo=function(e){return Hc(e)===jc},Mc.isPortal=function(e){return Hc(e)===_c},Mc.isProfiler=function(e){return Hc(e)===Dc},Mc.isStrictMode=function(e){return Hc(e)===Ac},Mc.isSuspense=function(e){return Hc(e)===Fc},Mc.isSuspenseList=function(e){return Hc(e)===zc},Mc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Dc||e===Ac||e===Fc||e===zc||e===Bc||"object"==typeof e&&null!==e&&(e.$$typeof===$c||e.$$typeof===jc||e.$$typeof===Tc||e.$$typeof===Oc||e.$$typeof===qc||e.$$typeof===kc||void 0!==e.getModuleId)},Mc.typeOf=Hc;var Wc={exports:{}},Gc={},Vc={exports:{}},Uc={};
27
27
  /**
28
28
  * @license React
29
29
  * scheduler.production.min.js
@@ -33,7 +33,7 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,A(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&D(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,R=-1,L=5,k=-1;function I(){return!(e.unstable_now()-k<L)}function M(){if(null!==w){var t=e.unstable_now();k=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(M)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=M,E=function(){P.postMessage(null)}}else E=function(){g(M,0)};function A(e){w=e,C||(C=!0,E())}function D(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,A(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,A(S))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Gc),Wc.exports=Gc;var Vc=Wc.exports,Uc=zn,Yc=Vc;
36
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,A(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!M());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&D(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,R=-1,L=5,k=-1;function M(){return!(e.unstable_now()-k<L)}function I(){if(null!==w){var t=e.unstable_now();k=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=I,E=function(){P.postMessage(null)}}else E=function(){g(I,0)};function A(e){w=e,C||(C=!0,E())}function D(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,A(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,A(S))),r},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Uc),Vc.exports=Uc;var Yc=Vc.exports,Kc=Hn,Xc=Yc;
37
37
  /**
38
38
  * @license React
39
39
  * react-dom.production.min.js
@@ -42,7 +42,7 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */function Kc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xc=new Set,Qc={};function Jc(e,t){Zc(e,t),Zc(e+"Capture",t)}function Zc(e,t){for(Qc[e]=t,e=0;e<t.length;e++)Xc.add(t[e])}var ed=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),td=Object.prototype.hasOwnProperty,nd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rd={},od={};function id(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ad={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ad[e]=new id(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ad[t]=new id(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ad[e]=new id(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ad[e]=new id(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ad[e]=new id(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ad[e]=new id(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ad[e]=new id(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ad[e]=new id(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ad[e]=new id(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ld=/[\-:]([a-z])/g;function sd(e){return e[1].toUpperCase()}function ud(e,t,n,r){var o=ad.hasOwnProperty(t)?ad[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!td.call(od,e)||!td.call(rd,e)&&(nd.test(e)?od[e]=!0:(rd[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ld,sd);ad[t]=new id(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ld,sd);ad[t]=new id(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ld,sd);ad[t]=new id(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ad[e]=new id(e,1,!1,e.toLowerCase(),null,!1,!1)})),ad.xlinkHref=new id("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ad[e]=new id(e,1,!1,e.toLowerCase(),null,!0,!0)}));var cd=Uc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,dd=Symbol.for("react.element"),pd=Symbol.for("react.portal"),fd=Symbol.for("react.fragment"),md=Symbol.for("react.strict_mode"),hd=Symbol.for("react.profiler"),gd=Symbol.for("react.provider"),vd=Symbol.for("react.context"),bd=Symbol.for("react.forward_ref"),yd=Symbol.for("react.suspense"),xd=Symbol.for("react.suspense_list"),Sd=Symbol.for("react.memo"),Ed=Symbol.for("react.lazy"),Cd=Symbol.for("react.offscreen"),wd=Symbol.iterator;function Rd(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=wd&&e[wd]||e["@@iterator"])?e:null}var Ld,kd=Object.assign;function Id(e){if(void 0===Ld)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ld=t&&t[1]||""}return"\n"+Ld+e}var Md=!1;function _d(e,t){if(!e||Md)return"";Md=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Md=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Id(e):""}function Pd(e){switch(e.tag){case 5:return Id(e.type);case 16:return Id("Lazy");case 13:return Id("Suspense");case 19:return Id("SuspenseList");case 0:case 2:case 15:return e=_d(e.type,!1);case 11:return e=_d(e.type.render,!1);case 1:return e=_d(e.type,!0);default:return""}}function Ad(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case fd:return"Fragment";case pd:return"Portal";case hd:return"Profiler";case md:return"StrictMode";case yd:return"Suspense";case xd:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case vd:return(e.displayName||"Context")+".Consumer";case gd:return(e._context.displayName||"Context")+".Provider";case bd:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Sd:return null!==(t=e.displayName||null)?t:Ad(e.type)||"Memo";case Ed:t=e._payload,e=e._init;try{return Ad(e(t))}catch(e){}}return null}function Dd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ad(t);case 8:return t===md?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Td(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Od(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Nd(e){e._valueTracker||(e._valueTracker=function(e){var t=Od(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function qd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Od(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Fd(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function zd(e,t){var n=t.checked;return kd({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function jd(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Td(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $d(e,t){null!=(t=t.checked)&&ud(e,"checked",t,!1)}function Bd(e,t){$d(e,t);var n=Td(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Wd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wd(e,t.type,Td(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Hd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Wd(e,t,n){"number"===t&&Fd(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gd=Array.isArray;function Vd(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Td(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ud(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Kc(91));return kd({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yd(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Kc(92));if(Gd(n)){if(1<n.length)throw Error(Kc(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Td(n)}}function Kd(e,t){var n=Td(t.value),r=Td(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Xd(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Qd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jd(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Qd(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Zd,ep,tp=(ep=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Zd=Zd||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ep(e,t)}))}:ep);function np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var rp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},op=["Webkit","ms","Moz","O"];function ip(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||rp.hasOwnProperty(e)&&rp[e]?(""+t).trim():t+"px"}function ap(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ip(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(rp).forEach((function(e){op.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rp[t]=rp[e]}))}));var lp=kd({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sp(e,t){if(t){if(lp[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Kc(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Kc(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Kc(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Kc(62))}}function up(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cp=null;function dp(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var pp=null,fp=null,mp=null;function hp(e){if(e=ug(e)){if("function"!=typeof pp)throw Error(Kc(280));var t=e.stateNode;t&&(t=dg(t),pp(e.stateNode,e.type,t))}}function gp(e){fp?mp?mp.push(e):mp=[e]:fp=e}function vp(){if(fp){var e=fp,t=mp;if(mp=fp=null,hp(e),t)for(e=0;e<t.length;e++)hp(t[e])}}function bp(e,t){return e(t)}function yp(){}var xp=!1;function Sp(e,t,n){if(xp)return e(t,n);xp=!0;try{return bp(e,t,n)}finally{xp=!1,(null!==fp||null!==mp)&&(yp(),vp())}}function Ep(e,t){var n=e.stateNode;if(null===n)return null;var r=dg(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Kc(231,t,typeof n));return n}var Cp=!1;if(ed)try{var wp={};Object.defineProperty(wp,"passive",{get:function(){Cp=!0}}),window.addEventListener("test",wp,wp),window.removeEventListener("test",wp,wp)}catch(ep){Cp=!1}function Rp(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Lp=!1,kp=null,Ip=!1,Mp=null,_p={onError:function(e){Lp=!0,kp=e}};function Pp(e,t,n,r,o,i,a,l,s){Lp=!1,kp=null,Rp.apply(_p,arguments)}function Ap(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Dp(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Tp(e){if(Ap(e)!==e)throw Error(Kc(188))}function Op(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Ap(e)))throw Error(Kc(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Tp(o),e;if(i===r)return Tp(o),t;i=i.sibling}throw Error(Kc(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Kc(189))}}if(n.alternate!==r)throw Error(Kc(190))}if(3!==n.tag)throw Error(Kc(188));return n.stateNode.current===n?e:t}(e),null!==e?Np(e):null}function Np(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Np(e);if(null!==t)return t;e=e.sibling}return null}var qp=Yc.unstable_scheduleCallback,Fp=Yc.unstable_cancelCallback,zp=Yc.unstable_shouldYield,jp=Yc.unstable_requestPaint,$p=Yc.unstable_now,Bp=Yc.unstable_getCurrentPriorityLevel,Hp=Yc.unstable_ImmediatePriority,Wp=Yc.unstable_UserBlockingPriority,Gp=Yc.unstable_NormalPriority,Vp=Yc.unstable_LowPriority,Up=Yc.unstable_IdlePriority,Yp=null,Kp=null;var Xp=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Qp(e)/Jp|0)|0},Qp=Math.log,Jp=Math.LN2;var Zp=64,ef=4194304;function tf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nf(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=tf(l):0!==(i&=a)&&(r=tf(i))}else 0!==(a=n&~o)?r=tf(a):0!==i&&(r=tf(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Xp(t)),r|=e[n],t&=~o;return r}function rf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function of(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function af(){var e=Zp;return!(4194240&(Zp<<=1))&&(Zp=64),e}function lf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sf(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Xp(t)]=n}function uf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xp(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var cf=0;function df(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var pf,ff,mf,hf,gf,vf=!1,bf=[],yf=null,xf=null,Sf=null,Ef=new Map,Cf=new Map,wf=[],Rf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lf(e,t){switch(e){case"focusin":case"focusout":yf=null;break;case"dragenter":case"dragleave":xf=null;break;case"mouseover":case"mouseout":Sf=null;break;case"pointerover":case"pointerout":Ef.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cf.delete(t.pointerId)}}function kf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=ug(t))&&ff(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function If(e){var t=sg(e.target);if(null!==t){var n=Ap(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Dp(n)))return e.blockedOn=t,void gf(e.priority,(function(){mf(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=jf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ug(n))&&ff(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);cp=r,n.target.dispatchEvent(r),cp=null,t.shift()}return!0}function _f(e,t,n){Mf(e)&&n.delete(t)}function Pf(){vf=!1,null!==yf&&Mf(yf)&&(yf=null),null!==xf&&Mf(xf)&&(xf=null),null!==Sf&&Mf(Sf)&&(Sf=null),Ef.forEach(_f),Cf.forEach(_f)}function Af(e,t){e.blockedOn===t&&(e.blockedOn=null,vf||(vf=!0,Yc.unstable_scheduleCallback(Yc.unstable_NormalPriority,Pf)))}function Df(e){function t(t){return Af(t,e)}if(0<bf.length){Af(bf[0],e);for(var n=1;n<bf.length;n++){var r=bf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==yf&&Af(yf,e),null!==xf&&Af(xf,e),null!==Sf&&Af(Sf,e),Ef.forEach(t),Cf.forEach(t),n=0;n<wf.length;n++)(r=wf[n]).blockedOn===e&&(r.blockedOn=null);for(;0<wf.length&&null===(n=wf[0]).blockedOn;)If(n),null===n.blockedOn&&wf.shift()}var Tf=cd.ReactCurrentBatchConfig,Of=!0;function Nf(e,t,n,r){var o=cf,i=Tf.transition;Tf.transition=null;try{cf=1,Ff(e,t,n,r)}finally{cf=o,Tf.transition=i}}function qf(e,t,n,r){var o=cf,i=Tf.transition;Tf.transition=null;try{cf=4,Ff(e,t,n,r)}finally{cf=o,Tf.transition=i}}function Ff(e,t,n,r){if(Of){var o=jf(e,t,n,r);if(null===o)Th(e,t,r,zf,n),Lf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return yf=kf(yf,e,t,n,r,o),!0;case"dragenter":return xf=kf(xf,e,t,n,r,o),!0;case"mouseover":return Sf=kf(Sf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ef.set(i,kf(Ef.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Cf.set(i,kf(Cf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lf(e,r),4&t&&-1<Rf.indexOf(e)){for(;null!==o;){var i=ug(o);if(null!==i&&pf(i),null===(i=jf(e,t,n,r))&&Th(e,t,r,zf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Th(e,t,r,null,n)}}var zf=null;function jf(e,t,n,r){if(zf=null,null!==(e=sg(e=dp(r))))if(null===(t=Ap(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Dp(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zf=e,null}function $f(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bp()){case Hp:return 1;case Wp:return 4;case Gp:case Vp:return 16;case Up:return 536870912;default:return 16}default:return 16}}var Bf=null,Hf=null,Wf=null;function Gf(){if(Wf)return Wf;var e,t,n=Hf,r=n.length,o="value"in Bf?Bf.value:Bf.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Wf=o.slice(e,1<t?1-t:void 0)}function Vf(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Uf(){return!0}function Yf(){return!1}function Kf(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Uf:Yf,this.isPropagationStopped=Yf,this}return kd(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Uf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Uf)},persist:function(){},isPersistent:Uf}),t}var Xf,Qf,Jf,Zf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},em=Kf(Zf),tm=kd({},Zf,{view:0,detail:0}),nm=Kf(tm),rm=kd({},tm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hm,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jf&&(Jf&&"mousemove"===e.type?(Xf=e.screenX-Jf.screenX,Qf=e.screenY-Jf.screenY):Qf=Xf=0,Jf=e),Xf)},movementY:function(e){return"movementY"in e?e.movementY:Qf}}),om=Kf(rm),im=Kf(kd({},rm,{dataTransfer:0})),am=Kf(kd({},tm,{relatedTarget:0})),lm=Kf(kd({},Zf,{animationName:0,elapsedTime:0,pseudoElement:0})),sm=kd({},Zf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),um=Kf(sm),cm=Kf(kd({},Zf,{data:0})),dm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fm[e])&&!!t[e]}function hm(){return mm}var gm=kd({},tm,{key:function(e){if(e.key){var t=dm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Vf(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hm,charCode:function(e){return"keypress"===e.type?Vf(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Vf(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),vm=Kf(gm),bm=Kf(kd({},rm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ym=Kf(kd({},tm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hm})),xm=Kf(kd({},Zf,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sm=kd({},rm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Em=Kf(Sm),Cm=[9,13,27,32],wm=ed&&"CompositionEvent"in window,Rm=null;ed&&"documentMode"in document&&(Rm=document.documentMode);var Lm=ed&&"TextEvent"in window&&!Rm,km=ed&&(!wm||Rm&&8<Rm&&11>=Rm),Im=String.fromCharCode(32),Mm=!1;function _m(e,t){switch(e){case"keyup":return-1!==Cm.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pm(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Am=!1;var Dm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Dm[e.type]:"textarea"===t}function Om(e,t,n,r){gp(r),0<(t=Nh(t,"onChange")).length&&(n=new em("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nm=null,qm=null;function Fm(e){Ih(e,0)}function zm(e){if(qd(cg(e)))return e}function jm(e,t){if("change"===e)return t}var $m=!1;if(ed){var Bm;if(ed){var Hm="oninput"in document;if(!Hm){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),Hm="function"==typeof Wm.oninput}Bm=Hm}else Bm=!1;$m=Bm&&(!document.documentMode||9<document.documentMode)}function Gm(){Nm&&(Nm.detachEvent("onpropertychange",Vm),qm=Nm=null)}function Vm(e){if("value"===e.propertyName&&zm(qm)){var t=[];Om(t,qm,e,dp(e)),Sp(Fm,t)}}function Um(e,t,n){"focusin"===e?(Gm(),qm=n,(Nm=t).attachEvent("onpropertychange",Vm)):"focusout"===e&&Gm()}function Ym(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zm(qm)}function Km(e,t){if("click"===e)return zm(t)}function Xm(e,t){if("input"===e||"change"===e)return zm(t)}var Qm="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jm(e,t){if(Qm(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!td.call(t,o)||!Qm(e[o],t[o]))return!1}return!0}function Zm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eh(e,t){var n,r=Zm(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zm(r)}}function th(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?th(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nh(){for(var e=window,t=Fd();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Fd((e=t.contentWindow).document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function oh(e){var t=nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&th(n.ownerDocument.documentElement,n)){if(null!==r&&rh(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=eh(n,i);var a=eh(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ih=ed&&"documentMode"in document&&11>=document.documentMode,ah=null,lh=null,sh=null,uh=!1;function ch(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;uh||null==ah||ah!==Fd(r)||("selectionStart"in(r=ah)&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sh&&Jm(sh,r)||(sh=r,0<(r=Nh(lh,"onSelect")).length&&(t=new em("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ah)))}function dh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ph={animationend:dh("Animation","AnimationEnd"),animationiteration:dh("Animation","AnimationIteration"),animationstart:dh("Animation","AnimationStart"),transitionend:dh("Transition","TransitionEnd")},fh={},mh={};function hh(e){if(fh[e])return fh[e];if(!ph[e])return e;var t,n=ph[e];for(t in n)if(n.hasOwnProperty(t)&&t in mh)return fh[e]=n[t];return e}ed&&(mh=document.createElement("div").style,"AnimationEvent"in window||(delete ph.animationend.animation,delete ph.animationiteration.animation,delete ph.animationstart.animation),"TransitionEvent"in window||delete ph.transitionend.transition);var gh=hh("animationend"),vh=hh("animationiteration"),bh=hh("animationstart"),yh=hh("transitionend"),xh=new Map,Sh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Eh(e,t){xh.set(e,t),Jc(t,[e])}for(var Ch=0;Ch<Sh.length;Ch++){var wh=Sh[Ch];Eh(wh.toLowerCase(),"on"+(wh[0].toUpperCase()+wh.slice(1)))}Eh(gh,"onAnimationEnd"),Eh(vh,"onAnimationIteration"),Eh(bh,"onAnimationStart"),Eh("dblclick","onDoubleClick"),Eh("focusin","onFocus"),Eh("focusout","onBlur"),Eh(yh,"onTransitionEnd"),Zc("onMouseEnter",["mouseout","mouseover"]),Zc("onMouseLeave",["mouseout","mouseover"]),Zc("onPointerEnter",["pointerout","pointerover"]),Zc("onPointerLeave",["pointerout","pointerover"]),Jc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jc("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rh));function kh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Pp.apply(this,arguments),Lp){if(!Lp)throw Error(Kc(198));var u=kp;Lp=!1,kp=null,Ip||(Ip=!0,Mp=u)}}(r,t,void 0,e),e.currentTarget=null}function Ih(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;kh(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;kh(o,l,u),i=s}}}if(Ip)throw e=Mp,Ip=!1,Mp=null,e}function Mh(e,t){var n=t[ig];void 0===n&&(n=t[ig]=new Set);var r=e+"__bubble";n.has(r)||(Dh(t,e,2,!1),n.add(r))}function _h(e,t,n){var r=0;t&&(r|=4),Dh(n,e,r,t)}var Ph="_reactListening"+Math.random().toString(36).slice(2);function Ah(e){if(!e[Ph]){e[Ph]=!0,Xc.forEach((function(t){"selectionchange"!==t&&(Lh.has(t)||_h(t,!1,e),_h(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ph]||(t[Ph]=!0,_h("selectionchange",!1,t))}}function Dh(e,t,n,r){switch($f(t)){case 1:var o=Nf;break;case 4:o=qf;break;default:o=Ff}n=o.bind(null,t,n,e),o=void 0,!Cp||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Th(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=sg(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Sp((function(){var r=i,o=dp(n),a=[];e:{var l=xh.get(e);if(void 0!==l){var s=em,u=e;switch(e){case"keypress":if(0===Vf(n))break e;case"keydown":case"keyup":s=vm;break;case"focusin":u="focus",s=am;break;case"focusout":u="blur",s=am;break;case"beforeblur":case"afterblur":s=am;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=ym;break;case gh:case vh:case bh:s=lm;break;case yh:s=xm;break;case"scroll":s=nm;break;case"wheel":s=Em;break;case"copy":case"cut":case"paste":s=um;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=bm}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Ep(m,p))&&c.push(Oh(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===cp||!(u=n.relatedTarget||n.fromElement)||!sg(u)&&!u[og])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?sg(u):null)&&(u!==(d=Ap(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=om,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=bm,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:cg(s),f=null==u?l:cg(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,sg(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=qh(f))m++;for(f=0,h=p;h;h=qh(h))f++;for(;0<m-f;)c=qh(c),m--;for(;0<f-m;)p=qh(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=qh(c),p=qh(p)}c=null}else c=null;null!==s&&Fh(a,l,s,c,!1),null!==u&&null!==d&&Fh(a,d,u,c,!0)}if("select"===(s=(l=r?cg(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=jm;else if(Tm(l))if($m)g=Xm;else{g=Ym;var v=Um}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Km);switch(g&&(g=g(e,r))?Om(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Wd(l,"number",l.value)),v=r?cg(r):window,e){case"focusin":(Tm(v)||"true"===v.contentEditable)&&(ah=v,lh=r,sh=null);break;case"focusout":sh=lh=ah=null;break;case"mousedown":uh=!0;break;case"contextmenu":case"mouseup":case"dragend":uh=!1,ch(a,n,o);break;case"selectionchange":if(ih)break;case"keydown":case"keyup":ch(a,n,o)}var b;if(wm)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Am?_m(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(km&&"ko"!==n.locale&&(Am||"onCompositionStart"!==y?"onCompositionEnd"===y&&Am&&(b=Gf()):(Hf="value"in(Bf=o)?Bf.value:Bf.textContent,Am=!0)),0<(v=Nh(r,y)).length&&(y=new cm(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Pm(n))&&(y.data=b))),(b=Lm?function(e,t){switch(e){case"compositionend":return Pm(t);case"keypress":return 32!==t.which?null:(Mm=!0,Im);case"textInput":return(e=t.data)===Im&&Mm?null:e;default:return null}}(e,n):function(e,t){if(Am)return"compositionend"===e||!wm&&_m(e,t)?(e=Gf(),Wf=Hf=Bf=null,Am=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return km&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Nh(r,"onBeforeInput")).length&&(o=new cm("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Ih(a,t)}))}function Oh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nh(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ep(e,n))&&r.unshift(Oh(e,i,o)),null!=(i=Ep(e,t))&&r.push(Oh(e,i,o))),e=e.return}return r}function qh(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fh(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ep(n,i))&&a.unshift(Oh(n,s,l)):o||null!=(s=Ep(n,i))&&a.push(Oh(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var zh=/\r\n?/g,jh=/\u0000|\uFFFD/g;function $h(e){return("string"==typeof e?e:""+e).replace(zh,"\n").replace(jh,"")}function Bh(e,t,n){if(t=$h(t),$h(e)!==t&&n)throw Error(Kc(425))}function Hh(){}var Wh=null,Gh=null;function Vh(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Uh="function"==typeof setTimeout?setTimeout:void 0,Yh="function"==typeof clearTimeout?clearTimeout:void 0,Kh="function"==typeof Promise?Promise:void 0,Xh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Kh?function(e){return Kh.resolve(null).then(e).catch(Qh)}:Uh;function Qh(e){setTimeout((function(){throw e}))}function Jh(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Df(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Df(t)}function Zh(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function eg(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var tg=Math.random().toString(36).slice(2),ng="__reactFiber$"+tg,rg="__reactProps$"+tg,og="__reactContainer$"+tg,ig="__reactEvents$"+tg,ag="__reactListeners$"+tg,lg="__reactHandles$"+tg;function sg(e){var t=e[ng];if(t)return t;for(var n=e.parentNode;n;){if(t=n[og]||n[ng]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=eg(e);null!==e;){if(n=e[ng])return n;e=eg(e)}return t}n=(e=n).parentNode}return null}function ug(e){return!(e=e[ng]||e[og])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cg(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Kc(33))}function dg(e){return e[rg]||null}var pg=[],fg=-1;function mg(e){return{current:e}}function hg(e){0>fg||(e.current=pg[fg],pg[fg]=null,fg--)}function gg(e,t){fg++,pg[fg]=e.current,e.current=t}var vg={},bg=mg(vg),yg=mg(!1),xg=vg;function Sg(e,t){var n=e.type.contextTypes;if(!n)return vg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Eg(e){return null!=(e=e.childContextTypes)}function Cg(){hg(yg),hg(bg)}function wg(e,t,n){if(bg.current!==vg)throw Error(Kc(168));gg(bg,t),gg(yg,n)}function Rg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(Kc(108,Dd(e)||"Unknown",o));return kd({},n,r)}function Lg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vg,xg=bg.current,gg(bg,e),gg(yg,yg.current),!0}function kg(e,t,n){var r=e.stateNode;if(!r)throw Error(Kc(169));n?(e=Rg(e,t,xg),r.__reactInternalMemoizedMergedChildContext=e,hg(yg),hg(bg),gg(bg,e)):hg(yg),gg(yg,n)}var Ig=null,Mg=!1,_g=!1;function Pg(e){null===Ig?Ig=[e]:Ig.push(e)}function Ag(){if(!_g&&null!==Ig){_g=!0;var e=0,t=cf;try{var n=Ig;for(cf=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ig=null,Mg=!1}catch(t){throw null!==Ig&&(Ig=Ig.slice(e+1)),qp(Hp,Ag),t}finally{cf=t,_g=!1}}return null}var Dg=[],Tg=0,Og=null,Ng=0,qg=[],Fg=0,zg=null,jg=1,$g="";function Bg(e,t){Dg[Tg++]=Ng,Dg[Tg++]=Og,Og=e,Ng=t}function Hg(e,t,n){qg[Fg++]=jg,qg[Fg++]=$g,qg[Fg++]=zg,zg=e;var r=jg;e=$g;var o=32-Xp(r)-1;r&=~(1<<o),n+=1;var i=32-Xp(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,jg=1<<32-Xp(t)+o|n<<o|r,$g=i+e}else jg=1<<i|n<<o|r,$g=e}function Wg(e){null!==e.return&&(Bg(e,1),Hg(e,1,0))}function Gg(e){for(;e===Og;)Og=Dg[--Tg],Dg[Tg]=null,Ng=Dg[--Tg],Dg[Tg]=null;for(;e===zg;)zg=qg[--Fg],qg[Fg]=null,$g=qg[--Fg],qg[Fg]=null,jg=qg[--Fg],qg[Fg]=null}var Vg=null,Ug=null,Yg=!1,Kg=null;function Xg(e,t){var n=xS(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Qg(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Vg=e,Ug=Zh(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Vg=e,Ug=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==zg?{id:jg,overflow:$g}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xS(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Vg=e,Ug=null,!0);default:return!1}}function Jg(e){return!(!(1&e.mode)||128&e.flags)}function Zg(e){if(Yg){var t=Ug;if(t){var n=t;if(!Qg(e,t)){if(Jg(e))throw Error(Kc(418));t=Zh(n.nextSibling);var r=Vg;t&&Qg(e,t)?Xg(r,n):(e.flags=-4097&e.flags|2,Yg=!1,Vg=e)}}else{if(Jg(e))throw Error(Kc(418));e.flags=-4097&e.flags|2,Yg=!1,Vg=e}}}function ev(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vg=e}function tv(e){if(e!==Vg)return!1;if(!Yg)return ev(e),Yg=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Vh(e.type,e.memoizedProps)),t&&(t=Ug)){if(Jg(e))throw nv(),Error(Kc(418));for(;t;)Xg(e,t),t=Zh(t.nextSibling)}if(ev(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Kc(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ug=Zh(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ug=null}}else Ug=Vg?Zh(e.stateNode.nextSibling):null;return!0}function nv(){for(var e=Ug;e;)e=Zh(e.nextSibling)}function rv(){Ug=Vg=null,Yg=!1}function ov(e){null===Kg?Kg=[e]:Kg.push(e)}var iv=cd.ReactCurrentBatchConfig;function av(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Kc(309));var r=n.stateNode}if(!r)throw Error(Kc(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(Kc(284));if(!n._owner)throw Error(Kc(290,e))}return e}function lv(e,t){throw e=Object.prototype.toString.call(t),Error(Kc(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sv(e){return(0,e._init)(e._payload)}function uv(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ES(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=LS(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===fd?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ed&&sv(i)===t.type)?((r=o(t,n.props)).ref=av(e,t,n),r.return=e,r):((r=CS(n.type,n.key,n.props,null,e.mode,r)).ref=av(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=kS(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=wS(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=LS(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case dd:return(n=CS(t.type,t.key,t.props,null,e.mode,n)).ref=av(e,null,t),n.return=e,n;case pd:return(t=kS(t,e.mode,n)).return=e,t;case Ed:return d(e,(0,t._init)(t._payload),n)}if(Gd(t)||Rd(t))return(t=wS(t,e.mode,n,null)).return=e,t;lv(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case dd:return n.key===o?s(e,t,n,r):null;case pd:return n.key===o?u(e,t,n,r):null;case Ed:return p(e,t,(o=n._init)(n._payload),r)}if(Gd(n)||Rd(n))return null!==o?null:c(e,t,n,r,null);lv(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case dd:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case pd:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ed:return f(e,t,n,(0,r._init)(r._payload),o)}if(Gd(r)||Rd(r))return c(t,e=e.get(n)||null,r,o,null);lv(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),Yg&&Bg(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return Yg&&Bg(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),Yg&&Bg(o,h),u}function h(o,a,l,s){var u=Rd(l);if("function"!=typeof u)throw Error(Kc(150));if(null==(l=u.call(l)))throw Error(Kc(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),Yg&&Bg(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return Yg&&Bg(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),Yg&&Bg(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===fd&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case dd:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===fd){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Ed&&sv(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=av(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===fd?((i=wS(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=CS(l.type,l.key,l.props,null,r.mode,s)).ref=av(r,i,l),s.return=r,r=s)}return a(r);case pd:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=kS(l,r.mode,s)).return=r,r=i}return a(r);case Ed:return e(r,i,(c=l._init)(l._payload),s)}if(Gd(l))return m(r,i,l,s);if(Rd(l))return h(r,i,l,s);lv(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=LS(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var cv=uv(!0),dv=uv(!1),pv=mg(null),fv=null,mv=null,hv=null;function gv(){hv=mv=fv=null}function vv(e){var t=pv.current;hg(pv),e._currentValue=t}function bv(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yv(e,t){fv=e,hv=mv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(sy=!0),e.firstContext=null)}function xv(e){var t=e._currentValue;if(hv!==e)if(e={context:e,memoizedValue:t,next:null},null===mv){if(null===fv)throw Error(Kc(308));mv=e,fv.dependencies={lanes:0,firstContext:e}}else mv=mv.next=e;return t}var Sv=null;function Ev(e){null===Sv?Sv=[e]:Sv.push(e)}function Cv(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ev(t)):(n.next=o.next,o.next=n),t.interleaved=n,wv(e,r)}function wv(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Rv=!1;function Lv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Iv(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mv(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&vx){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,wv(e,n)}return null===(o=r.interleaved)?(t.next=t,Ev(r)):(t.next=o.next,o.next=t),r.interleaved=t,wv(e,n)}function _v(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,uf(e,n)}}function Pv(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Av(e,t,n,r){var o=e.updateQueue;Rv=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=kd({},d,p);break e;case 2:Rv=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rx|=a,e.lanes=a,e.memoizedState=d}}function Dv(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(Kc(191,o));o.call(r)}}}var Tv={},Ov=mg(Tv),Nv=mg(Tv),qv=mg(Tv);function Fv(e){if(e===Tv)throw Error(Kc(174));return e}function zv(e,t){switch(gg(qv,t),gg(Nv,e),gg(Ov,Tv),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jd(null,"");break;default:t=Jd(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hg(Ov),gg(Ov,t)}function jv(){hg(Ov),hg(Nv),hg(qv)}function $v(e){Fv(qv.current);var t=Fv(Ov.current),n=Jd(t,e.type);t!==n&&(gg(Nv,e),gg(Ov,n))}function Bv(e){Nv.current===e&&(hg(Ov),hg(Nv))}var Hv=mg(0);function Wv(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gv=[];function Vv(){for(var e=0;e<Gv.length;e++)Gv[e]._workInProgressVersionPrimary=null;Gv.length=0}var Uv=cd.ReactCurrentDispatcher,Yv=cd.ReactCurrentBatchConfig,Kv=0,Xv=null,Qv=null,Jv=null,Zv=!1,eb=!1,tb=0,nb=0;function rb(){throw Error(Kc(321))}function ob(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qm(e[n],t[n]))return!1;return!0}function ib(e,t,n,r,o,i){if(Kv=i,Xv=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Uv.current=null===e||null===e.memoizedState?Bb:Hb,e=n(r,o),eb){i=0;do{if(eb=!1,tb=0,25<=i)throw Error(Kc(301));i+=1,Jv=Qv=null,t.updateQueue=null,Uv.current=Wb,e=n(r,o)}while(eb)}if(Uv.current=$b,t=null!==Qv&&null!==Qv.next,Kv=0,Jv=Qv=Xv=null,Zv=!1,t)throw Error(Kc(300));return e}function ab(){var e=0!==tb;return tb=0,e}function lb(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Jv?Xv.memoizedState=Jv=e:Jv=Jv.next=e,Jv}function sb(){if(null===Qv){var e=Xv.alternate;e=null!==e?e.memoizedState:null}else e=Qv.next;var t=null===Jv?Xv.memoizedState:Jv.next;if(null!==t)Jv=t,Qv=e;else{if(null===e)throw Error(Kc(310));e={memoizedState:(Qv=e).memoizedState,baseState:Qv.baseState,baseQueue:Qv.baseQueue,queue:Qv.queue,next:null},null===Jv?Xv.memoizedState=Jv=e:Jv=Jv.next=e}return Jv}function ub(e,t){return"function"==typeof t?t(e):t}function cb(e){var t=sb(),n=t.queue;if(null===n)throw Error(Kc(311));n.lastRenderedReducer=e;var r=Qv,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Kv&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Xv.lanes|=c,Rx|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Qm(r,t.memoizedState)||(sy=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Xv.lanes|=i,Rx|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function db(e){var t=sb(),n=t.queue;if(null===n)throw Error(Kc(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Qm(i,t.memoizedState)||(sy=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pb(){}function fb(e,t){var n=Xv,r=sb(),o=t(),i=!Qm(r.memoizedState,o);if(i&&(r.memoizedState=o,sy=!0),r=r.queue,Rb(gb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Jv&&1&Jv.memoizedState.tag){if(n.flags|=2048,xb(9,hb.bind(null,n,r,o,t),void 0,null),null===bx)throw Error(Kc(349));30&Kv||mb(n,t,o)}return o}function mb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Xv.updateQueue)?(t={lastEffect:null,stores:null},Xv.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function hb(e,t,n,r){t.value=n,t.getSnapshot=r,vb(t)&&bb(e)}function gb(e,t,n){return n((function(){vb(t)&&bb(e)}))}function vb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qm(e,n)}catch(e){return!0}}function bb(e){var t=wv(e,1);null!==t&&Gx(t,e,1,-1)}function yb(e){var t=lb();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ub,lastRenderedState:e},t.queue=e,e=e.dispatch=qb.bind(null,Xv,e),[t.memoizedState,e]}function xb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xv.updateQueue)?(t={lastEffect:null,stores:null},Xv.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Sb(){return sb().memoizedState}function Eb(e,t,n,r){var o=lb();Xv.flags|=e,o.memoizedState=xb(1|t,n,void 0,void 0===r?null:r)}function Cb(e,t,n,r){var o=sb();r=void 0===r?null:r;var i=void 0;if(null!==Qv){var a=Qv.memoizedState;if(i=a.destroy,null!==r&&ob(r,a.deps))return void(o.memoizedState=xb(t,n,i,r))}Xv.flags|=e,o.memoizedState=xb(1|t,n,i,r)}function wb(e,t){return Eb(8390656,8,e,t)}function Rb(e,t){return Cb(2048,8,e,t)}function Lb(e,t){return Cb(4,2,e,t)}function kb(e,t){return Cb(4,4,e,t)}function Ib(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mb(e,t,n){return n=null!=n?n.concat([e]):null,Cb(4,4,Ib.bind(null,t,e),n)}function _b(){}function Pb(e,t){var n=sb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ob(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ab(e,t){var n=sb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ob(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Db(e,t,n){return 21&Kv?(Qm(n,t)||(n=af(),Xv.lanes|=n,Rx|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,sy=!0),e.memoizedState=n)}function Tb(e,t){var n=cf;cf=0!==n&&4>n?n:4,e(!0);var r=Yv.transition;Yv.transition={};try{e(!1),t()}finally{cf=n,Yv.transition=r}}function Ob(){return sb().memoizedState}function Nb(e,t,n){var r=Wx(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fb(e))zb(t,n);else if(null!==(n=Cv(e,t,n,r))){Gx(n,e,r,Hx()),jb(n,t,r)}}function qb(e,t,n){var r=Wx(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fb(e))zb(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Qm(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ev(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Cv(e,t,o,r))&&(Gx(n,e,r,o=Hx()),jb(n,t,r))}}function Fb(e){var t=e.alternate;return e===Xv||null!==t&&t===Xv}function zb(e,t){eb=Zv=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jb(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,uf(e,n)}}var $b={readContext:xv,useCallback:rb,useContext:rb,useEffect:rb,useImperativeHandle:rb,useInsertionEffect:rb,useLayoutEffect:rb,useMemo:rb,useReducer:rb,useRef:rb,useState:rb,useDebugValue:rb,useDeferredValue:rb,useTransition:rb,useMutableSource:rb,useSyncExternalStore:rb,useId:rb,unstable_isNewReconciler:!1},Bb={readContext:xv,useCallback:function(e,t){return lb().memoizedState=[e,void 0===t?null:t],e},useContext:xv,useEffect:wb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Eb(4194308,4,Ib.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eb(4,2,e,t)},useMemo:function(e,t){var n=lb();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lb();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Nb.bind(null,Xv,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},lb().memoizedState=e},useState:yb,useDebugValue:_b,useDeferredValue:function(e){return lb().memoizedState=e},useTransition:function(){var e=yb(!1),t=e[0];return e=Tb.bind(null,e[1]),lb().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xv,o=lb();if(Yg){if(void 0===n)throw Error(Kc(407));n=n()}else{if(n=t(),null===bx)throw Error(Kc(349));30&Kv||mb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wb(gb.bind(null,r,i,e),[e]),r.flags|=2048,xb(9,hb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lb(),t=bx.identifierPrefix;if(Yg){var n=$g;t=":"+t+"R"+(n=(jg&~(1<<32-Xp(jg)-1)).toString(32)+n),0<(n=tb++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=nb++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hb={readContext:xv,useCallback:Pb,useContext:xv,useEffect:Rb,useImperativeHandle:Mb,useInsertionEffect:Lb,useLayoutEffect:kb,useMemo:Ab,useReducer:cb,useRef:Sb,useState:function(){return cb(ub)},useDebugValue:_b,useDeferredValue:function(e){return Db(sb(),Qv.memoizedState,e)},useTransition:function(){return[cb(ub)[0],sb().memoizedState]},useMutableSource:pb,useSyncExternalStore:fb,useId:Ob,unstable_isNewReconciler:!1},Wb={readContext:xv,useCallback:Pb,useContext:xv,useEffect:Rb,useImperativeHandle:Mb,useInsertionEffect:Lb,useLayoutEffect:kb,useMemo:Ab,useReducer:db,useRef:Sb,useState:function(){return db(ub)},useDebugValue:_b,useDeferredValue:function(e){var t=sb();return null===Qv?t.memoizedState=e:Db(t,Qv.memoizedState,e)},useTransition:function(){return[db(ub)[0],sb().memoizedState]},useMutableSource:pb,useSyncExternalStore:fb,useId:Ob,unstable_isNewReconciler:!1};function Gb(e,t){if(e&&e.defaultProps){for(var n in t=kd({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Vb(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:kd({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ub={isMounted:function(e){return!!(e=e._reactInternals)&&Ap(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hx(),o=Wx(e),i=Iv(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Mv(e,i,o))&&(Gx(t,e,o,r),_v(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hx(),o=Wx(e),i=Iv(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Mv(e,i,o))&&(Gx(t,e,o,r),_v(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hx(),r=Wx(e),o=Iv(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Mv(e,o,r))&&(Gx(t,e,r,n),_v(t,e,r))}};function Yb(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Jm(n,r)||!Jm(o,i))}function Kb(e,t,n){var r=!1,o=vg,i=t.contextType;return"object"==typeof i&&null!==i?i=xv(i):(o=Eg(t)?xg:bg.current,i=(r=null!=(r=t.contextTypes))?Sg(e,o):vg),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ub,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xb(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ub.enqueueReplaceState(t,t.state,null)}function Qb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Lv(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=xv(i):(i=Eg(t)?xg:bg.current,o.context=Sg(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Vb(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ub.enqueueReplaceState(o,o.state,null),Av(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Jb(e,t){try{var n="",r=t;do{n+=Pd(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Zb(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ey(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ty="function"==typeof WeakMap?WeakMap:Map;function ny(e,t,n){(n=Iv(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Dx||(Dx=!0,Tx=r),ey(0,t)},n}function ry(e,t,n){(n=Iv(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ey(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ey(0,t),"function"!=typeof r&&(null===Ox?Ox=new Set([this]):Ox.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function oy(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ty;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=mS.bind(null,e,t,n),t.then(e,e))}function iy(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ay(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Iv(-1,1)).tag=2,Mv(n,t,1))),n.lanes|=1),e)}var ly=cd.ReactCurrentOwner,sy=!1;function uy(e,t,n,r){t.child=null===e?dv(t,null,n,r):cv(t,e.child,n,r)}function cy(e,t,n,r,o){n=n.render;var i=t.ref;return yv(t,o),r=ib(e,t,n,r,i,o),n=ab(),null===e||sy?(Yg&&n&&Wg(t),t.flags|=1,uy(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dy(e,t,o))}function dy(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||SS(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=CS(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,py(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Jm)(a,r)&&e.ref===t.ref)return Dy(e,t,o)}return t.flags|=1,(e=ES(i,r)).ref=t.ref,e.return=t,t.child=e}function py(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Jm(i,r)&&e.ref===t.ref){if(sy=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Dy(e,t,o);131072&e.flags&&(sy=!0)}}return hy(e,t,n,r,o)}function fy(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gg(Ex,Sx),Sx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,gg(Ex,Sx),Sx|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gg(Ex,Sx),Sx|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,gg(Ex,Sx),Sx|=r;return uy(e,t,o,n),t.child}function my(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hy(e,t,n,r,o){var i=Eg(n)?xg:bg.current;return i=Sg(t,i),yv(t,o),n=ib(e,t,n,r,i,o),r=ab(),null===e||sy?(Yg&&r&&Wg(t),t.flags|=1,uy(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dy(e,t,o))}function gy(e,t,n,r,o){if(Eg(n)){var i=!0;Lg(t)}else i=!1;if(yv(t,o),null===t.stateNode)Ay(e,t),Kb(t,n,r),Qb(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=xv(u):u=Sg(t,u=Eg(n)?xg:bg.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Xb(t,a,r,u),Rv=!1;var p=t.memoizedState;a.state=p,Av(t,r,a,o),s=t.memoizedState,l!==r||p!==s||yg.current||Rv?("function"==typeof c&&(Vb(t,n,c,r),s=t.memoizedState),(l=Rv||Yb(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,kv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Gb(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=xv(s):s=Sg(t,s=Eg(n)?xg:bg.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Xb(t,a,r,s),Rv=!1,p=t.memoizedState,a.state=p,Av(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||yg.current||Rv?("function"==typeof f&&(Vb(t,n,f,r),m=t.memoizedState),(u=Rv||Yb(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return vy(e,t,n,r,i,o)}function vy(e,t,n,r,o,i){my(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&kg(t,n,!1),Dy(e,t,i);r=t.stateNode,ly.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=cv(t,e.child,null,i),t.child=cv(t,null,l,i)):uy(e,t,l,i),t.memoizedState=r.state,o&&kg(t,n,!0),t.child}function by(e){var t=e.stateNode;t.pendingContext?wg(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wg(0,t.context,!1),zv(e,t.containerInfo)}function yy(e,t,n,r,o){return rv(),ov(o),t.flags|=256,uy(e,t,n,r),t.child}var xy,Sy,Ey,Cy,wy={dehydrated:null,treeContext:null,retryLane:0};function Ry(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ly(e,t,n){var r,o=t.pendingProps,i=Hv.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),gg(Hv,1&i),null===e)return Zg(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=RS(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=wS(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ry(n),t.memoizedState=wy,e):ky(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Iy(e,t,a,r=Zb(Error(Kc(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=RS({mode:"visible",children:r.children},o,0,null),(i=wS(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&cv(t,e.child,null,a),t.child.memoizedState=Ry(a),t.memoizedState=wy,i);if(!(1&t.mode))return Iy(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Iy(e,t,a,r=Zb(i=Error(Kc(419)),r,void 0))}if(l=!!(a&e.childLanes),sy||l){if(null!==(r=bx)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,wv(e,o),Gx(r,e,o,-1))}return oS(),Iy(e,t,a,r=Zb(Error(Kc(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=gS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ug=Zh(o.nextSibling),Vg=t,Yg=!0,Kg=null,null!==e&&(qg[Fg++]=jg,qg[Fg++]=$g,qg[Fg++]=zg,jg=e.id,$g=e.overflow,zg=t),t=ky(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=ES(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=ES(r,a):(a=wS(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ry(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=wy,o}return e=(a=e.child).sibling,o=ES(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ky(e,t){return(t=RS({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Iy(e,t,n,r){return null!==r&&ov(r),cv(t,e.child,null,n),(e=ky(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function My(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),bv(e.return,t,n)}function _y(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Py(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(uy(e,t,r.children,n),2&(r=Hv.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&My(e,n,t);else if(19===e.tag)My(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gg(Hv,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Wv(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_y(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wv(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_y(t,!0,n,null,i);break;case"together":_y(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ay(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dy(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rx|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Kc(153));if(null!==t.child){for(n=ES(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ES(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ty(e,t){if(!Yg)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oy(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ny(e,t,n){var r=t.pendingProps;switch(Gg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oy(t),null;case 1:case 17:return Eg(t.type)&&Cg(),Oy(t),null;case 3:return r=t.stateNode,jv(),hg(yg),hg(bg),Vv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(tv(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Kg&&(Kx(Kg),Kg=null))),Sy(e,t),Oy(t),null;case 5:Bv(t);var o=Fv(qv.current);if(n=t.type,null!==e&&null!=t.stateNode)Ey(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Kc(166));return Oy(t),null}if(e=Fv(Ov.current),tv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ng]=t,r[rg]=i,e=!!(1&t.mode),n){case"dialog":Mh("cancel",r),Mh("close",r);break;case"iframe":case"object":case"embed":Mh("load",r);break;case"video":case"audio":for(o=0;o<Rh.length;o++)Mh(Rh[o],r);break;case"source":Mh("error",r);break;case"img":case"image":case"link":Mh("error",r),Mh("load",r);break;case"details":Mh("toggle",r);break;case"input":jd(r,i),Mh("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Mh("invalid",r);break;case"textarea":Yd(r,i),Mh("invalid",r)}for(var a in sp(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Bh(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Bh(r.textContent,l,e),o=["children",""+l]):Qc.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Mh("scroll",r)}switch(n){case"input":Nd(r),Hd(r,i,!0);break;case"textarea":Nd(r),Xd(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Hh)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Qd(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ng]=t,e[rg]=r,xy(e,t,!1,!1),t.stateNode=e;e:{switch(a=up(n,r),n){case"dialog":Mh("cancel",e),Mh("close",e),o=r;break;case"iframe":case"object":case"embed":Mh("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rh.length;o++)Mh(Rh[o],e);o=r;break;case"source":Mh("error",e),o=r;break;case"img":case"image":case"link":Mh("error",e),Mh("load",e),o=r;break;case"details":Mh("toggle",e),o=r;break;case"input":jd(e,r),o=zd(e,r),Mh("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=kd({},r,{value:void 0}),Mh("invalid",e);break;case"textarea":Yd(e,r),o=Ud(e,r),Mh("invalid",e)}for(i in sp(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?ap(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&tp(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&np(e,s):"number"==typeof s&&np(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Qc.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Mh("scroll",e):null!=s&&ud(e,i,s,a))}switch(n){case"input":Nd(e),Hd(e,r,!1);break;case"textarea":Nd(e),Xd(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Td(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Vd(e,!!r.multiple,i,!1):null!=r.defaultValue&&Vd(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Hh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Oy(t),null;case 6:if(e&&null!=t.stateNode)Cy(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Kc(166));if(n=Fv(qv.current),Fv(Ov.current),tv(t)){if(r=t.stateNode,n=t.memoizedProps,r[ng]=t,(i=r.nodeValue!==n)&&null!==(e=Vg))switch(e.tag){case 3:Bh(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Bh(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ng]=t,t.stateNode=r}return Oy(t),null;case 13:if(hg(Hv),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Yg&&null!==Ug&&1&t.mode&&!(128&t.flags))nv(),rv(),t.flags|=98560,i=!1;else if(i=tv(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Kc(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Kc(317));i[ng]=t}else rv(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Oy(t),i=!1}else null!==Kg&&(Kx(Kg),Kg=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Hv.current?0===Cx&&(Cx=3):oS())),null!==t.updateQueue&&(t.flags|=4),Oy(t),null);case 4:return jv(),Sy(e,t),null===e&&Ah(t.stateNode.containerInfo),Oy(t),null;case 10:return vv(t.type._context),Oy(t),null;case 19:if(hg(Hv),null===(i=t.memoizedState))return Oy(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Ty(i,!1);else{if(0!==Cx||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Wv(e))){for(t.flags|=128,Ty(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gg(Hv,1&Hv.current|2),t.child}e=e.sibling}null!==i.tail&&$p()>Px&&(t.flags|=128,r=!0,Ty(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Wv(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ty(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Yg)return Oy(t),null}else 2*$p()-i.renderingStartTime>Px&&1073741824!==n&&(t.flags|=128,r=!0,Ty(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$p(),t.sibling=null,n=Hv.current,gg(Hv,r?1&n|2:1&n),t):(Oy(t),null);case 22:case 23:return eS(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Sx)&&(Oy(t),6&t.subtreeFlags&&(t.flags|=8192)):Oy(t),null;case 24:case 25:return null}throw Error(Kc(156,t.tag))}function qy(e,t){switch(Gg(t),t.tag){case 1:return Eg(t.type)&&Cg(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return jv(),hg(yg),hg(bg),Vv(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Bv(t),null;case 13:if(hg(Hv),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Kc(340));rv()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return hg(Hv),null;case 4:return jv(),null;case 10:return vv(t.type._context),null;case 22:case 23:return eS(),null;default:return null}}xy=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Sy=function(){},Ey=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fv(Ov.current);var i,a=null;switch(n){case"input":o=zd(e,o),r=zd(e,r),a=[];break;case"select":o=kd({},o,{value:void 0}),r=kd({},r,{value:void 0}),a=[];break;case"textarea":o=Ud(e,o),r=Ud(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Hh)}for(u in sp(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Qc.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Qc.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Mh("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Cy=function(e,t,n,r){n!==r&&(t.flags|=4)};var Fy=!1,zy=!1,jy="function"==typeof WeakSet?WeakSet:Set,$y=null;function By(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){fS(e,t,n)}else n.current=null}function Hy(e,t,n){try{n()}catch(n){fS(e,t,n)}}var Wy=!1;function Gy(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Hy(t,n,i)}o=o.next}while(o!==r)}}function Vy(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uy(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Yy(e){var t=e.alternate;null!==t&&(e.alternate=null,Yy(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ng],delete t[rg],delete t[ig],delete t[ag],delete t[lg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ky(e){return 5===e.tag||3===e.tag||4===e.tag}function Xy(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ky(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Qy(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Hh));else if(4!==r&&null!==(e=e.child))for(Qy(e,t,n),e=e.sibling;null!==e;)Qy(e,t,n),e=e.sibling}function Jy(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Jy(e,t,n),e=e.sibling;null!==e;)Jy(e,t,n),e=e.sibling}var Zy=null,ex=!1;function tx(e,t,n){for(n=n.child;null!==n;)nx(e,t,n),n=n.sibling}function nx(e,t,n){if(Kp&&"function"==typeof Kp.onCommitFiberUnmount)try{Kp.onCommitFiberUnmount(Yp,n)}catch(e){}switch(n.tag){case 5:zy||By(n,t);case 6:var r=Zy,o=ex;Zy=null,tx(e,t,n),ex=o,null!==(Zy=r)&&(ex?(e=Zy,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Zy.removeChild(n.stateNode));break;case 18:null!==Zy&&(ex?(e=Zy,n=n.stateNode,8===e.nodeType?Jh(e.parentNode,n):1===e.nodeType&&Jh(e,n),Df(e)):Jh(Zy,n.stateNode));break;case 4:r=Zy,o=ex,Zy=n.stateNode.containerInfo,ex=!0,tx(e,t,n),Zy=r,ex=o;break;case 0:case 11:case 14:case 15:if(!zy&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Hy(n,t,a),o=o.next}while(o!==r)}tx(e,t,n);break;case 1:if(!zy&&(By(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){fS(n,t,e)}tx(e,t,n);break;case 21:tx(e,t,n);break;case 22:1&n.mode?(zy=(r=zy)||null!==n.memoizedState,tx(e,t,n),zy=r):tx(e,t,n);break;default:tx(e,t,n)}}function rx(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new jy),t.forEach((function(t){var r=vS.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ox(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Zy=l.stateNode,ex=!1;break e;case 3:case 4:Zy=l.stateNode.containerInfo,ex=!0;break e}l=l.return}if(null===Zy)throw Error(Kc(160));nx(i,a,o),Zy=null,ex=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){fS(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ix(t,e),t=t.sibling}function ix(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ox(t,e),ax(e),4&r){try{Gy(3,e,e.return),Vy(3,e)}catch(t){fS(e,e.return,t)}try{Gy(5,e,e.return)}catch(t){fS(e,e.return,t)}}break;case 1:ox(t,e),ax(e),512&r&&null!==n&&By(n,n.return);break;case 5:if(ox(t,e),ax(e),512&r&&null!==n&&By(n,n.return),32&e.flags){var o=e.stateNode;try{np(o,"")}catch(t){fS(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&$d(o,i),up(l,a);var u=up(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?ap(o,d):"dangerouslySetInnerHTML"===c?tp(o,d):"children"===c?np(o,d):ud(o,c,d,u)}switch(l){case"input":Bd(o,i);break;case"textarea":Kd(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Vd(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Vd(o,!!i.multiple,i.defaultValue,!0):Vd(o,!!i.multiple,i.multiple?[]:"",!1))}o[rg]=i}catch(t){fS(e,e.return,t)}}break;case 6:if(ox(t,e),ax(e),4&r){if(null===e.stateNode)throw Error(Kc(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){fS(e,e.return,t)}}break;case 3:if(ox(t,e),ax(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Df(t.containerInfo)}catch(t){fS(e,e.return,t)}break;case 4:default:ox(t,e),ax(e);break;case 13:ox(t,e),ax(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(_x=$p())),4&r&&rx(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(zy=(u=zy)||c,ox(t,e),zy=u):ox(t,e),ax(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for($y=e,c=e.child;null!==c;){for(d=$y=c;null!==$y;){switch(f=(p=$y).child,p.tag){case 0:case 11:case 14:case 15:Gy(4,p,p.return);break;case 1:By(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){fS(r,n,e)}}break;case 5:By(p,p.return);break;case 22:if(null!==p.memoizedState){cx(d);continue}}null!==f?(f.return=p,$y=f):cx(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=ip("display",a))}catch(t){fS(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){fS(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ox(t,e),ax(e),4&r&&rx(e);case 21:}}function ax(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Ky(n)){var r=n;break e}n=n.return}throw Error(Kc(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(np(o,""),r.flags&=-33),Jy(e,Xy(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Qy(e,Xy(e),i);break;default:throw Error(Kc(161))}}catch(t){fS(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function lx(e,t,n){$y=e,sx(e)}function sx(e,t,n){for(var r=!!(1&e.mode);null!==$y;){var o=$y,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Fy;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||zy;l=Fy;var u=zy;if(Fy=a,(zy=s)&&!u)for($y=o;null!==$y;)s=(a=$y).child,22===a.tag&&null!==a.memoizedState?dx(o):null!==s?(s.return=a,$y=s):dx(o);for(;null!==i;)$y=i,sx(i),i=i.sibling;$y=o,Fy=l,zy=u}ux(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,$y=i):ux(e)}}function ux(e){for(;null!==$y;){var t=$y;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:zy||Vy(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!zy)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Gb(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Dv(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Dv(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Df(d)}}}break;default:throw Error(Kc(163))}zy||512&t.flags&&Uy(t)}catch(e){fS(t,t.return,e)}}if(t===e){$y=null;break}if(null!==(n=t.sibling)){n.return=t.return,$y=n;break}$y=t.return}}function cx(e){for(;null!==$y;){var t=$y;if(t===e){$y=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$y=n;break}$y=t.return}}function dx(e){for(;null!==$y;){var t=$y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vy(4,t)}catch(e){fS(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){fS(t,o,e)}}var i=t.return;try{Uy(t)}catch(e){fS(t,i,e)}break;case 5:var a=t.return;try{Uy(t)}catch(e){fS(t,a,e)}}}catch(e){fS(t,t.return,e)}if(t===e){$y=null;break}var l=t.sibling;if(null!==l){l.return=t.return,$y=l;break}$y=t.return}}var px,fx=Math.ceil,mx=cd.ReactCurrentDispatcher,hx=cd.ReactCurrentOwner,gx=cd.ReactCurrentBatchConfig,vx=0,bx=null,yx=null,xx=0,Sx=0,Ex=mg(0),Cx=0,wx=null,Rx=0,Lx=0,kx=0,Ix=null,Mx=null,_x=0,Px=1/0,Ax=null,Dx=!1,Tx=null,Ox=null,Nx=!1,qx=null,Fx=0,zx=0,jx=null,$x=-1,Bx=0;function Hx(){return 6&vx?$p():-1!==$x?$x:$x=$p()}function Wx(e){return 1&e.mode?2&vx&&0!==xx?xx&-xx:null!==iv.transition?(0===Bx&&(Bx=af()),Bx):0!==(e=cf)?e:e=void 0===(e=window.event)?16:$f(e.type):1}function Gx(e,t,n,r){if(50<zx)throw zx=0,jx=null,Error(Kc(185));sf(e,n,r),2&vx&&e===bx||(e===bx&&(!(2&vx)&&(Lx|=n),4===Cx&&Xx(e,xx)),Vx(e,r),1===n&&0===vx&&!(1&t.mode)&&(Px=$p()+500,Mg&&Ag()))}function Vx(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Xp(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=rf(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=nf(e,e===bx?xx:0);if(0===r)null!==n&&Fp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Fp(n),1===t)0===e.tag?function(e){Mg=!0,Pg(e)}(Qx.bind(null,e)):Pg(Qx.bind(null,e)),Xh((function(){!(6&vx)&&Ag()})),n=null;else{switch(df(r)){case 1:n=Hp;break;case 4:n=Wp;break;case 16:default:n=Gp;break;case 536870912:n=Up}n=bS(n,Ux.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ux(e,t){if($x=-1,Bx=0,6&vx)throw Error(Kc(327));var n=e.callbackNode;if(dS()&&e.callbackNode!==n)return null;var r=nf(e,e===bx?xx:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=iS(e,r);else{t=r;var o=vx;vx|=2;var i=rS();for(bx===e&&xx===t||(Ax=null,Px=$p()+500,tS(e,t));;)try{lS();break}catch(t){nS(e,t)}gv(),mx.current=i,vx=o,null!==yx?t=0:(bx=null,xx=0,t=Cx)}if(0!==t){if(2===t&&(0!==(o=of(e))&&(r=o,t=Yx(e,o))),1===t)throw n=wx,tS(e,0),Xx(e,r),Vx(e,$p()),n;if(6===t)Xx(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Qm(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=iS(e,r),2===t&&(i=of(e),0!==i&&(r=i,t=Yx(e,i))),1!==t)))throw n=wx,tS(e,0),Xx(e,r),Vx(e,$p()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Kc(345));case 2:case 5:cS(e,Mx,Ax);break;case 3:if(Xx(e,r),(130023424&r)===r&&10<(t=_x+500-$p())){if(0!==nf(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Hx(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Uh(cS.bind(null,e,Mx,Ax),t);break}cS(e,Mx,Ax);break;case 4:if(Xx(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Xp(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=$p()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fx(r/1960))-r)){e.timeoutHandle=Uh(cS.bind(null,e,Mx,Ax),r);break}cS(e,Mx,Ax);break;default:throw Error(Kc(329))}}}return Vx(e,$p()),e.callbackNode===n?Ux.bind(null,e):null}function Yx(e,t){var n=Ix;return e.current.memoizedState.isDehydrated&&(tS(e,t).flags|=256),2!==(e=iS(e,t))&&(t=Mx,Mx=n,null!==t&&Kx(t)),e}function Kx(e){null===Mx?Mx=e:Mx.push.apply(Mx,e)}function Xx(e,t){for(t&=~kx,t&=~Lx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xp(t),r=1<<n;e[n]=-1,t&=~r}}function Qx(e){if(6&vx)throw Error(Kc(327));dS();var t=nf(e,0);if(!(1&t))return Vx(e,$p()),null;var n=iS(e,t);if(0!==e.tag&&2===n){var r=of(e);0!==r&&(t=r,n=Yx(e,r))}if(1===n)throw n=wx,tS(e,0),Xx(e,t),Vx(e,$p()),n;if(6===n)throw Error(Kc(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cS(e,Mx,Ax),Vx(e,$p()),null}function Jx(e,t){var n=vx;vx|=1;try{return e(t)}finally{0===(vx=n)&&(Px=$p()+500,Mg&&Ag())}}function Zx(e){null!==qx&&0===qx.tag&&!(6&vx)&&dS();var t=vx;vx|=1;var n=gx.transition,r=cf;try{if(gx.transition=null,cf=1,e)return e()}finally{cf=r,gx.transition=n,!(6&(vx=t))&&Ag()}}function eS(){Sx=Ex.current,hg(Ex)}function tS(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yh(n)),null!==yx)for(n=yx.return;null!==n;){var r=n;switch(Gg(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Cg();break;case 3:jv(),hg(yg),hg(bg),Vv();break;case 5:Bv(r);break;case 4:jv();break;case 13:case 19:hg(Hv);break;case 10:vv(r.type._context);break;case 22:case 23:eS()}n=n.return}if(bx=e,yx=e=ES(e.current,null),xx=Sx=t,Cx=0,wx=null,kx=Lx=Rx=0,Mx=Ix=null,null!==Sv){for(t=0;t<Sv.length;t++)if(null!==(r=(n=Sv[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Sv=null}return e}function nS(e,t){for(;;){var n=yx;try{if(gv(),Uv.current=$b,Zv){for(var r=Xv.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Zv=!1}if(Kv=0,Jv=Qv=Xv=null,eb=!1,tb=0,hx.current=null,null===n||null===n.return){Cx=1,wx=t,yx=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=xx,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=iy(a);if(null!==f){f.flags&=-257,ay(f,a,l,0,t),1&f.mode&&oy(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){oy(i,u,t),oS();break e}s=Error(Kc(426))}else if(Yg&&1&l.mode){var g=iy(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ay(g,a,l,0,t),ov(Jb(s,l));break e}}i=s=Jb(s,l),4!==Cx&&(Cx=2),null===Ix?Ix=[i]:Ix.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Pv(i,ny(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ox&&Ox.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Pv(i,ry(i,l,t));break e}}i=i.return}while(null!==i)}uS(n)}catch(e){t=e,yx===n&&null!==n&&(yx=n=n.return);continue}break}}function rS(){var e=mx.current;return mx.current=$b,null===e?$b:e}function oS(){0!==Cx&&3!==Cx&&2!==Cx||(Cx=4),null===bx||!(268435455&Rx)&&!(268435455&Lx)||Xx(bx,xx)}function iS(e,t){var n=vx;vx|=2;var r=rS();for(bx===e&&xx===t||(Ax=null,tS(e,t));;)try{aS();break}catch(t){nS(e,t)}if(gv(),vx=n,mx.current=r,null!==yx)throw Error(Kc(261));return bx=null,xx=0,Cx}function aS(){for(;null!==yx;)sS(yx)}function lS(){for(;null!==yx&&!zp();)sS(yx)}function sS(e){var t=px(e.alternate,e,Sx);e.memoizedProps=e.pendingProps,null===t?uS(e):yx=t,hx.current=null}function uS(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qy(n,t)))return n.flags&=32767,void(yx=n);if(null===e)return Cx=6,void(yx=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ny(n,t,Sx)))return void(yx=n);if(null!==(t=t.sibling))return void(yx=t);yx=t=e}while(null!==t);0===Cx&&(Cx=5)}function cS(e,t,n){var r=cf,o=gx.transition;try{gx.transition=null,cf=1,function(e,t,n,r){do{dS()}while(null!==qx);if(6&vx)throw Error(Kc(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Kc(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Xp(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===bx&&(yx=bx=null,xx=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Nx||(Nx=!0,bS(Gp,(function(){return dS(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=gx.transition,gx.transition=null;var a=cf;cf=1;var l=vx;vx|=4,hx.current=null,function(e,t){if(Wh=Of,rh(e=nh())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gh={focusedElem:e,selectionRange:n},Of=!1,$y=t;null!==$y;)if(e=(t=$y).child,1028&t.subtreeFlags&&null!==e)e.return=t,$y=e;else for(;null!==$y;){t=$y;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Gb(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(Kc(163))}}catch(e){fS(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$y=e;break}$y=t.return}m=Wy,Wy=!1}(e,n),ix(n,e),oh(Gh),Of=!!Wh,Gh=Wh=null,e.current=n,lx(n),jp(),vx=l,cf=a,gx.transition=i}else e.current=n;if(Nx&&(Nx=!1,qx=e,Fx=o),i=e.pendingLanes,0===i&&(Ox=null),function(e){if(Kp&&"function"==typeof Kp.onCommitFiberRoot)try{Kp.onCommitFiberRoot(Yp,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Vx(e,$p()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Dx)throw Dx=!1,e=Tx,Tx=null,e;!!(1&Fx)&&0!==e.tag&&dS(),i=e.pendingLanes,1&i?e===jx?zx++:(zx=0,jx=e):zx=0,Ag()}(e,t,n,r)}finally{gx.transition=o,cf=r}return null}function dS(){if(null!==qx){var e=df(Fx),t=gx.transition,n=cf;try{if(gx.transition=null,cf=16>e?16:e,null===qx)var r=!1;else{if(e=qx,qx=null,Fx=0,6&vx)throw Error(Kc(331));var o=vx;for(vx|=4,$y=e.current;null!==$y;){var i=$y,a=i.child;if(16&$y.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for($y=u;null!==$y;){var c=$y;switch(c.tag){case 0:case 11:case 15:Gy(8,c,i)}var d=c.child;if(null!==d)d.return=c,$y=d;else for(;null!==$y;){var p=(c=$y).sibling,f=c.return;if(Yy(c),c===u){$y=null;break}if(null!==p){p.return=f,$y=p;break}$y=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}$y=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,$y=a;else e:for(;null!==$y;){if(2048&(i=$y).flags)switch(i.tag){case 0:case 11:case 15:Gy(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,$y=v;break e}$y=i.return}}var b=e.current;for($y=b;null!==$y;){var y=(a=$y).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,$y=y;else e:for(a=b;null!==$y;){if(2048&(l=$y).flags)try{switch(l.tag){case 0:case 11:case 15:Vy(9,l)}}catch(e){fS(l,l.return,e)}if(l===a){$y=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,$y=x;break e}$y=l.return}}if(vx=o,Ag(),Kp&&"function"==typeof Kp.onPostCommitFiberRoot)try{Kp.onPostCommitFiberRoot(Yp,e)}catch(e){}r=!0}return r}finally{cf=n,gx.transition=t}}return!1}function pS(e,t,n){e=Mv(e,t=ny(0,t=Jb(n,t),1),1),t=Hx(),null!==e&&(sf(e,1,t),Vx(e,t))}function fS(e,t,n){if(3===e.tag)pS(e,e,n);else for(;null!==t;){if(3===t.tag){pS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ox||!Ox.has(r))){t=Mv(t,e=ry(t,e=Jb(n,e),1),1),e=Hx(),null!==t&&(sf(t,1,e),Vx(t,e));break}}t=t.return}}function mS(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Hx(),e.pingedLanes|=e.suspendedLanes&n,bx===e&&(xx&n)===n&&(4===Cx||3===Cx&&(130023424&xx)===xx&&500>$p()-_x?tS(e,0):kx|=n),Vx(e,t)}function hS(e,t){0===t&&(1&e.mode?(t=ef,!(130023424&(ef<<=1))&&(ef=4194304)):t=1);var n=Hx();null!==(e=wv(e,t))&&(sf(e,t,n),Vx(e,n))}function gS(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hS(e,n)}function vS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Kc(314))}null!==r&&r.delete(t),hS(e,n)}function bS(e,t){return qp(e,t)}function yS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xS(e,t,n,r){return new yS(e,t,n,r)}function SS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ES(e,t){var n=e.alternate;return null===n?((n=xS(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function CS(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)SS(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case fd:return wS(n.children,o,i,t);case md:a=8,o|=8;break;case hd:return(e=xS(12,n,t,2|o)).elementType=hd,e.lanes=i,e;case yd:return(e=xS(13,n,t,o)).elementType=yd,e.lanes=i,e;case xd:return(e=xS(19,n,t,o)).elementType=xd,e.lanes=i,e;case Cd:return RS(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case gd:a=10;break e;case vd:a=9;break e;case bd:a=11;break e;case Sd:a=14;break e;case Ed:a=16,r=null;break e}throw Error(Kc(130,null==e?e:typeof e,""))}return(t=xS(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function wS(e,t,n,r){return(e=xS(7,e,r,t)).lanes=n,e}function RS(e,t,n,r){return(e=xS(22,e,r,t)).elementType=Cd,e.lanes=n,e.stateNode={isHidden:!1},e}function LS(e,t,n){return(e=xS(6,e,null,t)).lanes=n,e}function kS(e,t,n){return(t=xS(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lf(0),this.expirationTimes=lf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function MS(e,t,n,r,o,i,a,l,s){return e=new IS(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=xS(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lv(i),e}function _S(e){if(!e)return vg;e:{if(Ap(e=e._reactInternals)!==e||1!==e.tag)throw Error(Kc(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Eg(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Kc(171))}if(1===e.tag){var n=e.type;if(Eg(n))return Rg(e,n,t)}return t}function PS(e,t,n,r,o,i,a,l,s){return(e=MS(n,r,!0,e,0,i,0,l,s)).context=_S(null),n=e.current,(i=Iv(r=Hx(),o=Wx(n))).callback=null!=t?t:null,Mv(n,i,o),e.current.lanes=o,sf(e,o,r),Vx(e,r),e}function AS(e,t,n,r){var o=t.current,i=Hx(),a=Wx(o);return n=_S(n),null===t.context?t.context=n:t.pendingContext=n,(t=Iv(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mv(o,t,a))&&(Gx(e,o,a,i),_v(e,o,a)),a}function DS(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function TS(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function OS(e,t){TS(e,t),(e=e.alternate)&&TS(e,t)}px=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||yg.current)sy=!0;else{if(!(e.lanes&n||128&t.flags))return sy=!1,function(e,t,n){switch(t.tag){case 3:by(t),rv();break;case 5:$v(t);break;case 1:Eg(t.type)&&Lg(t);break;case 4:zv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;gg(pv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(gg(Hv,1&Hv.current),t.flags|=128,null):n&t.child.childLanes?Ly(e,t,n):(gg(Hv,1&Hv.current),null!==(e=Dy(e,t,n))?e.sibling:null);gg(Hv,1&Hv.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Py(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),gg(Hv,Hv.current),r)break;return null;case 22:case 23:return t.lanes=0,fy(e,t,n)}return Dy(e,t,n)}(e,t,n);sy=!!(131072&e.flags)}else sy=!1,Yg&&1048576&t.flags&&Hg(t,Ng,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ay(e,t),e=t.pendingProps;var o=Sg(t,bg.current);yv(t,n),o=ib(null,t,r,e,o,n);var i=ab();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Eg(r)?(i=!0,Lg(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Lv(t),o.updater=Ub,t.stateNode=o,o._reactInternals=t,Qb(t,r,e,n),t=vy(null,t,r,!0,i,n)):(t.tag=0,Yg&&i&&Wg(t),uy(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ay(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return SS(e)?1:0;if(null!=e){if((e=e.$$typeof)===bd)return 11;if(e===Sd)return 14}return 2}(r),e=Gb(r,e),o){case 0:t=hy(null,t,r,e,n);break e;case 1:t=gy(null,t,r,e,n);break e;case 11:t=cy(null,t,r,e,n);break e;case 14:t=dy(null,t,r,Gb(r.type,e),n);break e}throw Error(Kc(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,hy(e,t,r,o=t.elementType===r?o:Gb(r,o),n);case 1:return r=t.type,o=t.pendingProps,gy(e,t,r,o=t.elementType===r?o:Gb(r,o),n);case 3:e:{if(by(t),null===e)throw Error(Kc(387));r=t.pendingProps,o=(i=t.memoizedState).element,kv(e,t),Av(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=yy(e,t,r,n,o=Jb(Error(Kc(423)),t));break e}if(r!==o){t=yy(e,t,r,n,o=Jb(Error(Kc(424)),t));break e}for(Ug=Zh(t.stateNode.containerInfo.firstChild),Vg=t,Yg=!0,Kg=null,n=dv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rv(),r===o){t=Dy(e,t,n);break e}uy(e,t,r,n)}t=t.child}return t;case 5:return $v(t),null===e&&Zg(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Vh(r,o)?a=null:null!==i&&Vh(r,i)&&(t.flags|=32),my(e,t),uy(e,t,a,n),t.child;case 6:return null===e&&Zg(t),null;case 13:return Ly(e,t,n);case 4:return zv(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=cv(t,null,r,n):uy(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,cy(e,t,r,o=t.elementType===r?o:Gb(r,o),n);case 7:return uy(e,t,t.pendingProps,n),t.child;case 8:case 12:return uy(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,gg(pv,r._currentValue),r._currentValue=a,null!==i)if(Qm(i.value,a)){if(i.children===o.children&&!yg.current){t=Dy(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Iv(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),bv(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(Kc(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),bv(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}uy(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yv(t,n),r=r(o=xv(o)),t.flags|=1,uy(e,t,r,n),t.child;case 14:return o=Gb(r=t.type,t.pendingProps),dy(e,t,r,o=Gb(r.type,o),n);case 15:return py(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Gb(r,o),Ay(e,t),t.tag=1,Eg(r)?(e=!0,Lg(t)):e=!1,yv(t,n),Kb(t,r,o),Qb(t,r,o,n),vy(null,t,r,!0,e,n);case 19:return Py(e,t,n);case 22:return fy(e,t,n)}throw Error(Kc(156,t.tag))};var NS="function"==typeof reportError?reportError:function(e){console.error(e)};function qS(e){this._internalRoot=e}function FS(e){this._internalRoot=e}function zS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $S(){}function BS(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=DS(a);l.call(e)}}AS(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=DS(a);i.call(e)}}var a=PS(t,r,e,0,null,!1,0,"",$S);return e._reactRootContainer=a,e[og]=a.current,Ah(8===e.nodeType?e.parentNode:e),Zx(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=DS(s);l.call(e)}}var s=MS(e,0,!1,null,0,!1,0,"",$S);return e._reactRootContainer=s,e[og]=s.current,Ah(8===e.nodeType?e.parentNode:e),Zx((function(){AS(t,s,n,r)})),s}(n,t,e,o,r);return DS(a)}FS.prototype.render=qS.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Kc(409));AS(e,t,null,null)},FS.prototype.unmount=qS.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Zx((function(){AS(null,e,null,null)})),t[og]=null}},FS.prototype.unstable_scheduleHydration=function(e){if(e){var t=hf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wf.length&&0!==t&&t<wf[n].priority;n++);wf.splice(n,0,e),0===n&&If(e)}},pf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tf(t.pendingLanes);0!==n&&(uf(t,1|n),Vx(t,$p()),!(6&vx)&&(Px=$p()+500,Ag()))}break;case 13:Zx((function(){var t=wv(e,1);if(null!==t){var n=Hx();Gx(t,e,1,n)}})),OS(e,1)}},ff=function(e){if(13===e.tag){var t=wv(e,134217728);if(null!==t)Gx(t,e,134217728,Hx());OS(e,134217728)}},mf=function(e){if(13===e.tag){var t=Wx(e),n=wv(e,t);if(null!==n)Gx(n,e,t,Hx());OS(e,t)}},hf=function(){return cf},gf=function(e,t){var n=cf;try{return cf=e,t()}finally{cf=n}},pp=function(e,t,n){switch(t){case"input":if(Bd(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=dg(r);if(!o)throw Error(Kc(90));qd(r),Bd(r,o)}}}break;case"textarea":Kd(e,n);break;case"select":null!=(t=n.value)&&Vd(e,!!n.multiple,t,!1)}},bp=Jx,yp=Zx;var HS={usingClientEntryPoint:!1,Events:[ug,cg,dg,gp,vp,Jx]},WS={findFiberByHostInstance:sg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GS={bundleType:WS.bundleType,version:WS.version,rendererPackageName:WS.rendererPackageName,rendererConfig:WS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Op(e))?null:e.stateNode},findFiberByHostInstance:WS.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var VS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!VS.isDisabled&&VS.supportsFiber)try{Yp=VS.inject(GS),Kp=VS}catch(ep){}}Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HS,Hc.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zS(t))throw Error(Kc(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:pd,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Hc.createRoot=function(e,t){if(!zS(e))throw Error(Kc(299));var n=!1,r="",o=NS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=MS(e,1,!1,null,0,n,0,r,o),e[og]=t.current,Ah(8===e.nodeType?e.parentNode:e),new qS(t)},Hc.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Kc(188));throw e=Object.keys(e).join(","),Error(Kc(268,e))}return e=null===(e=Op(t))?null:e.stateNode},Hc.flushSync=function(e){return Zx(e)},Hc.hydrate=function(e,t,n){if(!jS(t))throw Error(Kc(200));return BS(null,e,t,!0,n)},Hc.hydrateRoot=function(e,t,n){if(!zS(e))throw Error(Kc(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=NS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=PS(t,null,e,1,null!=n?n:null,o,0,i,a),e[og]=t.current,Ah(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new FS(t)},Hc.render=function(e,t,n){if(!jS(t))throw Error(Kc(200));return BS(null,e,t,!1,n)},Hc.unmountComponentAtNode=function(e){if(!jS(e))throw Error(Kc(40));return!!e._reactRootContainer&&(Zx((function(){BS(null,null,e,!1,(function(){e._reactRootContainer=null,e[og]=null}))})),!0)},Hc.unstable_batchedUpdates=Jx,Hc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jS(n))throw Error(Kc(200));if(null==e||void 0===e._reactInternals)throw Error(Kc(38));return BS(e,t,n,!1,r)},Hc.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Bc.exports=Hc;var US=Bc.exports,YS=n(US),KS=!1,XS=jn.createContext(null),QS="unmounted",JS="exited",ZS="entering",eE="entered",tE="exiting",nE=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=JS,r.appearStatus=ZS):o=eE:o=t.unmountOnExit||t.mountOnEnter?QS:JS,r.state={status:o},r.nextCallback=null,r}$c(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===QS?{status:JS}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ZS&&n!==eE&&(t=ZS):n!==ZS&&n!==eE||(t=tE)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ZS){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:YS.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===JS&&this.setState({status:QS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[YS.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||KS?this.safeSetState({status:eE},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ZS},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:eE},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:YS.findDOMNode(this);t&&!KS?(this.props.onExit(r),this.safeSetState({status:tE},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:JS},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:JS},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:YS.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===QS)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ba(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jn.createElement(XS.Provider,{value:null},"function"==typeof n?n(e,r):jn.cloneElement(jn.Children.only(n),r))},t}(jn.Component);function rE(){}nE.contextType=XS,nE.propTypes={},nE.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rE,onEntering:rE,onEntered:rE,onExit:rE,onExiting:rE,onExited:rE},nE.UNMOUNTED=QS,nE.EXITED=JS,nE.ENTERING=ZS,nE.ENTERED=eE,nE.EXITING=tE;var oE=nE;function iE(e,t){var n=Object.create(null);return e&&zn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&zn.isValidElement(e)?t(e):e}(e)})),n}function aE(e,t,n){return null!=n[t]?n[t]:e.props[t]}function lE(e,t,n){var r=iE(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(zn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=zn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&zn.isValidElement(u)&&(o[i]=zn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:aE(a,"exit",e),enter:aE(a,"enter",e)})):o[i]=zn.cloneElement(a,{in:!1}):o[i]=zn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:aE(a,"exit",e),enter:aE(a,"enter",e)})}})),o}var sE=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},uE=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}$c(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,iE(n.children,(function(e){return zn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:aE(e,"appear",n),enter:aE(e,"enter",n),exit:aE(e,"exit",n)})}))):lE(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=iE(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=va({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ba(e,["component","childFactory"]),o=this.state.contextValue,i=sE(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?jn.createElement(XS.Provider,{value:o},i):jn.createElement(XS.Provider,{value:o},jn.createElement(t,r,i))},t}(jn.Component);uE.propTypes={},uE.defaultProps={component:"div",childFactory:function(e){return e}};var cE=uE;const dE=e=>e.scrollTop;function pE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function fE(e){return ju("MuiPaper",e)}$u("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 mE=["className","component","elevation","square","variant"],hE=mc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Er({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&&Er({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${su("#fff",hc(t.elevation))}, ${su("#fff",hc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var gE=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Cr(n,mE),u=Er({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},fE,o)})(u);return js.jsx(hE,Er({as:o,ownerState:u,className:vc(c.root,r),ref:t},s))}));function vE(e){return"string"==typeof e}function bE(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function yE(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const xE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function SE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ba(e,xE),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=va({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=va({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=bE(va({},o,r)),l=yE(r),s=yE(o),u=t(a),c=Vs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=va({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=va({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(va({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||vE(e)?t:va({},t,{ownerState:va({},t.ownerState,n)})}(n,va({},s,{ref:nl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var EE=$u("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const CE=["center","classes","className"];let wE,RE,LE,kE,IE=e=>e;const ME=ca(wE||(wE=IE`
45
+ */function Qc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jc=new Set,Zc={};function ed(e,t){td(e,t),td(e+"Capture",t)}function td(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Jc.add(t[e])}var nd=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rd=Object.prototype.hasOwnProperty,od=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,id={},ad={};function ld(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var sd={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sd[e]=new ld(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sd[t]=new ld(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sd[e]=new ld(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sd[e]=new ld(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sd[e]=new ld(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sd[e]=new ld(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sd[e]=new ld(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sd[e]=new ld(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sd[e]=new ld(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ud=/[\-:]([a-z])/g;function cd(e){return e[1].toUpperCase()}function dd(e,t,n,r){var o=sd.hasOwnProperty(t)?sd[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!rd.call(ad,e)||!rd.call(id,e)&&(od.test(e)?ad[e]=!0:(id[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!1,!1)})),sd.xlinkHref=new ld("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pd=Kc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fd=Symbol.for("react.element"),md=Symbol.for("react.portal"),hd=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),vd=Symbol.for("react.profiler"),bd=Symbol.for("react.provider"),yd=Symbol.for("react.context"),xd=Symbol.for("react.forward_ref"),Sd=Symbol.for("react.suspense"),Ed=Symbol.for("react.suspense_list"),Cd=Symbol.for("react.memo"),wd=Symbol.for("react.lazy"),Rd=Symbol.for("react.offscreen"),Ld=Symbol.iterator;function kd(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ld&&e[Ld]||e["@@iterator"])?e:null}var Md,Id=Object.assign;function _d(e){if(void 0===Md)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Md=t&&t[1]||""}return"\n"+Md+e}var Pd=!1;function Ad(e,t){if(!e||Pd)return"";Pd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_d(e):""}function Dd(e){switch(e.tag){case 5:return _d(e.type);case 16:return _d("Lazy");case 13:return _d("Suspense");case 19:return _d("SuspenseList");case 0:case 2:case 15:return e=Ad(e.type,!1);case 11:return e=Ad(e.type.render,!1);case 1:return e=Ad(e.type,!0);default:return""}}function Td(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case hd:return"Fragment";case md:return"Portal";case vd:return"Profiler";case gd:return"StrictMode";case Sd:return"Suspense";case Ed:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case yd:return(e.displayName||"Context")+".Consumer";case bd:return(e._context.displayName||"Context")+".Provider";case xd:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Cd:return null!==(t=e.displayName||null)?t:Td(e.type)||"Memo";case wd:t=e._payload,e=e._init;try{return Td(e(t))}catch(e){}}return null}function Od(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Td(t);case 8:return t===gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Nd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Fd(e){e._valueTracker||(e._valueTracker=function(e){var t=qd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qd(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jd(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $d(e,t){var n=t.checked;return Id({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Bd(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Nd(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Hd(e,t){null!=(t=t.checked)&&dd(e,"checked",t,!1)}function Wd(e,t){Hd(e,t);var n=Nd(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vd(e,t.type,Nd(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Gd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Vd(e,t,n){"number"===t&&jd(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ud=Array.isArray;function Yd(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Nd(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Kd(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Qc(91));return Id({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xd(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Qc(92));if(Ud(n)){if(1<n.length)throw Error(Qc(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Nd(n)}}function Qd(e,t){var n=Nd(t.value),r=Nd(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Jd(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Zd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ep(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zd(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tp,np,rp=(np=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tp=tp||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return np(e,t)}))}:np);function op(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ip={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ap=["Webkit","ms","Moz","O"];function lp(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ip.hasOwnProperty(e)&&ip[e]?(""+t).trim():t+"px"}function sp(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lp(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ip).forEach((function(e){ap.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ip[t]=ip[e]}))}));var up=Id({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cp(e,t){if(t){if(up[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Qc(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Qc(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qc(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Qc(62))}}function dp(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pp=null;function fp(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var mp=null,hp=null,gp=null;function vp(e){if(e=dg(e)){if("function"!=typeof mp)throw Error(Qc(280));var t=e.stateNode;t&&(t=fg(t),mp(e.stateNode,e.type,t))}}function bp(e){hp?gp?gp.push(e):gp=[e]:hp=e}function yp(){if(hp){var e=hp,t=gp;if(gp=hp=null,vp(e),t)for(e=0;e<t.length;e++)vp(t[e])}}function xp(e,t){return e(t)}function Sp(){}var Ep=!1;function Cp(e,t,n){if(Ep)return e(t,n);Ep=!0;try{return xp(e,t,n)}finally{Ep=!1,(null!==hp||null!==gp)&&(Sp(),yp())}}function wp(e,t){var n=e.stateNode;if(null===n)return null;var r=fg(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Qc(231,t,typeof n));return n}var Rp=!1;if(nd)try{var Lp={};Object.defineProperty(Lp,"passive",{get:function(){Rp=!0}}),window.addEventListener("test",Lp,Lp),window.removeEventListener("test",Lp,Lp)}catch(np){Rp=!1}function kp(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mp=!1,Ip=null,_p=!1,Pp=null,Ap={onError:function(e){Mp=!0,Ip=e}};function Dp(e,t,n,r,o,i,a,l,s){Mp=!1,Ip=null,kp.apply(Ap,arguments)}function Tp(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Op(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Np(e){if(Tp(e)!==e)throw Error(Qc(188))}function qp(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Tp(e)))throw Error(Qc(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Np(o),e;if(i===r)return Np(o),t;i=i.sibling}throw Error(Qc(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Qc(189))}}if(n.alternate!==r)throw Error(Qc(190))}if(3!==n.tag)throw Error(Qc(188));return n.stateNode.current===n?e:t}(e),null!==e?Fp(e):null}function Fp(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Fp(e);if(null!==t)return t;e=e.sibling}return null}var zp=Xc.unstable_scheduleCallback,jp=Xc.unstable_cancelCallback,$p=Xc.unstable_shouldYield,Bp=Xc.unstable_requestPaint,Hp=Xc.unstable_now,Wp=Xc.unstable_getCurrentPriorityLevel,Gp=Xc.unstable_ImmediatePriority,Vp=Xc.unstable_UserBlockingPriority,Up=Xc.unstable_NormalPriority,Yp=Xc.unstable_LowPriority,Kp=Xc.unstable_IdlePriority,Xp=null,Qp=null;var Jp=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zp(e)/ef|0)|0},Zp=Math.log,ef=Math.LN2;var tf=64,nf=4194304;function rf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function of(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=rf(l):0!==(i&=a)&&(r=rf(i))}else 0!==(a=n&~o)?r=rf(a):0!==i&&(r=rf(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Jp(t)),r|=e[n],t&=~o;return r}function af(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function lf(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sf(){var e=tf;return!(4194240&(tf<<=1))&&(tf=64),e}function uf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cf(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Jp(t)]=n}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jp(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pf=0;function ff(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var mf,hf,gf,vf,bf,yf=!1,xf=[],Sf=null,Ef=null,Cf=null,wf=new Map,Rf=new Map,Lf=[],kf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":Sf=null;break;case"dragenter":case"dragleave":Ef=null;break;case"mouseover":case"mouseout":Cf=null;break;case"pointerover":case"pointerout":wf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rf.delete(t.pointerId)}}function If(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=dg(t))&&hf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function _f(e){var t=cg(e.target);if(null!==t){var n=Tp(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Op(n)))return e.blockedOn=t,void bf(e.priority,(function(){gf(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=dg(n))&&hf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);pp=r,n.target.dispatchEvent(r),pp=null,t.shift()}return!0}function Af(e,t,n){Pf(e)&&n.delete(t)}function Df(){yf=!1,null!==Sf&&Pf(Sf)&&(Sf=null),null!==Ef&&Pf(Ef)&&(Ef=null),null!==Cf&&Pf(Cf)&&(Cf=null),wf.forEach(Af),Rf.forEach(Af)}function Tf(e,t){e.blockedOn===t&&(e.blockedOn=null,yf||(yf=!0,Xc.unstable_scheduleCallback(Xc.unstable_NormalPriority,Df)))}function Of(e){function t(t){return Tf(t,e)}if(0<xf.length){Tf(xf[0],e);for(var n=1;n<xf.length;n++){var r=xf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Sf&&Tf(Sf,e),null!==Ef&&Tf(Ef,e),null!==Cf&&Tf(Cf,e),wf.forEach(t),Rf.forEach(t),n=0;n<Lf.length;n++)(r=Lf[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lf.length&&null===(n=Lf[0]).blockedOn;)_f(n),null===n.blockedOn&&Lf.shift()}var Nf=pd.ReactCurrentBatchConfig,qf=!0;function Ff(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=1,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function zf(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=4,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function jf(e,t,n,r){if(qf){var o=Bf(e,t,n,r);if(null===o)Nh(e,t,r,$f,n),Mf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Sf=If(Sf,e,t,n,r,o),!0;case"dragenter":return Ef=If(Ef,e,t,n,r,o),!0;case"mouseover":return Cf=If(Cf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return wf.set(i,If(wf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rf.set(i,If(Rf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<kf.indexOf(e)){for(;null!==o;){var i=dg(o);if(null!==i&&mf(i),null===(i=Bf(e,t,n,r))&&Nh(e,t,r,$f,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Nh(e,t,r,null,n)}}var $f=null;function Bf(e,t,n,r){if($f=null,null!==(e=cg(e=fp(r))))if(null===(t=Tp(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Op(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $f=e,null}function Hf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wp()){case Gp:return 1;case Vp:return 4;case Up:case Yp:return 16;case Kp:return 536870912;default:return 16}default:return 16}}var Wf=null,Gf=null,Vf=null;function Uf(){if(Vf)return Vf;var e,t,n=Gf,r=n.length,o="value"in Wf?Wf.value:Wf.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vf=o.slice(e,1<t?1-t:void 0)}function Yf(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kf(){return!0}function Xf(){return!1}function Qf(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Kf:Xf,this.isPropagationStopped=Xf,this}return Id(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kf)},persist:function(){},isPersistent:Kf}),t}var Jf,Zf,em,tm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nm=Qf(tm),rm=Id({},tm,{view:0,detail:0}),om=Qf(rm),im=Id({},rm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vm,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==em&&(em&&"mousemove"===e.type?(Jf=e.screenX-em.screenX,Zf=e.screenY-em.screenY):Zf=Jf=0,em=e),Jf)},movementY:function(e){return"movementY"in e?e.movementY:Zf}}),am=Qf(im),lm=Qf(Id({},im,{dataTransfer:0})),sm=Qf(Id({},rm,{relatedTarget:0})),um=Qf(Id({},tm,{animationName:0,elapsedTime:0,pseudoElement:0})),cm=Id({},tm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dm=Qf(cm),pm=Qf(Id({},tm,{data:0})),fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hm[e])&&!!t[e]}function vm(){return gm}var bm=Id({},rm,{key:function(e){if(e.key){var t=fm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yf(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vm,charCode:function(e){return"keypress"===e.type?Yf(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yf(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ym=Qf(bm),xm=Qf(Id({},im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sm=Qf(Id({},rm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vm})),Em=Qf(Id({},tm,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cm=Id({},im,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wm=Qf(Cm),Rm=[9,13,27,32],Lm=nd&&"CompositionEvent"in window,km=null;nd&&"documentMode"in document&&(km=document.documentMode);var Mm=nd&&"TextEvent"in window&&!km,Im=nd&&(!Lm||km&&8<km&&11>=km),_m=String.fromCharCode(32),Pm=!1;function Am(e,t){switch(e){case"keyup":return-1!==Rm.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dm(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Tm=!1;var Om={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Om[e.type]:"textarea"===t}function qm(e,t,n,r){bp(r),0<(t=Fh(t,"onChange")).length&&(n=new nm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fm=null,zm=null;function jm(e){_h(e,0)}function $m(e){if(zd(pg(e)))return e}function Bm(e,t){if("change"===e)return t}var Hm=!1;if(nd){var Wm;if(nd){var Gm="oninput"in document;if(!Gm){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Gm="function"==typeof Vm.oninput}Wm=Gm}else Wm=!1;Hm=Wm&&(!document.documentMode||9<document.documentMode)}function Um(){Fm&&(Fm.detachEvent("onpropertychange",Ym),zm=Fm=null)}function Ym(e){if("value"===e.propertyName&&$m(zm)){var t=[];qm(t,zm,e,fp(e)),Cp(jm,t)}}function Km(e,t,n){"focusin"===e?(Um(),zm=n,(Fm=t).attachEvent("onpropertychange",Ym)):"focusout"===e&&Um()}function Xm(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $m(zm)}function Qm(e,t){if("click"===e)return $m(t)}function Jm(e,t){if("input"===e||"change"===e)return $m(t)}var Zm="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eh(e,t){if(Zm(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!rd.call(t,o)||!Zm(e[o],t[o]))return!1}return!0}function th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nh(e,t){var n,r=th(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=th(r)}}function rh(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?rh(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oh(){for(var e=window,t=jd();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jd((e=t.contentWindow).document)}return t}function ih(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ah(e){var t=oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rh(n.ownerDocument.documentElement,n)){if(null!==r&&ih(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=nh(n,i);var a=nh(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lh=nd&&"documentMode"in document&&11>=document.documentMode,sh=null,uh=null,ch=null,dh=!1;function ph(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dh||null==sh||sh!==jd(r)||("selectionStart"in(r=sh)&&ih(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ch&&eh(ch,r)||(ch=r,0<(r=Fh(uh,"onSelect")).length&&(t=new nm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sh)))}function fh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mh={animationend:fh("Animation","AnimationEnd"),animationiteration:fh("Animation","AnimationIteration"),animationstart:fh("Animation","AnimationStart"),transitionend:fh("Transition","TransitionEnd")},hh={},gh={};function vh(e){if(hh[e])return hh[e];if(!mh[e])return e;var t,n=mh[e];for(t in n)if(n.hasOwnProperty(t)&&t in gh)return hh[e]=n[t];return e}nd&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete mh.animationend.animation,delete mh.animationiteration.animation,delete mh.animationstart.animation),"TransitionEvent"in window||delete mh.transitionend.transition);var bh=vh("animationend"),yh=vh("animationiteration"),xh=vh("animationstart"),Sh=vh("transitionend"),Eh=new Map,Ch="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wh(e,t){Eh.set(e,t),ed(t,[e])}for(var Rh=0;Rh<Ch.length;Rh++){var Lh=Ch[Rh];wh(Lh.toLowerCase(),"on"+(Lh[0].toUpperCase()+Lh.slice(1)))}wh(bh,"onAnimationEnd"),wh(yh,"onAnimationIteration"),wh(xh,"onAnimationStart"),wh("dblclick","onDoubleClick"),wh("focusin","onFocus"),wh("focusout","onBlur"),wh(Sh,"onTransitionEnd"),td("onMouseEnter",["mouseout","mouseover"]),td("onMouseLeave",["mouseout","mouseover"]),td("onPointerEnter",["pointerout","pointerover"]),td("onPointerLeave",["pointerout","pointerover"]),ed("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ed("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ed("onBeforeInput",["compositionend","keypress","textInput","paste"]),ed("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mh=new Set("cancel close invalid load scroll toggle".split(" ").concat(kh));function Ih(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Dp.apply(this,arguments),Mp){if(!Mp)throw Error(Qc(198));var u=Ip;Mp=!1,Ip=null,_p||(_p=!0,Pp=u)}}(r,t,void 0,e),e.currentTarget=null}function _h(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ih(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ih(o,l,u),i=s}}}if(_p)throw e=Pp,_p=!1,Pp=null,e}function Ph(e,t){var n=t[lg];void 0===n&&(n=t[lg]=new Set);var r=e+"__bubble";n.has(r)||(Oh(t,e,2,!1),n.add(r))}function Ah(e,t,n){var r=0;t&&(r|=4),Oh(n,e,r,t)}var Dh="_reactListening"+Math.random().toString(36).slice(2);function Th(e){if(!e[Dh]){e[Dh]=!0,Jc.forEach((function(t){"selectionchange"!==t&&(Mh.has(t)||Ah(t,!1,e),Ah(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Dh]||(t[Dh]=!0,Ah("selectionchange",!1,t))}}function Oh(e,t,n,r){switch(Hf(t)){case 1:var o=Ff;break;case 4:o=zf;break;default:o=jf}n=o.bind(null,t,n,e),o=void 0,!Rp||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nh(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=cg(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Cp((function(){var r=i,o=fp(n),a=[];e:{var l=Eh.get(e);if(void 0!==l){var s=nm,u=e;switch(e){case"keypress":if(0===Yf(n))break e;case"keydown":case"keyup":s=ym;break;case"focusin":u="focus",s=sm;break;case"focusout":u="blur",s=sm;break;case"beforeblur":case"afterblur":s=sm;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Sm;break;case bh:case yh:case xh:s=um;break;case Sh:s=Em;break;case"scroll":s=om;break;case"wheel":s=wm;break;case"copy":case"cut":case"paste":s=dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=xm}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=wp(m,p))&&c.push(qh(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===pp||!(u=n.relatedTarget||n.fromElement)||!cg(u)&&!u[ag])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?cg(u):null)&&(u!==(d=Tp(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=am,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=xm,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:pg(s),f=null==u?l:pg(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,cg(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=zh(f))m++;for(f=0,h=p;h;h=zh(h))f++;for(;0<m-f;)c=zh(c),m--;for(;0<f-m;)p=zh(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=zh(c),p=zh(p)}c=null}else c=null;null!==s&&jh(a,l,s,c,!1),null!==u&&null!==d&&jh(a,d,u,c,!0)}if("select"===(s=(l=r?pg(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Bm;else if(Nm(l))if(Hm)g=Jm;else{g=Xm;var v=Km}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Qm);switch(g&&(g=g(e,r))?qm(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Vd(l,"number",l.value)),v=r?pg(r):window,e){case"focusin":(Nm(v)||"true"===v.contentEditable)&&(sh=v,uh=r,ch=null);break;case"focusout":ch=uh=sh=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,ph(a,n,o);break;case"selectionchange":if(lh)break;case"keydown":case"keyup":ph(a,n,o)}var b;if(Lm)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Tm?Am(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Im&&"ko"!==n.locale&&(Tm||"onCompositionStart"!==y?"onCompositionEnd"===y&&Tm&&(b=Uf()):(Gf="value"in(Wf=o)?Wf.value:Wf.textContent,Tm=!0)),0<(v=Fh(r,y)).length&&(y=new pm(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Dm(n))&&(y.data=b))),(b=Mm?function(e,t){switch(e){case"compositionend":return Dm(t);case"keypress":return 32!==t.which?null:(Pm=!0,_m);case"textInput":return(e=t.data)===_m&&Pm?null:e;default:return null}}(e,n):function(e,t){if(Tm)return"compositionend"===e||!Lm&&Am(e,t)?(e=Uf(),Vf=Gf=Wf=null,Tm=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Im&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fh(r,"onBeforeInput")).length&&(o=new pm("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}_h(a,t)}))}function qh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fh(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=wp(e,n))&&r.unshift(qh(e,i,o)),null!=(i=wp(e,t))&&r.push(qh(e,i,o))),e=e.return}return r}function zh(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jh(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=wp(n,i))&&a.unshift(qh(n,s,l)):o||null!=(s=wp(n,i))&&a.push(qh(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $h=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Hh(e){return("string"==typeof e?e:""+e).replace($h,"\n").replace(Bh,"")}function Wh(e,t,n){if(t=Hh(t),Hh(e)!==t&&n)throw Error(Qc(425))}function Gh(){}var Vh=null,Uh=null;function Yh(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Kh="function"==typeof setTimeout?setTimeout:void 0,Xh="function"==typeof clearTimeout?clearTimeout:void 0,Qh="function"==typeof Promise?Promise:void 0,Jh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Qh?function(e){return Qh.resolve(null).then(e).catch(Zh)}:Kh;function Zh(e){setTimeout((function(){throw e}))}function eg(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Of(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Of(t)}function tg(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ng(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var rg=Math.random().toString(36).slice(2),og="__reactFiber$"+rg,ig="__reactProps$"+rg,ag="__reactContainer$"+rg,lg="__reactEvents$"+rg,sg="__reactListeners$"+rg,ug="__reactHandles$"+rg;function cg(e){var t=e[og];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ag]||n[og]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ng(e);null!==e;){if(n=e[og])return n;e=ng(e)}return t}n=(e=n).parentNode}return null}function dg(e){return!(e=e[og]||e[ag])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pg(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Qc(33))}function fg(e){return e[ig]||null}var mg=[],hg=-1;function gg(e){return{current:e}}function vg(e){0>hg||(e.current=mg[hg],mg[hg]=null,hg--)}function bg(e,t){hg++,mg[hg]=e.current,e.current=t}var yg={},xg=gg(yg),Sg=gg(!1),Eg=yg;function Cg(e,t){var n=e.type.contextTypes;if(!n)return yg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wg(e){return null!=(e=e.childContextTypes)}function Rg(){vg(Sg),vg(xg)}function Lg(e,t,n){if(xg.current!==yg)throw Error(Qc(168));bg(xg,t),bg(Sg,n)}function kg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(Qc(108,Od(e)||"Unknown",o));return Id({},n,r)}function Mg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yg,Eg=xg.current,bg(xg,e),bg(Sg,Sg.current),!0}function Ig(e,t,n){var r=e.stateNode;if(!r)throw Error(Qc(169));n?(e=kg(e,t,Eg),r.__reactInternalMemoizedMergedChildContext=e,vg(Sg),vg(xg),bg(xg,e)):vg(Sg),bg(Sg,n)}var _g=null,Pg=!1,Ag=!1;function Dg(e){null===_g?_g=[e]:_g.push(e)}function Tg(){if(!Ag&&null!==_g){Ag=!0;var e=0,t=pf;try{var n=_g;for(pf=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_g=null,Pg=!1}catch(t){throw null!==_g&&(_g=_g.slice(e+1)),zp(Gp,Tg),t}finally{pf=t,Ag=!1}}return null}var Og=[],Ng=0,qg=null,Fg=0,zg=[],jg=0,$g=null,Bg=1,Hg="";function Wg(e,t){Og[Ng++]=Fg,Og[Ng++]=qg,qg=e,Fg=t}function Gg(e,t,n){zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,$g=e;var r=Bg;e=Hg;var o=32-Jp(r)-1;r&=~(1<<o),n+=1;var i=32-Jp(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Bg=1<<32-Jp(t)+o|n<<o|r,Hg=i+e}else Bg=1<<i|n<<o|r,Hg=e}function Vg(e){null!==e.return&&(Wg(e,1),Gg(e,1,0))}function Ug(e){for(;e===qg;)qg=Og[--Ng],Og[Ng]=null,Fg=Og[--Ng],Og[Ng]=null;for(;e===$g;)$g=zg[--jg],zg[jg]=null,Hg=zg[--jg],zg[jg]=null,Bg=zg[--jg],zg[jg]=null}var Yg=null,Kg=null,Xg=!1,Qg=null;function Jg(e,t){var n=ES(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Zg(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Yg=e,Kg=tg(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Yg=e,Kg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$g?{id:Bg,overflow:Hg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ES(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Yg=e,Kg=null,!0);default:return!1}}function ev(e){return!(!(1&e.mode)||128&e.flags)}function tv(e){if(Xg){var t=Kg;if(t){var n=t;if(!Zg(e,t)){if(ev(e))throw Error(Qc(418));t=tg(n.nextSibling);var r=Yg;t&&Zg(e,t)?Jg(r,n):(e.flags=-4097&e.flags|2,Xg=!1,Yg=e)}}else{if(ev(e))throw Error(Qc(418));e.flags=-4097&e.flags|2,Xg=!1,Yg=e}}}function nv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Yg=e}function rv(e){if(e!==Yg)return!1;if(!Xg)return nv(e),Xg=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Yh(e.type,e.memoizedProps)),t&&(t=Kg)){if(ev(e))throw ov(),Error(Qc(418));for(;t;)Jg(e,t),t=tg(t.nextSibling)}if(nv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Qc(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Kg=tg(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Kg=null}}else Kg=Yg?tg(e.stateNode.nextSibling):null;return!0}function ov(){for(var e=Kg;e;)e=tg(e.nextSibling)}function iv(){Kg=Yg=null,Xg=!1}function av(e){null===Qg?Qg=[e]:Qg.push(e)}var lv=pd.ReactCurrentBatchConfig;function sv(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Qc(309));var r=n.stateNode}if(!r)throw Error(Qc(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(Qc(284));if(!n._owner)throw Error(Qc(290,e))}return e}function uv(e,t){throw e=Object.prototype.toString.call(t),Error(Qc(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cv(e){return(0,e._init)(e._payload)}function dv(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=wS(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=MS(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===hd?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===wd&&cv(i)===t.type)?((r=o(t,n.props)).ref=sv(e,t,n),r.return=e,r):((r=RS(n.type,n.key,n.props,null,e.mode,r)).ref=sv(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=IS(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=LS(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=MS(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fd:return(n=RS(t.type,t.key,t.props,null,e.mode,n)).ref=sv(e,null,t),n.return=e,n;case md:return(t=IS(t,e.mode,n)).return=e,t;case wd:return d(e,(0,t._init)(t._payload),n)}if(Ud(t)||kd(t))return(t=LS(t,e.mode,n,null)).return=e,t;uv(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fd:return n.key===o?s(e,t,n,r):null;case md:return n.key===o?u(e,t,n,r):null;case wd:return p(e,t,(o=n._init)(n._payload),r)}if(Ud(n)||kd(n))return null!==o?null:c(e,t,n,r,null);uv(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fd:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case md:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case wd:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ud(r)||kd(r))return c(t,e=e.get(n)||null,r,o,null);uv(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),Xg&&Wg(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return Xg&&Wg(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),Xg&&Wg(o,h),u}function h(o,a,l,s){var u=kd(l);if("function"!=typeof u)throw Error(Qc(150));if(null==(l=u.call(l)))throw Error(Qc(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),Xg&&Wg(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return Xg&&Wg(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),Xg&&Wg(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===hd&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case fd:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===hd){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===wd&&cv(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=sv(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===hd?((i=LS(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=RS(l.type,l.key,l.props,null,r.mode,s)).ref=sv(r,i,l),s.return=r,r=s)}return a(r);case md:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=IS(l,r.mode,s)).return=r,r=i}return a(r);case wd:return e(r,i,(c=l._init)(l._payload),s)}if(Ud(l))return m(r,i,l,s);if(kd(l))return h(r,i,l,s);uv(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=MS(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var pv=dv(!0),fv=dv(!1),mv=gg(null),hv=null,gv=null,vv=null;function bv(){vv=gv=hv=null}function yv(e){var t=mv.current;vg(mv),e._currentValue=t}function xv(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sv(e,t){hv=e,vv=gv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(cy=!0),e.firstContext=null)}function Ev(e){var t=e._currentValue;if(vv!==e)if(e={context:e,memoizedValue:t,next:null},null===gv){if(null===hv)throw Error(Qc(308));gv=e,hv.dependencies={lanes:0,firstContext:e}}else gv=gv.next=e;return t}var Cv=null;function wv(e){null===Cv?Cv=[e]:Cv.push(e)}function Rv(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lv(e,r)}function Lv(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var kv=!1;function Mv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _v(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pv(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&yx){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lv(e,n)}return null===(o=r.interleaved)?(t.next=t,wv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lv(e,n)}function Av(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}function Dv(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tv(e,t,n,r){var o=e.updateQueue;kv=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Id({},d,p);break e;case 2:kv=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);kx|=a,e.lanes=a,e.memoizedState=d}}function Ov(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(Qc(191,o));o.call(r)}}}var Nv={},qv=gg(Nv),Fv=gg(Nv),zv=gg(Nv);function jv(e){if(e===Nv)throw Error(Qc(174));return e}function $v(e,t){switch(bg(zv,t),bg(Fv,e),bg(qv,Nv),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ep(null,"");break;default:t=ep(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}vg(qv),bg(qv,t)}function Bv(){vg(qv),vg(Fv),vg(zv)}function Hv(e){jv(zv.current);var t=jv(qv.current),n=ep(t,e.type);t!==n&&(bg(Fv,e),bg(qv,n))}function Wv(e){Fv.current===e&&(vg(qv),vg(Fv))}var Gv=gg(0);function Vv(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Uv=[];function Yv(){for(var e=0;e<Uv.length;e++)Uv[e]._workInProgressVersionPrimary=null;Uv.length=0}var Kv=pd.ReactCurrentDispatcher,Xv=pd.ReactCurrentBatchConfig,Qv=0,Jv=null,Zv=null,eb=null,tb=!1,nb=!1,rb=0,ob=0;function ib(){throw Error(Qc(321))}function ab(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zm(e[n],t[n]))return!1;return!0}function lb(e,t,n,r,o,i){if(Qv=i,Jv=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kv.current=null===e||null===e.memoizedState?Wb:Gb,e=n(r,o),nb){i=0;do{if(nb=!1,rb=0,25<=i)throw Error(Qc(301));i+=1,eb=Zv=null,t.updateQueue=null,Kv.current=Vb,e=n(r,o)}while(nb)}if(Kv.current=Hb,t=null!==Zv&&null!==Zv.next,Qv=0,eb=Zv=Jv=null,tb=!1,t)throw Error(Qc(300));return e}function sb(){var e=0!==rb;return rb=0,e}function ub(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===eb?Jv.memoizedState=eb=e:eb=eb.next=e,eb}function cb(){if(null===Zv){var e=Jv.alternate;e=null!==e?e.memoizedState:null}else e=Zv.next;var t=null===eb?Jv.memoizedState:eb.next;if(null!==t)eb=t,Zv=e;else{if(null===e)throw Error(Qc(310));e={memoizedState:(Zv=e).memoizedState,baseState:Zv.baseState,baseQueue:Zv.baseQueue,queue:Zv.queue,next:null},null===eb?Jv.memoizedState=eb=e:eb=eb.next=e}return eb}function db(e,t){return"function"==typeof t?t(e):t}function pb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(311));n.lastRenderedReducer=e;var r=Zv,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Qv&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Jv.lanes|=c,kx|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Zm(r,t.memoizedState)||(cy=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Jv.lanes|=i,kx|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Zm(i,t.memoizedState)||(cy=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function mb(){}function hb(e,t){var n=Jv,r=cb(),o=t(),i=!Zm(r.memoizedState,o);if(i&&(r.memoizedState=o,cy=!0),r=r.queue,kb(bb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==eb&&1&eb.memoizedState.tag){if(n.flags|=2048,Eb(9,vb.bind(null,n,r,o,t),void 0,null),null===xx)throw Error(Qc(349));30&Qv||gb(n,t,o)}return o}function gb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function vb(e,t,n,r){t.value=n,t.getSnapshot=r,yb(t)&&xb(e)}function bb(e,t,n){return n((function(){yb(t)&&xb(e)}))}function yb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zm(e,n)}catch(e){return!0}}function xb(e){var t=Lv(e,1);null!==t&&Ux(t,e,1,-1)}function Sb(e){var t=ub();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:db,lastRenderedState:e},t.queue=e,e=e.dispatch=zb.bind(null,Jv,e),[t.memoizedState,e]}function Eb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Cb(){return cb().memoizedState}function wb(e,t,n,r){var o=ub();Jv.flags|=e,o.memoizedState=Eb(1|t,n,void 0,void 0===r?null:r)}function Rb(e,t,n,r){var o=cb();r=void 0===r?null:r;var i=void 0;if(null!==Zv){var a=Zv.memoizedState;if(i=a.destroy,null!==r&&ab(r,a.deps))return void(o.memoizedState=Eb(t,n,i,r))}Jv.flags|=e,o.memoizedState=Eb(1|t,n,i,r)}function Lb(e,t){return wb(8390656,8,e,t)}function kb(e,t){return Rb(2048,8,e,t)}function Mb(e,t){return Rb(4,2,e,t)}function Ib(e,t){return Rb(4,4,e,t)}function _b(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Pb(e,t,n){return n=null!=n?n.concat([e]):null,Rb(4,4,_b.bind(null,t,e),n)}function Ab(){}function Db(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tb(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ob(e,t,n){return 21&Qv?(Zm(n,t)||(n=sf(),Jv.lanes|=n,kx|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,cy=!0),e.memoizedState=n)}function Nb(e,t){var n=pf;pf=0!==n&&4>n?n:4,e(!0);var r=Xv.transition;Xv.transition={};try{e(!1),t()}finally{pf=n,Xv.transition=r}}function qb(){return cb().memoizedState}function Fb(e,t,n){var r=Vx(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jb(e))$b(t,n);else if(null!==(n=Rv(e,t,n,r))){Ux(n,e,r,Gx()),Bb(n,t,r)}}function zb(e,t,n){var r=Vx(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jb(e))$b(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Zm(l,a)){var s=t.interleaved;return null===s?(o.next=o,wv(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rv(e,t,o,r))&&(Ux(n,e,r,o=Gx()),Bb(n,t,r))}}function jb(e){var t=e.alternate;return e===Jv||null!==t&&t===Jv}function $b(e,t){nb=tb=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bb(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}var Hb={readContext:Ev,useCallback:ib,useContext:ib,useEffect:ib,useImperativeHandle:ib,useInsertionEffect:ib,useLayoutEffect:ib,useMemo:ib,useReducer:ib,useRef:ib,useState:ib,useDebugValue:ib,useDeferredValue:ib,useTransition:ib,useMutableSource:ib,useSyncExternalStore:ib,useId:ib,unstable_isNewReconciler:!1},Wb={readContext:Ev,useCallback:function(e,t){return ub().memoizedState=[e,void 0===t?null:t],e},useContext:Ev,useEffect:Lb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wb(4194308,4,_b.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wb(4194308,4,e,t)},useInsertionEffect:function(e,t){return wb(4,2,e,t)},useMemo:function(e,t){var n=ub();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ub();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fb.bind(null,Jv,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ub().memoizedState=e},useState:Sb,useDebugValue:Ab,useDeferredValue:function(e){return ub().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=Nb.bind(null,e[1]),ub().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Jv,o=ub();if(Xg){if(void 0===n)throw Error(Qc(407));n=n()}else{if(n=t(),null===xx)throw Error(Qc(349));30&Qv||gb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lb(bb.bind(null,r,i,e),[e]),r.flags|=2048,Eb(9,vb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ub(),t=xx.identifierPrefix;if(Xg){var n=Hg;t=":"+t+"R"+(n=(Bg&~(1<<32-Jp(Bg)-1)).toString(32)+n),0<(n=rb++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ob++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:pb,useRef:Cb,useState:function(){return pb(db)},useDebugValue:Ab,useDeferredValue:function(e){return Ob(cb(),Zv.memoizedState,e)},useTransition:function(){return[pb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1},Vb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:fb,useRef:Cb,useState:function(){return fb(db)},useDebugValue:Ab,useDeferredValue:function(e){var t=cb();return null===Zv?t.memoizedState=e:Ob(t,Zv.memoizedState,e)},useTransition:function(){return[fb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1};function Ub(e,t){if(e&&e.defaultProps){for(var n in t=Id({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Yb(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Id({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Kb={isMounted:function(e){return!!(e=e._reactInternals)&&Tp(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gx(),r=Vx(e),o=_v(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Pv(e,o,r))&&(Ux(t,e,r,n),Av(t,e,r))}};function Xb(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!eh(n,r)||!eh(o,i))}function Qb(e,t,n){var r=!1,o=yg,i=t.contextType;return"object"==typeof i&&null!==i?i=Ev(i):(o=wg(t)?Eg:xg.current,i=(r=null!=(r=t.contextTypes))?Cg(e,o):yg),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Kb,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jb(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kb.enqueueReplaceState(t,t.state,null)}function Zb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mv(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ev(i):(i=wg(t)?Eg:xg.current,o.context=Cg(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Yb(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Kb.enqueueReplaceState(o,o.state,null),Tv(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ey(e,t){try{var n="",r=t;do{n+=Dd(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ty(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ny(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ry="function"==typeof WeakMap?WeakMap:Map;function oy(e,t,n){(n=_v(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ox||(Ox=!0,Nx=r),ny(0,t)},n}function iy(e,t,n){(n=_v(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ny(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ny(0,t),"function"!=typeof r&&(null===qx?qx=new Set([this]):qx.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ay(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ry;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function ly(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function sy(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=_v(-1,1)).tag=2,Pv(n,t,1))),n.lanes|=1),e)}var uy=pd.ReactCurrentOwner,cy=!1;function dy(e,t,n,r){t.child=null===e?fv(t,null,n,r):pv(t,e.child,n,r)}function py(e,t,n,r,o){n=n.render;var i=t.ref;return Sv(t,o),r=lb(e,t,n,r,i,o),n=sb(),null===e||cy?(Xg&&n&&Vg(t),t.flags|=1,dy(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function fy(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||CS(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=RS(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,my(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:eh)(a,r)&&e.ref===t.ref)return Oy(e,t,o)}return t.flags|=1,(e=wS(i,r)).ref=t.ref,e.return=t,t.child=e}function my(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(eh(i,r)&&e.ref===t.ref){if(cy=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Oy(e,t,o);131072&e.flags&&(cy=!0)}}return vy(e,t,n,r,o)}function hy(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bg(wx,Cx),Cx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,bg(wx,Cx),Cx|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bg(wx,Cx),Cx|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bg(wx,Cx),Cx|=r;return dy(e,t,o,n),t.child}function gy(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vy(e,t,n,r,o){var i=wg(n)?Eg:xg.current;return i=Cg(t,i),Sv(t,o),n=lb(e,t,n,r,i,o),r=sb(),null===e||cy?(Xg&&r&&Vg(t),t.flags|=1,dy(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function by(e,t,n,r,o){if(wg(n)){var i=!0;Mg(t)}else i=!1;if(Sv(t,o),null===t.stateNode)Ty(e,t),Qb(t,n,r),Zb(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ev(u):u=Cg(t,u=wg(n)?Eg:xg.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Jb(t,a,r,u),kv=!1;var p=t.memoizedState;a.state=p,Tv(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Sg.current||kv?("function"==typeof c&&(Yb(t,n,c,r),s=t.memoizedState),(l=kv||Xb(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Iv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ub(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ev(s):s=Cg(t,s=wg(n)?Eg:xg.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Jb(t,a,r,s),kv=!1,p=t.memoizedState,a.state=p,Tv(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Sg.current||kv?("function"==typeof f&&(Yb(t,n,f,r),m=t.memoizedState),(u=kv||Xb(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return yy(e,t,n,r,i,o)}function yy(e,t,n,r,o,i){gy(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Ig(t,n,!1),Oy(e,t,i);r=t.stateNode,uy.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=pv(t,e.child,null,i),t.child=pv(t,null,l,i)):dy(e,t,l,i),t.memoizedState=r.state,o&&Ig(t,n,!0),t.child}function xy(e){var t=e.stateNode;t.pendingContext?Lg(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lg(0,t.context,!1),$v(e,t.containerInfo)}function Sy(e,t,n,r,o){return iv(),av(o),t.flags|=256,dy(e,t,n,r),t.child}var Ey,Cy,wy,Ry,Ly={dehydrated:null,treeContext:null,retryLane:0};function ky(e){return{baseLanes:e,cachePool:null,transitions:null}}function My(e,t,n){var r,o=t.pendingProps,i=Gv.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),bg(Gv,1&i),null===e)return tv(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=kS(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=LS(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ky(n),t.memoizedState=Ly,e):Iy(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,_y(e,t,a,r=ty(Error(Qc(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kS({mode:"visible",children:r.children},o,0,null),(i=LS(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&pv(t,e.child,null,a),t.child.memoizedState=ky(a),t.memoizedState=Ly,i);if(!(1&t.mode))return _y(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,_y(e,t,a,r=ty(i=Error(Qc(419)),r,void 0))}if(l=!!(a&e.childLanes),cy||l){if(null!==(r=xx)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Lv(e,o),Ux(r,e,o,-1))}return aS(),_y(e,t,a,r=ty(Error(Qc(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=bS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Kg=tg(o.nextSibling),Yg=t,Xg=!0,Qg=null,null!==e&&(zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,Bg=e.id,Hg=e.overflow,$g=t),t=Iy(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=wS(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=wS(r,a):(a=LS(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?ky(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ly,o}return e=(a=e.child).sibling,o=wS(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Iy(e,t){return(t=kS({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _y(e,t,n,r){return null!==r&&av(r),pv(t,e.child,null,n),(e=Iy(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Py(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xv(e.return,t,n)}function Ay(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Dy(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(dy(e,t,r.children,n),2&(r=Gv.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Py(e,n,t);else if(19===e.tag)Py(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bg(Gv,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Vv(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ay(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Vv(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ay(t,!0,n,null,i);break;case"together":Ay(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ty(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oy(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kx|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Qc(153));if(null!==t.child){for(n=wS(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wS(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ny(e,t){if(!Xg)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qy(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fy(e,t,n){var r=t.pendingProps;switch(Ug(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qy(t),null;case 1:case 17:return wg(t.type)&&Rg(),qy(t),null;case 3:return r=t.stateNode,Bv(),vg(Sg),vg(xg),Yv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(rv(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Qg&&(Qx(Qg),Qg=null))),Cy(e,t),qy(t),null;case 5:Wv(t);var o=jv(zv.current);if(n=t.type,null!==e&&null!=t.stateNode)wy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Qc(166));return qy(t),null}if(e=jv(qv.current),rv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[og]=t,r[ig]=i,e=!!(1&t.mode),n){case"dialog":Ph("cancel",r),Ph("close",r);break;case"iframe":case"object":case"embed":Ph("load",r);break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],r);break;case"source":Ph("error",r);break;case"img":case"image":case"link":Ph("error",r),Ph("load",r);break;case"details":Ph("toggle",r);break;case"input":Bd(r,i),Ph("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ph("invalid",r);break;case"textarea":Xd(r,i),Ph("invalid",r)}for(var a in cp(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",""+l]):Zc.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Ph("scroll",r)}switch(n){case"input":Fd(r),Gd(r,i,!0);break;case"textarea":Fd(r),Jd(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Gh)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Zd(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[og]=t,e[ig]=r,Ey(e,t,!1,!1),t.stateNode=e;e:{switch(a=dp(n,r),n){case"dialog":Ph("cancel",e),Ph("close",e),o=r;break;case"iframe":case"object":case"embed":Ph("load",e),o=r;break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],e);o=r;break;case"source":Ph("error",e),o=r;break;case"img":case"image":case"link":Ph("error",e),Ph("load",e),o=r;break;case"details":Ph("toggle",e),o=r;break;case"input":Bd(e,r),o=$d(e,r),Ph("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Id({},r,{value:void 0}),Ph("invalid",e);break;case"textarea":Xd(e,r),o=Kd(e,r),Ph("invalid",e)}for(i in cp(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?sp(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&rp(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&op(e,s):"number"==typeof s&&op(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Zc.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Ph("scroll",e):null!=s&&dd(e,i,s,a))}switch(n){case"input":Fd(e),Gd(e,r,!1);break;case"textarea":Fd(e),Jd(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Nd(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Yd(e,!!r.multiple,i,!1):null!=r.defaultValue&&Yd(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Gh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qy(t),null;case 6:if(e&&null!=t.stateNode)Ry(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Qc(166));if(n=jv(zv.current),jv(qv.current),rv(t)){if(r=t.stateNode,n=t.memoizedProps,r[og]=t,(i=r.nodeValue!==n)&&null!==(e=Yg))switch(e.tag){case 3:Wh(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Wh(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[og]=t,t.stateNode=r}return qy(t),null;case 13:if(vg(Gv),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Xg&&null!==Kg&&1&t.mode&&!(128&t.flags))ov(),iv(),t.flags|=98560,i=!1;else if(i=rv(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Qc(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Qc(317));i[og]=t}else iv(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qy(t),i=!1}else null!==Qg&&(Qx(Qg),Qg=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Gv.current?0===Rx&&(Rx=3):aS())),null!==t.updateQueue&&(t.flags|=4),qy(t),null);case 4:return Bv(),Cy(e,t),null===e&&Th(t.stateNode.containerInfo),qy(t),null;case 10:return yv(t.type._context),qy(t),null;case 19:if(vg(Gv),null===(i=t.memoizedState))return qy(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Ny(i,!1);else{if(0!==Rx||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Vv(e))){for(t.flags|=128,Ny(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return bg(Gv,1&Gv.current|2),t.child}e=e.sibling}null!==i.tail&&Hp()>Dx&&(t.flags|=128,r=!0,Ny(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Vv(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ny(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Xg)return qy(t),null}else 2*Hp()-i.renderingStartTime>Dx&&1073741824!==n&&(t.flags|=128,r=!0,Ny(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Hp(),t.sibling=null,n=Gv.current,bg(Gv,r?1&n|2:1&n),t):(qy(t),null);case 22:case 23:return nS(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Cx)&&(qy(t),6&t.subtreeFlags&&(t.flags|=8192)):qy(t),null;case 24:case 25:return null}throw Error(Qc(156,t.tag))}function zy(e,t){switch(Ug(t),t.tag){case 1:return wg(t.type)&&Rg(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Bv(),vg(Sg),vg(xg),Yv(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Wv(t),null;case 13:if(vg(Gv),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Qc(340));iv()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return vg(Gv),null;case 4:return Bv(),null;case 10:return yv(t.type._context),null;case 22:case 23:return nS(),null;default:return null}}Ey=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cy=function(){},wy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jv(qv.current);var i,a=null;switch(n){case"input":o=$d(e,o),r=$d(e,r),a=[];break;case"select":o=Id({},o,{value:void 0}),r=Id({},r,{value:void 0}),a=[];break;case"textarea":o=Kd(e,o),r=Kd(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Gh)}for(u in cp(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Zc.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Zc.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Ph("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ry=function(e,t,n,r){n!==r&&(t.flags|=4)};var jy=!1,$y=!1,By="function"==typeof WeakSet?WeakSet:Set,Hy=null;function Wy(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hS(e,t,n)}else n.current=null}function Gy(e,t,n){try{n()}catch(n){hS(e,t,n)}}var Vy=!1;function Uy(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Gy(t,n,i)}o=o.next}while(o!==r)}}function Yy(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ky(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Xy(e){var t=e.alternate;null!==t&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[og],delete t[ig],delete t[lg],delete t[sg],delete t[ug])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qy(e){return 5===e.tag||3===e.tag||4===e.tag}function Jy(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Qy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Zy(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Gh));else if(4!==r&&null!==(e=e.child))for(Zy(e,t,n),e=e.sibling;null!==e;)Zy(e,t,n),e=e.sibling}function ex(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ex(e,t,n),e=e.sibling;null!==e;)ex(e,t,n),e=e.sibling}var tx=null,nx=!1;function rx(e,t,n){for(n=n.child;null!==n;)ox(e,t,n),n=n.sibling}function ox(e,t,n){if(Qp&&"function"==typeof Qp.onCommitFiberUnmount)try{Qp.onCommitFiberUnmount(Xp,n)}catch(e){}switch(n.tag){case 5:$y||Wy(n,t);case 6:var r=tx,o=nx;tx=null,rx(e,t,n),nx=o,null!==(tx=r)&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):tx.removeChild(n.stateNode));break;case 18:null!==tx&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?eg(e.parentNode,n):1===e.nodeType&&eg(e,n),Of(e)):eg(tx,n.stateNode));break;case 4:r=tx,o=nx,tx=n.stateNode.containerInfo,nx=!0,rx(e,t,n),tx=r,nx=o;break;case 0:case 11:case 14:case 15:if(!$y&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Gy(n,t,a),o=o.next}while(o!==r)}rx(e,t,n);break;case 1:if(!$y&&(Wy(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hS(n,t,e)}rx(e,t,n);break;case 21:rx(e,t,n);break;case 22:1&n.mode?($y=(r=$y)||null!==n.memoizedState,rx(e,t,n),$y=r):rx(e,t,n);break;default:rx(e,t,n)}}function ix(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new By),t.forEach((function(t){var r=yS.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ax(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:tx=l.stateNode,nx=!1;break e;case 3:case 4:tx=l.stateNode.containerInfo,nx=!0;break e}l=l.return}if(null===tx)throw Error(Qc(160));ox(i,a,o),tx=null,nx=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){hS(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)lx(t,e),t=t.sibling}function lx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ax(t,e),sx(e),4&r){try{Uy(3,e,e.return),Yy(3,e)}catch(t){hS(e,e.return,t)}try{Uy(5,e,e.return)}catch(t){hS(e,e.return,t)}}break;case 1:ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return);break;case 5:if(ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return),32&e.flags){var o=e.stateNode;try{op(o,"")}catch(t){hS(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Hd(o,i),dp(l,a);var u=dp(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?sp(o,d):"dangerouslySetInnerHTML"===c?rp(o,d):"children"===c?op(o,d):dd(o,c,d,u)}switch(l){case"input":Wd(o,i);break;case"textarea":Qd(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Yd(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Yd(o,!!i.multiple,i.defaultValue,!0):Yd(o,!!i.multiple,i.multiple?[]:"",!1))}o[ig]=i}catch(t){hS(e,e.return,t)}}break;case 6:if(ax(t,e),sx(e),4&r){if(null===e.stateNode)throw Error(Qc(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){hS(e,e.return,t)}}break;case 3:if(ax(t,e),sx(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Of(t.containerInfo)}catch(t){hS(e,e.return,t)}break;case 4:default:ax(t,e),sx(e);break;case 13:ax(t,e),sx(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ax=Hp())),4&r&&ix(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?($y=(u=$y)||c,ax(t,e),$y=u):ax(t,e),sx(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Hy=e,c=e.child;null!==c;){for(d=Hy=c;null!==Hy;){switch(f=(p=Hy).child,p.tag){case 0:case 11:case 14:case 15:Uy(4,p,p.return);break;case 1:Wy(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){hS(r,n,e)}}break;case 5:Wy(p,p.return);break;case 22:if(null!==p.memoizedState){px(d);continue}}null!==f?(f.return=p,Hy=f):px(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=lp("display",a))}catch(t){hS(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){hS(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ax(t,e),sx(e),4&r&&ix(e);case 21:}}function sx(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Qy(n)){var r=n;break e}n=n.return}throw Error(Qc(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(op(o,""),r.flags&=-33),ex(e,Jy(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Zy(e,Jy(e),i);break;default:throw Error(Qc(161))}}catch(t){hS(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ux(e,t,n){Hy=e,cx(e)}function cx(e,t,n){for(var r=!!(1&e.mode);null!==Hy;){var o=Hy,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||jy;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||$y;l=jy;var u=$y;if(jy=a,($y=s)&&!u)for(Hy=o;null!==Hy;)s=(a=Hy).child,22===a.tag&&null!==a.memoizedState?fx(o):null!==s?(s.return=a,Hy=s):fx(o);for(;null!==i;)Hy=i,cx(i),i=i.sibling;Hy=o,jy=l,$y=u}dx(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Hy=i):dx(e)}}function dx(e){for(;null!==Hy;){var t=Hy;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$y||Yy(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$y)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ub(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ov(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ov(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Of(d)}}}break;default:throw Error(Qc(163))}$y||512&t.flags&&Ky(t)}catch(e){hS(t,t.return,e)}}if(t===e){Hy=null;break}if(null!==(n=t.sibling)){n.return=t.return,Hy=n;break}Hy=t.return}}function px(e){for(;null!==Hy;){var t=Hy;if(t===e){Hy=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Hy=n;break}Hy=t.return}}function fx(e){for(;null!==Hy;){var t=Hy;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yy(4,t)}catch(e){hS(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){hS(t,o,e)}}var i=t.return;try{Ky(t)}catch(e){hS(t,i,e)}break;case 5:var a=t.return;try{Ky(t)}catch(e){hS(t,a,e)}}}catch(e){hS(t,t.return,e)}if(t===e){Hy=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Hy=l;break}Hy=t.return}}var mx,hx=Math.ceil,gx=pd.ReactCurrentDispatcher,vx=pd.ReactCurrentOwner,bx=pd.ReactCurrentBatchConfig,yx=0,xx=null,Sx=null,Ex=0,Cx=0,wx=gg(0),Rx=0,Lx=null,kx=0,Mx=0,Ix=0,_x=null,Px=null,Ax=0,Dx=1/0,Tx=null,Ox=!1,Nx=null,qx=null,Fx=!1,zx=null,jx=0,$x=0,Bx=null,Hx=-1,Wx=0;function Gx(){return 6&yx?Hp():-1!==Hx?Hx:Hx=Hp()}function Vx(e){return 1&e.mode?2&yx&&0!==Ex?Ex&-Ex:null!==lv.transition?(0===Wx&&(Wx=sf()),Wx):0!==(e=pf)?e:e=void 0===(e=window.event)?16:Hf(e.type):1}function Ux(e,t,n,r){if(50<$x)throw $x=0,Bx=null,Error(Qc(185));cf(e,n,r),2&yx&&e===xx||(e===xx&&(!(2&yx)&&(Mx|=n),4===Rx&&Jx(e,Ex)),Yx(e,r),1===n&&0===yx&&!(1&t.mode)&&(Dx=Hp()+500,Pg&&Tg()))}function Yx(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Jp(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=af(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=of(e,e===xx?Ex:0);if(0===r)null!==n&&jp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&jp(n),1===t)0===e.tag?function(e){Pg=!0,Dg(e)}(Zx.bind(null,e)):Dg(Zx.bind(null,e)),Jh((function(){!(6&yx)&&Tg()})),n=null;else{switch(ff(r)){case 1:n=Gp;break;case 4:n=Vp;break;case 16:default:n=Up;break;case 536870912:n=Kp}n=xS(n,Kx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kx(e,t){if(Hx=-1,Wx=0,6&yx)throw Error(Qc(327));var n=e.callbackNode;if(fS()&&e.callbackNode!==n)return null;var r=of(e,e===xx?Ex:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=lS(e,r);else{t=r;var o=yx;yx|=2;var i=iS();for(xx===e&&Ex===t||(Tx=null,Dx=Hp()+500,rS(e,t));;)try{uS();break}catch(t){oS(e,t)}bv(),gx.current=i,yx=o,null!==Sx?t=0:(xx=null,Ex=0,t=Rx)}if(0!==t){if(2===t&&(0!==(o=lf(e))&&(r=o,t=Xx(e,o))),1===t)throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;if(6===t)Jx(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Zm(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=lS(e,r),2===t&&(i=lf(e),0!==i&&(r=i,t=Xx(e,i))),1!==t)))throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Qc(345));case 2:case 5:pS(e,Px,Tx);break;case 3:if(Jx(e,r),(130023424&r)===r&&10<(t=Ax+500-Hp())){if(0!==of(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Gx(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),t);break}pS(e,Px,Tx);break;case 4:if(Jx(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jp(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Hp()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hx(r/1960))-r)){e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),r);break}pS(e,Px,Tx);break;default:throw Error(Qc(329))}}}return Yx(e,Hp()),e.callbackNode===n?Kx.bind(null,e):null}function Xx(e,t){var n=_x;return e.current.memoizedState.isDehydrated&&(rS(e,t).flags|=256),2!==(e=lS(e,t))&&(t=Px,Px=n,null!==t&&Qx(t)),e}function Qx(e){null===Px?Px=e:Px.push.apply(Px,e)}function Jx(e,t){for(t&=~Ix,t&=~Mx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jp(t),r=1<<n;e[n]=-1,t&=~r}}function Zx(e){if(6&yx)throw Error(Qc(327));fS();var t=of(e,0);if(!(1&t))return Yx(e,Hp()),null;var n=lS(e,t);if(0!==e.tag&&2===n){var r=lf(e);0!==r&&(t=r,n=Xx(e,r))}if(1===n)throw n=Lx,rS(e,0),Jx(e,t),Yx(e,Hp()),n;if(6===n)throw Error(Qc(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pS(e,Px,Tx),Yx(e,Hp()),null}function eS(e,t){var n=yx;yx|=1;try{return e(t)}finally{0===(yx=n)&&(Dx=Hp()+500,Pg&&Tg())}}function tS(e){null!==zx&&0===zx.tag&&!(6&yx)&&fS();var t=yx;yx|=1;var n=bx.transition,r=pf;try{if(bx.transition=null,pf=1,e)return e()}finally{pf=r,bx.transition=n,!(6&(yx=t))&&Tg()}}function nS(){Cx=wx.current,vg(wx)}function rS(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xh(n)),null!==Sx)for(n=Sx.return;null!==n;){var r=n;switch(Ug(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Rg();break;case 3:Bv(),vg(Sg),vg(xg),Yv();break;case 5:Wv(r);break;case 4:Bv();break;case 13:case 19:vg(Gv);break;case 10:yv(r.type._context);break;case 22:case 23:nS()}n=n.return}if(xx=e,Sx=e=wS(e.current,null),Ex=Cx=t,Rx=0,Lx=null,Ix=Mx=kx=0,Px=_x=null,null!==Cv){for(t=0;t<Cv.length;t++)if(null!==(r=(n=Cv[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Cv=null}return e}function oS(e,t){for(;;){var n=Sx;try{if(bv(),Kv.current=Hb,tb){for(var r=Jv.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}tb=!1}if(Qv=0,eb=Zv=Jv=null,nb=!1,rb=0,vx.current=null,null===n||null===n.return){Rx=1,Lx=t,Sx=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ex,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=ly(a);if(null!==f){f.flags&=-257,sy(f,a,l,0,t),1&f.mode&&ay(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){ay(i,u,t),aS();break e}s=Error(Qc(426))}else if(Xg&&1&l.mode){var g=ly(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),sy(g,a,l,0,t),av(ey(s,l));break e}}i=s=ey(s,l),4!==Rx&&(Rx=2),null===_x?_x=[i]:_x.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,oy(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==qx&&qx.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,iy(i,l,t));break e}}i=i.return}while(null!==i)}dS(n)}catch(e){t=e,Sx===n&&null!==n&&(Sx=n=n.return);continue}break}}function iS(){var e=gx.current;return gx.current=Hb,null===e?Hb:e}function aS(){0!==Rx&&3!==Rx&&2!==Rx||(Rx=4),null===xx||!(268435455&kx)&&!(268435455&Mx)||Jx(xx,Ex)}function lS(e,t){var n=yx;yx|=2;var r=iS();for(xx===e&&Ex===t||(Tx=null,rS(e,t));;)try{sS();break}catch(t){oS(e,t)}if(bv(),yx=n,gx.current=r,null!==Sx)throw Error(Qc(261));return xx=null,Ex=0,Rx}function sS(){for(;null!==Sx;)cS(Sx)}function uS(){for(;null!==Sx&&!$p();)cS(Sx)}function cS(e){var t=mx(e.alternate,e,Cx);e.memoizedProps=e.pendingProps,null===t?dS(e):Sx=t,vx.current=null}function dS(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=zy(n,t)))return n.flags&=32767,void(Sx=n);if(null===e)return Rx=6,void(Sx=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Fy(n,t,Cx)))return void(Sx=n);if(null!==(t=t.sibling))return void(Sx=t);Sx=t=e}while(null!==t);0===Rx&&(Rx=5)}function pS(e,t,n){var r=pf,o=bx.transition;try{bx.transition=null,pf=1,function(e,t,n,r){do{fS()}while(null!==zx);if(6&yx)throw Error(Qc(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Qc(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Jp(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===xx&&(Sx=xx=null,Ex=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Fx||(Fx=!0,xS(Up,(function(){return fS(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=bx.transition,bx.transition=null;var a=pf;pf=1;var l=yx;yx|=4,vx.current=null,function(e,t){if(Vh=qf,ih(e=oh())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},qf=!1,Hy=t;null!==Hy;)if(e=(t=Hy).child,1028&t.subtreeFlags&&null!==e)e.return=t,Hy=e;else for(;null!==Hy;){t=Hy;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Ub(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(Qc(163))}}catch(e){hS(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Hy=e;break}Hy=t.return}m=Vy,Vy=!1}(e,n),lx(n,e),ah(Uh),qf=!!Vh,Uh=Vh=null,e.current=n,ux(n),Bp(),yx=l,pf=a,bx.transition=i}else e.current=n;if(Fx&&(Fx=!1,zx=e,jx=o),i=e.pendingLanes,0===i&&(qx=null),function(e){if(Qp&&"function"==typeof Qp.onCommitFiberRoot)try{Qp.onCommitFiberRoot(Xp,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Yx(e,Hp()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ox)throw Ox=!1,e=Nx,Nx=null,e;!!(1&jx)&&0!==e.tag&&fS(),i=e.pendingLanes,1&i?e===Bx?$x++:($x=0,Bx=e):$x=0,Tg()}(e,t,n,r)}finally{bx.transition=o,pf=r}return null}function fS(){if(null!==zx){var e=ff(jx),t=bx.transition,n=pf;try{if(bx.transition=null,pf=16>e?16:e,null===zx)var r=!1;else{if(e=zx,zx=null,jx=0,6&yx)throw Error(Qc(331));var o=yx;for(yx|=4,Hy=e.current;null!==Hy;){var i=Hy,a=i.child;if(16&Hy.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Hy=u;null!==Hy;){var c=Hy;switch(c.tag){case 0:case 11:case 15:Uy(8,c,i)}var d=c.child;if(null!==d)d.return=c,Hy=d;else for(;null!==Hy;){var p=(c=Hy).sibling,f=c.return;if(Xy(c),c===u){Hy=null;break}if(null!==p){p.return=f,Hy=p;break}Hy=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Hy=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Hy=a;else e:for(;null!==Hy;){if(2048&(i=Hy).flags)switch(i.tag){case 0:case 11:case 15:Uy(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Hy=v;break e}Hy=i.return}}var b=e.current;for(Hy=b;null!==Hy;){var y=(a=Hy).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Hy=y;else e:for(a=b;null!==Hy;){if(2048&(l=Hy).flags)try{switch(l.tag){case 0:case 11:case 15:Yy(9,l)}}catch(e){hS(l,l.return,e)}if(l===a){Hy=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Hy=x;break e}Hy=l.return}}if(yx=o,Tg(),Qp&&"function"==typeof Qp.onPostCommitFiberRoot)try{Qp.onPostCommitFiberRoot(Xp,e)}catch(e){}r=!0}return r}finally{pf=n,bx.transition=t}}return!1}function mS(e,t,n){e=Pv(e,t=oy(0,t=ey(n,t),1),1),t=Gx(),null!==e&&(cf(e,1,t),Yx(e,t))}function hS(e,t,n){if(3===e.tag)mS(e,e,n);else for(;null!==t;){if(3===t.tag){mS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qx||!qx.has(r))){t=Pv(t,e=iy(t,e=ey(n,e),1),1),e=Gx(),null!==t&&(cf(t,1,e),Yx(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gx(),e.pingedLanes|=e.suspendedLanes&n,xx===e&&(Ex&n)===n&&(4===Rx||3===Rx&&(130023424&Ex)===Ex&&500>Hp()-Ax?rS(e,0):Ix|=n),Yx(e,t)}function vS(e,t){0===t&&(1&e.mode?(t=nf,!(130023424&(nf<<=1))&&(nf=4194304)):t=1);var n=Gx();null!==(e=Lv(e,t))&&(cf(e,t,n),Yx(e,n))}function bS(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),vS(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Qc(314))}null!==r&&r.delete(t),vS(e,n)}function xS(e,t){return zp(e,t)}function SS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ES(e,t,n,r){return new SS(e,t,n,r)}function CS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wS(e,t){var n=e.alternate;return null===n?((n=ES(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function RS(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)CS(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case hd:return LS(n.children,o,i,t);case gd:a=8,o|=8;break;case vd:return(e=ES(12,n,t,2|o)).elementType=vd,e.lanes=i,e;case Sd:return(e=ES(13,n,t,o)).elementType=Sd,e.lanes=i,e;case Ed:return(e=ES(19,n,t,o)).elementType=Ed,e.lanes=i,e;case Rd:return kS(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case bd:a=10;break e;case yd:a=9;break e;case xd:a=11;break e;case Cd:a=14;break e;case wd:a=16,r=null;break e}throw Error(Qc(130,null==e?e:typeof e,""))}return(t=ES(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function LS(e,t,n,r){return(e=ES(7,e,r,t)).lanes=n,e}function kS(e,t,n,r){return(e=ES(22,e,r,t)).elementType=Rd,e.lanes=n,e.stateNode={isHidden:!1},e}function MS(e,t,n){return(e=ES(6,e,null,t)).lanes=n,e}function IS(e,t,n){return(t=ES(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uf(0),this.expirationTimes=uf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PS(e,t,n,r,o,i,a,l,s){return e=new _S(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ES(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mv(i),e}function AS(e){if(!e)return yg;e:{if(Tp(e=e._reactInternals)!==e||1!==e.tag)throw Error(Qc(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wg(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Qc(171))}if(1===e.tag){var n=e.type;if(wg(n))return kg(e,n,t)}return t}function DS(e,t,n,r,o,i,a,l,s){return(e=PS(n,r,!0,e,0,i,0,l,s)).context=AS(null),n=e.current,(i=_v(r=Gx(),o=Vx(n))).callback=null!=t?t:null,Pv(n,i,o),e.current.lanes=o,cf(e,o,r),Yx(e,r),e}function TS(e,t,n,r){var o=t.current,i=Gx(),a=Vx(o);return n=AS(n),null===t.context?t.context=n:t.pendingContext=n,(t=_v(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pv(o,t,a))&&(Ux(e,o,a,i),Av(e,o,a)),a}function OS(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function NS(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qS(e,t){NS(e,t),(e=e.alternate)&&NS(e,t)}mx=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Sg.current)cy=!0;else{if(!(e.lanes&n||128&t.flags))return cy=!1,function(e,t,n){switch(t.tag){case 3:xy(t),iv();break;case 5:Hv(t);break;case 1:wg(t.type)&&Mg(t);break;case 4:$v(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;bg(mv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(bg(Gv,1&Gv.current),t.flags|=128,null):n&t.child.childLanes?My(e,t,n):(bg(Gv,1&Gv.current),null!==(e=Oy(e,t,n))?e.sibling:null);bg(Gv,1&Gv.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Dy(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),bg(Gv,Gv.current),r)break;return null;case 22:case 23:return t.lanes=0,hy(e,t,n)}return Oy(e,t,n)}(e,t,n);cy=!!(131072&e.flags)}else cy=!1,Xg&&1048576&t.flags&&Gg(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ty(e,t),e=t.pendingProps;var o=Cg(t,xg.current);Sv(t,n),o=lb(null,t,r,e,o,n);var i=sb();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wg(r)?(i=!0,Mg(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mv(t),o.updater=Kb,t.stateNode=o,o._reactInternals=t,Zb(t,r,e,n),t=yy(null,t,r,!0,i,n)):(t.tag=0,Xg&&i&&Vg(t),dy(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ty(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return CS(e)?1:0;if(null!=e){if((e=e.$$typeof)===xd)return 11;if(e===Cd)return 14}return 2}(r),e=Ub(r,e),o){case 0:t=vy(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=py(null,t,r,e,n);break e;case 14:t=fy(null,t,r,Ub(r.type,e),n);break e}throw Error(Qc(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,vy(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 1:return r=t.type,o=t.pendingProps,by(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 3:e:{if(xy(t),null===e)throw Error(Qc(387));r=t.pendingProps,o=(i=t.memoizedState).element,Iv(e,t),Tv(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Sy(e,t,r,n,o=ey(Error(Qc(423)),t));break e}if(r!==o){t=Sy(e,t,r,n,o=ey(Error(Qc(424)),t));break e}for(Kg=tg(t.stateNode.containerInfo.firstChild),Yg=t,Xg=!0,Qg=null,n=fv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(iv(),r===o){t=Oy(e,t,n);break e}dy(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),null===e&&tv(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Yh(r,o)?a=null:null!==i&&Yh(r,i)&&(t.flags|=32),gy(e,t),dy(e,t,a,n),t.child;case 6:return null===e&&tv(t),null;case 13:return My(e,t,n);case 4:return $v(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=pv(t,null,r,n):dy(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,py(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 7:return dy(e,t,t.pendingProps,n),t.child;case 8:case 12:return dy(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,bg(mv,r._currentValue),r._currentValue=a,null!==i)if(Zm(i.value,a)){if(i.children===o.children&&!Sg.current){t=Oy(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=_v(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),xv(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(Qc(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xv(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}dy(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sv(t,n),r=r(o=Ev(o)),t.flags|=1,dy(e,t,r,n),t.child;case 14:return o=Ub(r=t.type,t.pendingProps),fy(e,t,r,o=Ub(r.type,o),n);case 15:return my(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ub(r,o),Ty(e,t),t.tag=1,wg(r)?(e=!0,Mg(t)):e=!1,Sv(t,n),Qb(t,r,o),Zb(t,r,o,n),yy(null,t,r,!0,e,n);case 19:return Dy(e,t,n);case 22:return hy(e,t,n)}throw Error(Qc(156,t.tag))};var FS="function"==typeof reportError?reportError:function(e){console.error(e)};function zS(e){this._internalRoot=e}function jS(e){this._internalRoot=e}function $S(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function BS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function HS(){}function WS(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=OS(a);l.call(e)}}TS(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=OS(a);i.call(e)}}var a=DS(t,r,e,0,null,!1,0,"",HS);return e._reactRootContainer=a,e[ag]=a.current,Th(8===e.nodeType?e.parentNode:e),tS(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=OS(s);l.call(e)}}var s=PS(e,0,!1,null,0,!1,0,"",HS);return e._reactRootContainer=s,e[ag]=s.current,Th(8===e.nodeType?e.parentNode:e),tS((function(){TS(t,s,n,r)})),s}(n,t,e,o,r);return OS(a)}jS.prototype.render=zS.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Qc(409));TS(e,t,null,null)},jS.prototype.unmount=zS.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;tS((function(){TS(null,e,null,null)})),t[ag]=null}},jS.prototype.unstable_scheduleHydration=function(e){if(e){var t=vf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lf.length&&0!==t&&t<Lf[n].priority;n++);Lf.splice(n,0,e),0===n&&_f(e)}},mf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rf(t.pendingLanes);0!==n&&(df(t,1|n),Yx(t,Hp()),!(6&yx)&&(Dx=Hp()+500,Tg()))}break;case 13:tS((function(){var t=Lv(e,1);if(null!==t){var n=Gx();Ux(t,e,1,n)}})),qS(e,1)}},hf=function(e){if(13===e.tag){var t=Lv(e,134217728);if(null!==t)Ux(t,e,134217728,Gx());qS(e,134217728)}},gf=function(e){if(13===e.tag){var t=Vx(e),n=Lv(e,t);if(null!==n)Ux(n,e,t,Gx());qS(e,t)}},vf=function(){return pf},bf=function(e,t){var n=pf;try{return pf=e,t()}finally{pf=n}},mp=function(e,t,n){switch(t){case"input":if(Wd(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fg(r);if(!o)throw Error(Qc(90));zd(r),Wd(r,o)}}}break;case"textarea":Qd(e,n);break;case"select":null!=(t=n.value)&&Yd(e,!!n.multiple,t,!1)}},xp=eS,Sp=tS;var GS={usingClientEntryPoint:!1,Events:[dg,pg,fg,bp,yp,eS]},VS={findFiberByHostInstance:cg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},US={bundleType:VS.bundleType,version:VS.version,rendererPackageName:VS.rendererPackageName,rendererConfig:VS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qp(e))?null:e.stateNode},findFiberByHostInstance:VS.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var YS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!YS.isDisabled&&YS.supportsFiber)try{Xp=YS.inject(US),Qp=YS}catch(np){}}Gc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GS,Gc.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$S(t))throw Error(Qc(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:md,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Gc.createRoot=function(e,t){if(!$S(e))throw Error(Qc(299));var n=!1,r="",o=FS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=PS(e,1,!1,null,0,n,0,r,o),e[ag]=t.current,Th(8===e.nodeType?e.parentNode:e),new zS(t)},Gc.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Qc(188));throw e=Object.keys(e).join(","),Error(Qc(268,e))}return e=null===(e=qp(t))?null:e.stateNode},Gc.flushSync=function(e){return tS(e)},Gc.hydrate=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!0,n)},Gc.hydrateRoot=function(e,t,n){if(!$S(e))throw Error(Qc(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=FS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=DS(t,null,e,1,null!=n?n:null,o,0,i,a),e[ag]=t.current,Th(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jS(t)},Gc.render=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!1,n)},Gc.unmountComponentAtNode=function(e){if(!BS(e))throw Error(Qc(40));return!!e._reactRootContainer&&(tS((function(){WS(null,null,e,!1,(function(){e._reactRootContainer=null,e[ag]=null}))})),!0)},Gc.unstable_batchedUpdates=eS,Gc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!BS(n))throw Error(Qc(200));if(null==e||void 0===e._reactInternals)throw Error(Qc(38));return WS(e,t,n,!1,r)},Gc.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Wc.exports=Gc;var KS=Wc.exports,XS=n(KS),QS=!1,JS=Wn.createContext(null),ZS="unmounted",eE="exited",tE="entering",nE="entered",rE="exiting",oE=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=eE,r.appearStatus=tE):o=nE:o=t.unmountOnExit||t.mountOnEnter?ZS:eE,r.state={status:o},r.nextCallback=null,r}an(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ZS?{status:eE}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tE&&n!==nE&&(t=tE):n!==tE&&n!==nE||(t=rE)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tE){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:XS.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eE&&this.setState({status:ZS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[XS.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||QS?this.safeSetState({status:nE},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tE},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nE},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:XS.findDOMNode(this);t&&!QS?(this.props.onExit(r),this.safeSetState({status:rE},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:eE},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:eE},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:XS.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ZS)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=rn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Wn.createElement(JS.Provider,{value:null},"function"==typeof n?n(e,r):Wn.cloneElement(Wn.Children.only(n),r))},t}(Wn.Component);function iE(){}oE.contextType=JS,oE.propTypes={},oE.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iE,onEntering:iE,onEntered:iE,onExit:iE,onExiting:iE,onExited:iE},oE.UNMOUNTED=ZS,oE.EXITED=eE,oE.ENTERING=tE,oE.ENTERED=nE,oE.EXITING=rE;var aE=oE;function lE(e,t){var n=Object.create(null);return e&&Hn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Hn.isValidElement(e)?t(e):e}(e)})),n}function sE(e,t,n){return null!=n[t]?n[t]:e.props[t]}function uE(e,t,n){var r=lE(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Hn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Hn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Hn.isValidElement(u)&&(o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})):o[i]=Hn.cloneElement(a,{in:!1}):o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})}})),o}var cE=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dE=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}an(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,lE(n.children,(function(e){return Hn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:sE(e,"appear",n),enter:sE(e,"enter",n),exit:sE(e,"exit",n)})}))):uE(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=lE(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Xt({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rn(e,["component","childFactory"]),o=this.state.contextValue,i=cE(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Wn.createElement(JS.Provider,{value:o},i):Wn.createElement(JS.Provider,{value:o},Wn.createElement(t,r,i))},t}(Wn.Component);dE.propTypes={},dE.defaultProps={component:"div",childFactory:function(e){return e}};var pE=dE;const fE=e=>e.scrollTop;function mE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hE(e){return Wu("MuiPaper",e)}Gu("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 gE=["className","component","elevation","square","variant"],vE=bc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Lr({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&&Lr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gu("#fff",yc(t.elevation))}, ${gu("#fff",yc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var bE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=kr(n,gE),u=Lr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hE,o)})(u);return Xs.jsx(vE,Lr({as:o,ownerState:u,className:Sc(c.root,r),ref:t},s))}));function yE(e){return"string"==typeof e}function xE(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function SE(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const EE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function CE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,EE),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=xE(Xt({},o,r)),l=SE(r),s=SE(o),u=t(a),c=Pl(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Xt({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||yE(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var wE=Gu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const RE=["center","classes","className"];let LE,kE,ME,IE,_E=e=>e;const PE=ha(LE||(LE=_E`
46
46
  0% {
47
47
  transform: scale(0);
48
48
  opacity: 0.1;
@@ -52,7 +52,7 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
52
52
  transform: scale(1);
53
53
  opacity: 0.3;
54
54
  }
55
- `)),_E=ca(RE||(RE=IE`
55
+ `)),AE=ha(kE||(kE=_E`
56
56
  0% {
57
57
  opacity: 1;
58
58
  }
@@ -60,7 +60,7 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
60
60
  100% {
61
61
  opacity: 0;
62
62
  }
63
- `)),PE=ca(LE||(LE=IE`
63
+ `)),DE=ha(ME||(ME=_E`
64
64
  0% {
65
65
  transform: scale(1);
66
66
  }
@@ -72,7 +72,7 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
72
72
  100% {
73
73
  transform: scale(1);
74
74
  }
75
- `)),AE=mc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),DE=mc((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=zn.useState(!1),p=vc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=vc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),zn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),js.jsx("span",{className:p,style:f,children:js.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(kE||(kE=IE`
75
+ `)),TE=bc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OE=bc((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=Hn.useState(!1),p=Sc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Sc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Xs.jsx("span",{className:p,style:f,children:Xs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(IE||(IE=_E`
76
76
  opacity: 0;
77
77
  position: absolute;
78
78
 
@@ -115,9 +115,9 @@ function ma(e,t){let n;return n=t?sa(e).withConfig({displayName:t.label,shouldFo
115
115
  animation-iteration-count: infinite;
116
116
  animation-delay: 200ms;
117
117
  }
118
- `),EE.rippleVisible,ME,550,(({theme:e})=>e.transitions.easing.easeInOut),EE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),EE.child,EE.childLeaving,_E,550,(({theme:e})=>e.transitions.easing.easeInOut),EE.childPulsate,PE,(({theme:e})=>e.transitions.easing.easeInOut)),TE=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Cr(n,CE),[l,s]=zn.useState([]),u=zn.useRef(0),c=zn.useRef(null);zn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=zn.useRef(!1),p=zn.useRef(0),f=zn.useRef(null),m=zn.useRef(null);zn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=zn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(DE,{classes:{ripple:vc(o.ripple,EE.ripple),rippleVisible:vc(o.rippleVisible,EE.rippleVisible),ripplePulsate:vc(o.ripplePulsate,EE.ripplePulsate),child:vc(o.child,EE.child),childLeaving:vc(o.childLeaving,EE.childLeaving),childPulsate:vc(o.childPulsate,EE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=zn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=zn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=zn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return zn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(AE,Er({className:vc(EE.root,o.root,i),ref:m},a,{children:js.jsx(cE,{component:null,exit:!0,children:l})}))}));var OE=TE;function NE(e){return ju("MuiButtonBase",e)}var qE=$u("MuiButtonBase",["root","disabled","focusVisible"]);const FE=["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"],zE=mc("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"},[`&.${qE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jE=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Cr(n,FE),A=zn.useRef(null),D=zn.useRef(null),T=Ru(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Ou(),[z,j]=zn.useState(!1);s&&z&&j(!1),zn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=zn.useState(!1);zn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return wu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}zn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=wu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=zn.useRef(!1),re=wu((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=wu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Ru(t,F,A),se=Er({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},NE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(zE,Er({as:ie,className:vc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?js.jsx(OE,Er({ref:T,center:o},I)):null]}))}));var $E=jE;function BE(e){return ju("MuiTypography",e)}$u("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const HE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WE=mc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${gu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Er({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}))),GE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},UE=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTypography"}),r=(e=>VE[e]||e)(n.color),o=Ws(Er({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=GE}=o,f=Cr(o,HE),m=Er({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||GE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${gu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},BE,a)})(m);return js.jsx(WE,Er({as:h,ref:t,ownerState:m,className:vc(g.root,a)},f))}));var YE=UE;const KE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XE(e){const t=[],n=[];return Array.from(e.querySelectorAll(KE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function QE(){return!0}function JE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=XE,isEnabled:a=QE,open:l}=e,s=zn.useRef(!1),u=zn.useRef(null),c=zn.useRef(null),d=zn.useRef(null),p=zn.useRef(null),f=zn.useRef(!1),m=zn.useRef(null),h=nl(t.ref,m),g=zn.useRef(null);zn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),zn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),zn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(zn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),zn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const ZE=zn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=zn.useState(null),l=nl(zn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(zn.isValidElement(n)){const e={ref:l};return zn.cloneElement(n,e)}return js.jsx(zn.Fragment,{children:n})}return js.jsx(zn.Fragment,{children:i?US.createPortal(n,i):i})}));function eC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tC(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function nC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&eC(e,o)}))}function rC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function oC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tC(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${tC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const iC=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&eC(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);nC(t,e.mount,e.modalRef,r,!0);const o=rC(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=rC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=oC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=rC(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&eC(e.modalRef,t),nC(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&eC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function aC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=iC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=zn.useRef({}),f=zn.useRef(null),m=zn.useRef(null),h=nl(m,d),[g,v]=zn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=zn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&eC(m.current,y))})),R=zn.useCallback((()=>{o.remove(x(),y)}),[y,o]);zn.useEffect((()=>()=>{R()}),[R]),zn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=bE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=va({},n,t);return va({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>va({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const lC=["onChange","maxRows","minRows","style","value"];function sC(e){return parseInt(e,10)||0}const uC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function cC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const dC=zn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=ba(e,lC),{current:s}=zn.useRef(null!=a),u=zn.useRef(null),c=nl(t,u),d=zn.useRef(null),p=zn.useRef(0),[f,m]=zn.useState({outerHeightStyle:0}),h=zn.useCallback((()=>{const t=u.current,n=Ja(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=sC(n.paddingBottom)+sC(n.paddingTop),s=sC(n.borderBottomWidth)+sC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=zn.useCallback((()=>{const e=h();cC(e)||m((t=>g(t,e)))}),[h]);el((()=>{const e=()=>{p.current=0,(()=>{const e=h();cC(e)||US.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Xa(e),n=u.current,r=Ja(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),el((()=>{v()})),zn.useEffect((()=>{p.current=0}),[a]);return js.jsxs(zn.Fragment,{children:[js.jsx("textarea",va({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:va({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),js.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:va({},uC,i,{paddingTop:0,paddingBottom:0})})]})}));function pC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var fC=zn.createContext(void 0);function mC(){return zn.useContext(fC)}function hC(e){return js.jsx($s,Er({},e,{defaultTheme:sc,themeId:Sr}))}function gC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function vC(e,t=!1){return e&&(gC(e.value)&&""!==e.value||t&&gC(e.defaultValue)&&""!==e.defaultValue)}function bC(e){return ju("MuiInputBase",e)}var yC=$u("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const xC=["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"],SC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${gu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},EC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},CC=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:SC})((({theme:e,ownerState:t})=>Er({},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",[`&.${yC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Er({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),wC=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:EC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Er({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Er({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yC.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},[`&.${yC.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"})})),RC=js.jsx(hC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),LC=zn.forwardRef((function(e,t){var n;const r=cc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=Cr(r,xC),z=null!=v.value?v.value:q,{current:j}=zn.useRef(null!=z),$=zn.useRef(),B=zn.useCallback((e=>{}),[]),H=Ru($,b,v.ref,B),[W,G]=zn.useState(!1),V=mC(),U=pC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,zn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=zn.useCallback((e=>{vC(e)?Y&&Y():K&&K()}),[Y,K]);yu((()=>{j&&X({value:z})}),[z,X,j]);zn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Er(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=dC);zn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Er({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return bl({root:["root",`color${gu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${gu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},bC,t)})(Z),te=T.root||s.Root||CC,ne=D.root||u.root||{},re=T.input||s.Input||wC;return J=Er({},J,null!=(n=D.input)?n:u.input),js.jsxs(zn.Fragment,{children:[!p&&RC,js.jsxs(te,Er({},ne,!vE(te)&&{ownerState:Er({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:vc(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,js.jsx(fC.Provider,{value:null,children:js.jsx(re,Er({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!vE(re)&&{as:Q,ownerState:Er({},Z,J.ownerState)},{ref:H,className:vc(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(xr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Er({},U,{startAdornment:O})):null]}))]})}));var kC=LC;function IC(e){return ju("MuiInput",e)}var MC=Er({},yC,$u("MuiInput",["root","underline","input"]));function _C(e){return ju("MuiOutlinedInput",e)}var PC=Er({},yC,$u("MuiOutlinedInput",["root","notchedOutline","input"]));function AC(e){return ju("MuiFilledInput",e)}var DC=Er({},yC,$u("MuiFilledInput",["root","underline","input"])),TC=function(e,t){function n(n,r){return js.jsx(Ec,Er({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ec.muiName,zn.memo(zn.forwardRef(n))}(js.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const OC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],NC={entering:{opacity:1},entered:{opacity:1}},qC=zn.forwardRef((function(e,t){const n=uc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=oE}=e,b=Cr(e,OC),y=zn.useRef(null),x=Ru(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{dE(e);const r=pE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=pE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,Er({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>zn.cloneElement(a,Er({style:Er({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},NC[e],h,a.props.style),ref:x},t))}))}));var FC=qC;function zC(e){return ju("MuiBackdrop",e)}$u("MuiBackdrop",["root","invisible"]);const jC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$C=mc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Er({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"}))),BC=zn.forwardRef((function(e,t){var n,r,o;const i=cc({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=FC,transitionDuration:g}=i,v=Cr(i,jC),b=Er({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},zC,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,Er({in:p,timeout:g},v,{children:js.jsx($C,Er({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:vc(y.root,l,null==x?void 0:x.className),ownerState:Er({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var HC=BC;var WC=$u("MuiBox",["root"]);const GC=lc(),VC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ma("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ws);return zn.forwardRef((function(e,a){const l=_s(n),s=Ws(e),{className:u,component:c="div"}=s,d=ba(s,Us);return js.jsx(i,va({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Sr,defaultTheme:GC,defaultClassName:WC.root,generateClassName:Fu.generate});var UC=VC;function YC(e){return ju("MuiButton",e)}var KC=$u("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var XC=zn.createContext({});var QC=zn.createContext(void 0);const JC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ZC=e=>Er({},"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}}),ew=mc($E,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gu(n.color)}`],t[`size${gu(n.size)}`],t[`${n.variant}Size${gu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Er({},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":Er({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:su(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})`:su(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})`:su(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":Er({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${KC.focusVisible}`]:Er({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${KC.disabled}`]:Er({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 ${su(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${KC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${KC.disabled}`]:{boxShadow:"none"}})),tw=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Er({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ZC(e)))),nw=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Er({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ZC(e)))),rw=zn.forwardRef((function(e,t){const n=zn.useContext(XC),r=zn.useContext(QC),o=cc({props:Nu(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Cr(o,JC),x=Er({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Er({},a,bl({root:["root",i,`${i}${gu(t)}`,`size${gu(o)}`,`${i}Size${gu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${gu(o)}`],endIcon:["endIcon",`iconSize${gu(o)}`]},YC,a))})(x),E=g&&js.jsx(tw,{className:S.startIcon,ownerState:x,children:g}),C=p&&js.jsx(nw,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return js.jsxs(ew,Er({ownerState:x,className:vc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:vc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var ow=rw;function iw(e){return ju("MuiModal",e)}$u("MuiModal",["root","hidden","backdrop"]);const aw=["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"],lw=mc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Er({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),sw=mc(HC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),uw=zn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=cc({name:"MuiModal",props:e}),{BackdropComponent:u=sw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Cr(s,aw),P=Er({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=aC(Er({},P,{rootRef:t})),z=Er({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},iw,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:lw,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=SE({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:vc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=SE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Er({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(ZE,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,Er({},V,{children:[!w&&u?js.jsx(H,Er({},U)):null,js.jsx(JE,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:zn.cloneElement(f,$)})]}))}):null}));var cw=uw;function dw(e){return ju("MuiDivider",e)}var pw=$u("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const fw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mw=mc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Er({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)`:su(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})=>Er({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Er({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Er({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Er({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),hw=mc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Er({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)`}))),gw=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Cr(n,fw),m=Er({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},dw,r)})(m);return js.jsx(mw,Er({as:a,className:vc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?js.jsx(hw,{className:h.wrapper,ownerState:m,children:o}):null}))}));gw.muiSkipListHighlight=!0;var vw=gw;const bw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],yw=mc(CC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...SC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Er({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}},[`&.${DC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${DC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${DC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${DC.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(.${DC.disabled}, .${DC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${DC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Er({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}))})),xw=mc(wC,{name:"MuiFilledInput",slot:"Input",overridesResolver:EC})((({theme:e,ownerState:t})=>Er({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}))),Sw=zn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=Cr(a,bw),g=Er({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Er({},t,bl({root:["root",!n&&"underline"],input:["input"]},AC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?hu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:yw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:xw;return js.jsx(kC,Er({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Sw.muiName="Input";var Ew=Sw;const Cw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ww(e){return`scale(${e}, ${e**2})`}const Rw={entering:{opacity:1,transform:ww(1)},entered:{opacity:1,transform:"none"}},Lw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kw=zn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=oE}=e,g=Cr(e,Cw),v=zn.useRef(),b=zn.useRef(),y=uc(),x=zn.useRef(null),S=Ru(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{dE(e);const{duration:n,delay:r,easing:o}=pE({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Lw?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=pE({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Lw?o:.666*o,delay:Lw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ww(.75),c&&c(e)})),I=E(d);return zn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),js.jsx(h,Er({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>zn.cloneElement(o,Er({style:Er({opacity:0,transform:ww(.75),visibility:"exited"!==e||a?void 0:"hidden"},Rw[e],f,o.props.style),ref:S},t))}))}));kw.muiSupportAuto=!0;var Iw=kw;const Mw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_w=mc(CC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...SC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Er({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"},[`&.${MC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${MC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${MC.disabled}, .${MC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${MC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Pw=mc(wC,{name:"MuiInput",slot:"Input",overridesResolver:EC})({}),Aw=zn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=Cr(a,Mw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Er({},t,bl({root:["root",!n&&"underline"],input:["input"]},IC,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?hu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:_w,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Pw;return js.jsx(kC,Er({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Aw.muiName="Input";var Dw=Aw;function Tw(e){return ju("MuiLink",e)}var Ow=$u("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Nw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var qw=({theme:e,ownerState:t})=>{const n=(e=>Nw[e]||e)(t.color),r=Dl(e,`palette.${n}`,!1)||t.color,o=Dl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:su(r,.4)};const Fw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],zw=mc(YE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${gu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Er({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Er({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:qw({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"},[`&.${Ow.focusVisible}`]:{outline:"auto"}}))),jw=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Cr(n,Fw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ou(),[v,b]=zn.useState(!1),y=Ru(t,g),x=Er({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return bl({root:["root",`underline${gu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Tw,t)})(x);return js.jsx(zw,Er({color:o,className:vc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Nw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var $w=jw;var Bw=zn.createContext({});function Hw(e){return ju("MuiList",e)}$u("MuiList",["root","padding","dense","subheader"]);const Ww=["children","className","component","dense","disablePadding","subheader"],Gw=mc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Er({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Vw=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Cr(n,Ww),c=zn.useMemo((()=>({dense:a})),[a]),d=Er({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Hw,t)})(d);return js.jsx(Bw.Provider,{value:c,children:js.jsxs(Gw,Er({as:i,className:vc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Uw(e){return ju("MuiListItemIcon",e)}var Yw=$u("MuiListItemIcon",["root","alignItemsFlexStart"]);const Kw=["className"],Xw=mc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Er({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Qw=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Cr(n,Kw),i=Er({},n,{alignItems:zn.useContext(Bw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Uw,n)})(i);return js.jsx(Xw,Er({className:vc(a.root,r),ownerState:i,ref:t},o))}));var Jw=$u("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Zw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function eR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function nR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function rR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&nR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var oR=zn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Cr(e,Zw),p=zn.useRef(null),f=zn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yu((()=>{r&&p.current.focus()}),[r]),zn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(vu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Ru(p,t);let h=-1;zn.Children.forEach(i,((e,t)=>{zn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=zn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),zn.cloneElement(e,t)}return e}));return js.jsx(Vw,Er({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),rR(t,r,s,l,eR);else if("ArrowUp"===n)e.preventDefault(),rR(t,r,s,l,tR);else if("Home"===n)e.preventDefault(),rR(t,null,s,l,eR);else if("End"===n)e.preventDefault(),rR(t,null,s,l,tR);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&nR(r,o);o.previousKeyMatched&&(s||rR(t,r,!1,l,eR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function iR(e){return ju("MuiPopover",e)}$u("MuiPopover",["root","paper"]);const aR=["onEntering"],lR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sR=["slotProps"];function uR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function cR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function dR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function pR(e){return"function"==typeof e?e():e}const fR=mc(cw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mR=mc(gE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var hR=zn.forwardRef((function(e,t){var n,r,o;const i=cc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Iw,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Cr(i.TransitionProps,aR),L=Cr(i,lR),k=null!=(n=null==y?void 0:y.paper)?n:v,I=zn.useRef(),M=Ru(I,k.ref),_=Er({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},iR,t)})(_),A=zn.useCallback((()=>{if("anchorPosition"===c)return u;const e=pR(l),t=(e&&1===e.nodeType?e:vu(I.current).body).getBoundingClientRect();return{top:t.top+uR(t,s.vertical),left:t.left+cR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=zn.useCallback((e=>({vertical:uR(e,x.vertical),horizontal:cR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=zn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:dR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bu(pR(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:dR(n)}}),[l,c,A,D,h]),[O,N]=zn.useState(g),q=zn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);zn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);zn.useEffect((()=>{g&&q()})),zn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),zn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=bu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?vu(pR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:fR,$=null!=(o=null==b?void 0:b.paper)?o:mR,B=SE({elementType:$,externalSlotProps:Er({},k,{style:O?k.style:Er({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:vc(P.paper,null==k?void 0:k.className)}),H=SE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:vc(P.root,p)}),{slotProps:W}=H,G=Cr(H,sR);return js.jsx(j,Er({},G,!vE(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,Er({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,Er({},B,{children:d}))}))}))}));function gR(e){return ju("MuiMenu",e)}$u("MuiMenu",["root","paper","list"]);const vR=["onEntering"],bR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yR={vertical:"top",horizontal:"right"},xR={vertical:"top",horizontal:"left"},SR=mc(hR,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ER=mc(mR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),CR=mc(oR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var wR=zn.forwardRef((function(e,t){var n,r;const o=cc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Cr(o.TransitionProps,vR),x=Cr(o,bR),S=uc(),E="rtl"===S.direction,C=Er({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},gR,t)})(C),R=i&&!s&&d,L=zn.useRef(null);let k=-1;zn.Children.map(a,((e,t)=>{zn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:ER,M=null!=(r=b.paper)?r:p,_=SE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=SE({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return js.jsx(SR,Er({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?yR:xR,slots:{paper:I,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Er({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:js.jsx(CR,Er({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:vc(w.list,u.className),children:a}))}))}));function RR(e){return ju("MuiMenuItem",e)}var LR=$u("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const kR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],IR=mc($E,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Er({},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"}},[`&.${LR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:su(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${LR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:su(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${LR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:su(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})`:su(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${LR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${LR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pw.inset}`]:{marginLeft:52},[`& .${Jw.root}`]:{marginTop:0,marginBottom:0},[`& .${Jw.inset}`]:{paddingLeft:36},[`& .${Yw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Er({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Yw.root} svg`]:{fontSize:"1.25rem"}}))));var MR=zn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Cr(n,kR),f=zn.useContext(Bw),m=zn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=zn.useRef(null);yu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Er({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Er({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},RR,a))})(n),b=Ru(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(Bw.Provider,{value:m,children:js.jsx(IR,Er({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:vc(v.focusVisible,s),className:vc(v.root,d)},p,{ownerState:g,classes:v}))})}));function _R(e){return ju("MuiNativeSelect",e)}var PR=$u("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const AR=["className","disabled","error","IconComponent","inputRef","variant"],DR=({ownerState:e,theme:t})=>Er({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Er({},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"},[`&.${PR.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}}),TR=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${PR.multiple}`]:t.multiple}]}})(DR),OR=({ownerState:e,theme:t})=>Er({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${PR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),NR=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(OR),qR=zn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Cr(e,AR),u=Er({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"]},_R,t)})(u);return js.jsxs(zn.Fragment,{children:[js.jsx(TR,Er({ownerState:u,className:vc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:js.jsx(NR,{as:i,ownerState:u,className:c.icon})]})}));var FR,zR=qR;const jR=["children","classes","className","label","notched"],$R=mc("fieldset",{shouldForwardProp:dc})({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%"}),BR=mc("legend",{shouldForwardProp:dc})((({ownerState:e,theme:t})=>Er({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&&Er({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 HR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WR=mc(CC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:SC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Er({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${PC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${PC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${PC.focused} .${PC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${PC.error} .${PC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${PC.disabled} .${PC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Er({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),GR=mc((function(e){const{className:t,label:n,notched:r}=e,o=Cr(e,jR),i=null!=n&&""!==n,a=Er({},e,{notched:r,withLabel:i});return js.jsx($R,Er({"aria-hidden":!0,className:t,ownerState:a},o,{children:js.jsx(BR,{ownerState:a,children:i?js.jsx("span",{children:n}):FR||(FR=js.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}})),VR=mc(wC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:EC})((({theme:e,ownerState:t})=>Er({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}))),UR=zn.forwardRef((function(e,t){var n,r,o,i,a;const l=cc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Cr(l,HR),v=(e=>{const{classes:t}=e;return Er({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_C,t))})(l),b=mC(),y=pC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Er({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:WR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:VR;return js.jsx(kC,Er({slots:{root:S,input:E},renderSuffix:e=>js.jsx(GR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=js.jsxs(zn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Er({},v,{notchedOutline:null})}))}));UR.muiName="Input";var YR=UR;function KR(e){return ju("MuiSelect",e)}var XR,QR=$u("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const JR=["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"],ZR=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${QR.select}`]:t.select},{[`&.${QR.select}`]:t[n.variant]},{[`&.${QR.error}`]:t.error},{[`&.${QR.multiple}`]:t.multiple}]}})(DR,{[`&.${QR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),eL=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(OR),tL=mc("input",{shouldForwardProp:e=>pc(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 nL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function rL(e){return null==e||"string"==typeof e&&!e.trim()}const oL=zn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:_,variant:P="standard"}=e,A=Cr(e,JR),[D,T]=Cu({controlled:_,default:c,name:"Select"}),[O,N]=Cu({controlled:R,default:u,name:"Select"}),q=zn.useRef(null),F=zn.useRef(null),[z,j]=zn.useState(null),{current:$}=zn.useRef(null!=R),[B,H]=zn.useState(),W=Ru(t,h),G=zn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;zn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),zn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),zn.useEffect((()=>{i&&F.current.focus()}),[i]),zn.useEffect((()=>{if(!g)return;const e=vu(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=zn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(vC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!zn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(xr(2));t=D.some((t=>nL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=nL(D,e.props.value),t&&ee&&(J=e.props.children);return zn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Er({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},KR,t)})(ie),le=Er({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Eu();return js.jsxs(zn.Fragment,{children:[js.jsx(ZR,Er({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:vc(I.className,ae.select,s),id:oe,children:rL(Q)?XR||(XR=js.jsx("span",{className:"notranslate",children:"​"})):Q})),js.jsx(tL,Er({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),js.jsx(eL,{as:m,className:ae.icon,ownerState:ie}),js.jsx(wR,Er({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Er({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Er({},v.slotProps,{paper:Er({},le,{style:Er({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var iL=oL;const aL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],lL=["root"],sL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dc(e)&&"variant"!==e,slot:"Root"},uL=mc(Dw,sL)(""),cL=mc(YR,sL)(""),dL=mc(Ew,sL)(""),pL=zn.forwardRef((function(e,t){const n=cc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=TC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=Cr(n,aL),R=v?zR:iL,L=pC({props:n,muiFormControl:mC(),states:["variant","error"]}),k=L.variant||C,I=Er({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=Cr(M,lL),P=d||{standard:js.jsx(uL,{ownerState:I}),outlined:js.jsx(cL,{label:f,ownerState:I}),filled:js.jsx(dL,{ownerState:I})}[k],A=Ru(t,P.ref);return js.jsx(zn.Fragment,{children:zn.cloneElement(P,Er({inputComponent:R,inputProps:Er({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Er({id:c},E)},p,{classes:p?hu(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:vc(P.props.className,a,M.root)},!d&&{variant:k},w))})}));pL.muiName="Select";var fL=pL,mL=(e={})=>jn.createElement(ar,{...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("rect",{stroke:Hn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const hL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Hn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:jn.createElement(rr,{"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 ${Hn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,borderRadius:Yn,backgroundColor:Hn.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 ${Hn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Hn.WHITE,color:Hn.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:Yn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Hn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Hn.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:Yn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Hn.PURPLE,"&.Mui-focusVisible":{borderColor:Hn.PURPLE,boxShadow:`0 0 0 3px ${su(Hn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Hn.GREEN,"&.Mui-focusVisible":{borderColor:Hn.GREEN,boxShadow:`0 0 0 3px ${su(Hn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Hn.BLUE,"&.Mui-focusVisible":{borderColor:Hn.BLUE,boxShadow:`0 0 0 3px ${su(Hn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Hn.ORANGE,"&.Mui-focusVisible":{borderColor:Hn.ORANGE,boxShadow:`0 0 0 3px ${su(Hn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Hn.RED,"&.Mui-focusVisible":{borderColor:Hn.RED,boxShadow:`0 0 0 3px ${su(Hn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Hn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Hn.PURPLE_PALE},"&:active":{backgroundColor:Hn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Hn.PURPLE_PALE,boxShadow:`0 0 0 3px ${su(Hn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Hn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Hn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Hn.ORANGE_PALE},"&:active":{backgroundColor:Hn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Hn.ORANGE_PALE,boxShadow:`0 0 0 3px ${su(Hn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Hn.RED_PALE},"&:active":{backgroundColor:Hn.RED_DARK},"&.Mui-focusVisible":{borderColor:Hn.RED_PALE,boxShadow:`0 0 0 3px ${su(Hn.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:Hn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Hn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Yn,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:jn.createElement(ir,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wn,borderRadius:Yn,color:Hn.TEXT_PRIMARY,backgroundColor:Hn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Hn.GREYSCALE_0_05,color:Hn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Hn.GREEN,borderColor:Hn.GREEN},"&.MuiChip-outlinedInfo":{color:Hn.BLUE,borderColor:Hn.BLUE},"&.MuiChip-outlinedWarning":{color:Hn.ORANGE,borderColor:Hn.ORANGE},"&.MuiChip-outlinedError":{color:Hn.RED,borderColor:Hn.RED}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Yn,boxShadow:"none",backgroundColor:Hn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Hn.GREEN,borderColor:Hn.GREEN},outlinedSecondary:{color:Hn.BLUE,borderColor:Hn.BLUE},label:{fontFamily:Zn.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:jn.createElement(ir,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:jn.createElement(rr,{"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:Yn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Yn,fontSize:Gn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Hn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Hn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Hn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Yn,border:`solid 1px ${Hn.GREYSCALE_0_15}`,color:Hn.GREYSCALE_0_60,marginRight:0,width:Un,height:Un},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Hn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Yn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Hn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Gn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Hn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Hn.GREYSCALE_25,fontSize:Wn,fontFamily:Zn.FONT_FAMILY,fontWeight:Qn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Hn.TEXT_PRIMARY},"&.Mui-error":{color:Hn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Hn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Xn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Hn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Xn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Gn,lineHeight:"16px",backgroundColor:Hn.WHITE,borderRadius:Yn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderColor:Hn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.RED}`,boxShadow:`0px 0px 0px 1px ${Hn.RED}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_10}`,borderColor:Hn.GREYSCALE_0_10,backgroundColor:Hn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Hn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Hn.GREYSCALE_0_15,borderRadius:Yn,boxShadow:`inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>jn.createElement(rr,{...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:Hn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Hn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&:focus":{backgroundColor:Hn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Hn.GREYSCALE_0_30,"&:hover":{backgroundColor:Hn.GREYSCALE_0_0,borderColor:Hn.GREYSCALE_0_15},"& ~svg":{color:Hn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Yn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Hn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Gn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wn,fontWeight:Qn,color:Hn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Qn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:jn.createElement(ur,null),checkedIcon:jn.createElement(cr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Hn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Hn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Hn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Hn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Hn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:jn.createElement(mL,null),checkedIcon:jn.createElement(lr,null),indeterminateIcon:jn.createElement(sr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Yn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Hn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Hn.GREYSCALE_0_55,color:Hn.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:Hn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Hn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Hn.GREYSCALE_0_55,"&:hover":{color:Hn.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:Hn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Hn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Gn,color:Hn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Qn},secondary:{fontSize:Wn,color:Hn.GREYSCALE_45,fontWeight:Xn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Gn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Gn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Hn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wn,borderBottom:`solid 1px ${Hn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Gn,color:Hn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.RED}}},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.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:Hn.GREEN,height:"24px","&.Mui-disabled":{color:Hn.GREYSCALE_0_15}},rail:{backgroundColor:Hn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Yn,boxShadow:`inset 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Yn},thumb:{height:"16px",width:"16px",borderRadius:Yn,backgroundColor:Hn.WHITE,boxShadow:`0px 1px 2px 0px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Yn,boxShadow:`0 2px 4px 0 ${Hn.GREYSCALE_0_30}, 0 0 0 1px ${Hn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Hn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Hn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Hn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15},markLabel:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Hn.WHITE,color:Hn.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:Hn.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:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Hn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Hn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15,borderRadius:Yn},thumb:{height:"16px",width:"16px",borderRadius:Yn,backgroundColor:Hn.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:Gn,fontWeight:Qn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Hn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,backgroundColor:Hn.GREYSCALE_0_03,borderRadius:Yn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Hn.GREYSCALE_25,"&.Mui-selected":{color:Hn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Gn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Hn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Hn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderRight:`1px solid ${Hn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Qn,backgroundColor:Hn.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:Hn.GREYSCALE_98,borderBottom:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderTop:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Hn.GREYSCALE_0_05,"&:hover":{backgroundColor:Hn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Hn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>jn.createElement(dr,{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 ${Hn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Gn,borderRadius:Yn,padding:"7px 16px",border:`1px solid ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_60,color:Hn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Hn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`,border:`1px solid ${Hn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Hn.GREYSCALE_25,backgroundColor:Hn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wn,height:24,width:24,padding:7},sizeLarge:{fontSize:Vn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Gn,borderRadius:Yn}}},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:Hn.GREYSCALE_20},tooltip:{backgroundColor:Hn.GREYSCALE_20,fontSize:Wn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const gL={mode:"light",primary:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},secondary:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},error:{light:Hn.RED_PALE,main:Hn.RED,dark:Hn.RED_DARK,contrastText:Hn.WHITE},warning:{light:Hn.ORANGE_PALE,main:Hn.ORANGE,dark:Hn.ORANGE_DARK,contrastText:Hn.WHITE},success:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},info:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},text:{primary:Hn.TEXT_PRIMARY,secondary:Hn.TEXT_SECONDARY,disabled:Hn.GREYSCALE_0_30},action:{hover:Hn.GREYSCALE_0_03,hoverOpacity:.05,selected:Hn.GREYSCALE_0_05,focus:Hn.MISC_FOCUS_BORDER},amethyst:{main:Hn.PURPLE,light:Hn.PURPLE_PALE,dark:Hn.PURPLE_DARK,contrastText:Hn.WHITE},background:{paper:Hn.WHITE,default:Hn.GREYSCALE_95},divider:Hn.GREYSCALE_0_15},vL=e=>({components:hL,palette:gL,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:Gn,fontWeightLight:Kn,fontWeightRegular:Xn,fontWeightMedium:Qn,fontWeightBold:Jn,htmlFontSize:Gn,fontFamily:Zn.FONT_FAMILY,button:{fontWeight:Qn,fontSize:Gn,textTransform:"none"},body1:{fontSize:Vn,lineHeight:"24px"},body2:{fontSize:Gn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Un,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Vn,fontWeight:Qn,lineHeight:"16px"},h6:{fontSize:Gn,fontWeight:Qn,lineHeight:"16px"},caption:{color:Hn.TEXT_SECONDARY},subtitle1:{fontSize:Gn,color:Hn.TEXT_SECONDARY},subtitle2:{fontSize:Wn,color:Hn.TEXT_SECONDARY}},shape:{borderRadius:Yn}}),bL={...Bn,MISC_FOCUS_BORDER:Hn.MISC_FOCUS_BORDER},yL=vL().palette,xL={TEXT:yL.text.primary,DISABLED:yL.text.disabled,HOVER:yL.action.hover,WHITE:bL.GREYSCALE_100,BORDER_LIGHT:bL.GREYSCALE_90,BORDER_MEDIUM:bL.GREYSCALE_85,BORDER_HEAVY:bL.GREYSCALE_50,DARK_MODE_TEXT:bL.GREYSCALE_95,DARK_MODE_BORDER:bL.GREYSCALE_95,DARK_MODE_DISABLED:bL.GREYSCALE_70,DARK_MODE_BACKGROUND:bL.GREYSCALE_20};function SL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function EL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function CL(){}var wL=.7,RL=1/wL,LL="\\s*([+-]?\\d+)\\s*",kL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",IL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ML=/^#([0-9a-f]{3,8})$/,_L=new RegExp(`^rgb\\(${LL},${LL},${LL}\\)$`),PL=new RegExp(`^rgb\\(${IL},${IL},${IL}\\)$`),AL=new RegExp(`^rgba\\(${LL},${LL},${LL},${kL}\\)$`),DL=new RegExp(`^rgba\\(${IL},${IL},${IL},${kL}\\)$`),TL=new RegExp(`^hsl\\(${kL},${IL},${IL}\\)$`),OL=new RegExp(`^hsla\\(${kL},${IL},${IL},${kL}\\)$`),NL={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 qL(){return this.rgb().formatHex()}function FL(){return this.rgb().formatRgb()}function zL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ML.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?jL(t):3===n?new WL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$L(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$L(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=_L.exec(e))?new WL(t[1],t[2],t[3],1):(t=PL.exec(e))?new WL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=AL.exec(e))?$L(t[1],t[2],t[3],t[4]):(t=DL.exec(e))?$L(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=TL.exec(e))?XL(t[1],t[2]/100,t[3]/100,1):(t=OL.exec(e))?XL(t[1],t[2]/100,t[3]/100,t[4]):NL.hasOwnProperty(e)?jL(NL[e]):"transparent"===e?new WL(NaN,NaN,NaN,0):null}function jL(e){return new WL(e>>16&255,e>>8&255,255&e,1)}function $L(e,t,n,r){return r<=0&&(e=t=n=NaN),new WL(e,t,n,r)}function BL(e){return e instanceof CL||(e=zL(e)),e?new WL((e=e.rgb()).r,e.g,e.b,e.opacity):new WL}function HL(e,t,n,r){return 1===arguments.length?BL(e):new WL(e,t,n,null==r?1:r)}function WL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function GL(){return`#${KL(this.r)}${KL(this.g)}${KL(this.b)}`}function VL(){const e=UL(this.opacity);return`${1===e?"rgb(":"rgba("}${YL(this.r)}, ${YL(this.g)}, ${YL(this.b)}${1===e?")":`, ${e})`}`}function UL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function YL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KL(e){return((e=YL(e))<16?"0":"")+e.toString(16)}function XL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new JL(e,t,n,r)}function QL(e){if(e instanceof JL)return new JL(e.h,e.s,e.l,e.opacity);if(e instanceof CL||(e=zL(e)),!e)return new JL;if(e instanceof JL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new JL(a,l,s,e.opacity)}function JL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ZL(e){return(e=(e||0)%360)<0?e+360:e}function ek(e){return Math.max(0,Math.min(1,e||0))}function tk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}SL(CL,zL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qL,formatHex:qL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return QL(this).formatHsl()},formatRgb:FL,toString:FL}),SL(WL,HL,EL(CL,{brighter(e){return e=null==e?RL:Math.pow(RL,e),new WL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?wL:Math.pow(wL,e),new WL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new WL(YL(this.r),YL(this.g),YL(this.b),UL(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:GL,formatHex:GL,formatHex8:function(){return`#${KL(this.r)}${KL(this.g)}${KL(this.b)}${KL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:VL,toString:VL})),SL(JL,(function(e,t,n,r){return 1===arguments.length?QL(e):new JL(e,t,n,null==r?1:r)}),EL(CL,{brighter(e){return e=null==e?RL:Math.pow(RL,e),new JL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?wL:Math.pow(wL,e),new JL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new WL(tk(e>=240?e-240:e+120,o,r),tk(e,o,r),tk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new JL(ZL(this.h),ek(this.s),ek(this.l),UL(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=UL(this.opacity);return`${1===e?"hsl(":"hsla("}${ZL(this.h)}, ${100*ek(this.s)}%, ${100*ek(this.l)}%${1===e?")":`, ${e})`}`}}));const nk=Math.PI/180,rk=180/Math.PI,ok=.96422,ik=1,ak=.82521,lk=4/29,sk=6/29,uk=3*sk*sk,ck=sk*sk*sk;function dk(e){if(e instanceof pk)return new pk(e.l,e.a,e.b,e.opacity);if(e instanceof bk)return yk(e);e instanceof WL||(e=BL(e));var t,n,r=gk(e.r),o=gk(e.g),i=gk(e.b),a=fk((.2225045*r+.7168786*o+.0606169*i)/ik);return r===o&&o===i?t=n=a:(t=fk((.4360747*r+.3850649*o+.1430804*i)/ok),n=fk((.0139322*r+.0971045*o+.7141733*i)/ak)),new pk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function pk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function fk(e){return e>ck?Math.pow(e,1/3):e/uk+lk}function mk(e){return e>sk?e*e*e:uk*(e-lk)}function hk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bk)return new bk(e.h,e.c,e.l,e.opacity);if(e instanceof pk||(e=dk(e)),0===e.a&&0===e.b)return new bk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rk;return new bk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bk(e,t,n,null==r?1:r)}function bk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function yk(e){if(isNaN(e.h))return new pk(e.l,0,0,e.opacity);var t=e.h*nk;return new pk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}SL(pk,(function(e,t,n,r){return 1===arguments.length?dk(e):new pk(e,t,n,null==r?1:r)}),EL(CL,{brighter(e){return new pk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new WL(hk(3.1338561*(t=ok*mk(t))-1.6168667*(e=ik*mk(e))-.4906146*(n=ak*mk(n))),hk(-.9787684*t+1.9161415*e+.033454*n),hk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),SL(bk,vk,EL(CL,{brighter(e){return new bk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yk(this).rgb()}}));const xk=(e,t)=>{const n=vk(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Sk=e=>{if(e){const t=HL(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Ek=e=>!!e&&0===HL(e).opacity,Ck=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,wk=e=>{const t=Ck.exec(e);if(t){const[,e,n,r,o]=t;return HL(+n,+r,+o,+e/255)}return HL(e)},Rk=e=>{const t=wk(e);return Number.isNaN(t.r)?null:t.toString()},Lk=e=>{e.stopPropagation(),e.preventDefault()},kk="#grid",Ik=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Mk=(e,t,n,r,o)=>{const i=Ik(".qv-object .qv-inner-object",n),a=Ik(".qv-panel-sheet",n),l=Ik(kk,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Rk(s);if("none"===u)return"transparent";if(void 0===u)return;const c=wk(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=Ek(p),m=Sk(f?s:p),h=((e,t,n)=>e&&!Ek(e)?e:Ek(t)?n&&!Ek(n)?n:xL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},_k=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(kk),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:Mk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function Pk(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Ak=Object.prototype.hasOwnProperty,Dk=Object.prototype.toString,Tk=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,Nk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Dk.call(e)},qk=function(e){if(!e||"[object Object]"!==Dk.call(e))return!1;var t,n=Ak.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ak.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ak.call(e,t)},Fk=function(e,t){Tk&&"__proto__"===t.name?Tk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},zk=function(e,t){if("__proto__"===t){if(!Ak.call(e,t))return;if(Ok)return Ok(e,t).value}return e[t]};function jk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $k(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=zk(l,n),l!==(o=zk(t,n))&&(c&&o&&(qk(o)||(i=Nk(o)))?(i?(i=!1,a=r&&Nk(r)?r:[]):a=r&&qk(r)?r:{},Fk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Fk(l,{name:n,newValue:o}));return l}));var Hk=1/.7,Wk="\\s*([+-]?\\d+)\\s*",Gk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uk=/^#([0-9a-f]{3,8})$/,Yk=new RegExp(`^rgb\\(${Wk},${Wk},${Wk}\\)$`),Kk=new RegExp(`^rgb\\(${Vk},${Vk},${Vk}\\)$`),Xk=new RegExp(`^rgba\\(${Wk},${Wk},${Wk},${Gk}\\)$`),Qk=new RegExp(`^rgba\\(${Vk},${Vk},${Vk},${Gk}\\)$`),Jk=new RegExp(`^hsl\\(${Gk},${Vk},${Vk}\\)$`),Zk=new RegExp(`^hsla\\(${Gk},${Vk},${Vk},${Gk}\\)$`),eI={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 tI(){return this.rgb().formatHex()}function nI(){return this.rgb().formatRgb()}function rI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Uk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?oI(t):3===n?new sI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?iI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?iI(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=Yk.exec(e))?new sI(t[1],t[2],t[3],1):(t=Kk.exec(e))?new sI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Xk.exec(e))?iI(t[1],t[2],t[3],t[4]):(t=Qk.exec(e))?iI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jk.exec(e))?mI(t[1],t[2]/100,t[3]/100,1):(t=Zk.exec(e))?mI(t[1],t[2]/100,t[3]/100,t[4]):eI.hasOwnProperty(e)?oI(eI[e]):"transparent"===e?new sI(NaN,NaN,NaN,0):null}function oI(e){return new sI(e>>16&255,e>>8&255,255&e,1)}function iI(e,t,n,r){return r<=0&&(e=t=n=NaN),new sI(e,t,n,r)}function aI(e){return e instanceof Bk||(e=rI(e)),e?new sI((e=e.rgb()).r,e.g,e.b,e.opacity):new sI}function lI(e,t,n,r){return 1===arguments.length?aI(e):new sI(e,t,n,null==r?1:r)}function sI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function uI(){return`#${fI(this.r)}${fI(this.g)}${fI(this.b)}`}function cI(){const e=dI(this.opacity);return`${1===e?"rgb(":"rgba("}${pI(this.r)}, ${pI(this.g)}, ${pI(this.b)}${1===e?")":`, ${e})`}`}function dI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fI(e){return((e=pI(e))<16?"0":"")+e.toString(16)}function mI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gI(e,t,n,r)}function hI(e){if(e instanceof gI)return new gI(e.h,e.s,e.l,e.opacity);if(e instanceof Bk||(e=rI(e)),!e)return new gI;if(e instanceof gI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new gI(a,l,s,e.opacity)}function gI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function vI(e){return(e=(e||0)%360)<0?e+360:e}function bI(e){return Math.max(0,Math.min(1,e||0))}function yI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}jk(Bk,rI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tI,formatHex:tI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hI(this).formatHsl()},formatRgb:nI,toString:nI}),jk(sI,lI,$k(Bk,{brighter(e){return e=null==e?Hk:Math.pow(Hk,e),new sI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sI(pI(this.r),pI(this.g),pI(this.b),dI(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:uI,formatHex:uI,formatHex8:function(){return`#${fI(this.r)}${fI(this.g)}${fI(this.b)}${fI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cI,toString:cI})),jk(gI,(function(e,t,n,r){return 1===arguments.length?hI(e):new gI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return e=null==e?Hk:Math.pow(Hk,e),new gI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new gI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new sI(yI(e>=240?e-240:e+120,o,r),yI(e,o,r),yI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new gI(vI(this.h),bI(this.s),bI(this.l),dI(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=dI(this.opacity);return`${1===e?"hsl(":"hsla("}${vI(this.h)}, ${100*bI(this.s)}%, ${100*bI(this.l)}%${1===e?")":`, ${e})`}`}}));const xI=Math.PI/180,SI=180/Math.PI,EI=4/29,CI=6/29,wI=3*CI*CI;function RI(e){if(e instanceof LI)return new LI(e.l,e.a,e.b,e.opacity);if(e instanceof PI)return AI(e);e instanceof sI||(e=aI(e));var t,n,r=_I(e.r),o=_I(e.g),i=_I(e.b),a=kI((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=kI((.4360747*r+.3850649*o+.1430804*i)/.96422),n=kI((.0139322*r+.0971045*o+.7141733*i)/.82521)),new LI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function LI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function kI(e){return e>.008856451679035631?Math.pow(e,1/3):e/wI+EI}function II(e){return e>CI?e*e*e:wI*(e-EI)}function MI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _I(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function PI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function AI(e){if(isNaN(e.h))return new LI(e.l,0,0,e.opacity);var t=e.h*xI;return new LI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jk(LI,(function(e,t,n,r){return 1===arguments.length?RI(e):new LI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return new LI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new LI(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new sI(MI(3.1338561*(t=.96422*II(t))-1.6168667*(e=1*II(e))-.4906146*(n=.82521*II(n))),MI(-.9787684*t+1.9161415*e+.033454*n),MI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),jk(PI,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof PI)return new PI(e.h,e.c,e.l,e.opacity);if(e instanceof LI||(e=RI(e)),0===e.a&&0===e.b)return new PI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*SI;return new PI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new PI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return new PI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new PI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return AI(this).rgb()}}));var DI,TI=e=>()=>e;function OI(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):TI(isNaN(e)?t:e)}function NI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function qI(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function FI(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jI)):void 0===t&&(t=zI);for(var n,r,o,i,a,l=new HI(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new HI(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(BI)}function zI(e){return e.children}function jI(e){return Array.isArray(e)?e[1]:null}function $I(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function BI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function HI(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?OI:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):TI(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=lI(e)).r,(t=lI(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=OI(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),HI.prototype=FI.prototype={constructor:HI,count:function(){return this.eachAfter(qI)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return FI(this).eachBefore($I)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},DI=function(e){
118
+ `),wE.rippleVisible,PE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wE.child,wE.childLeaving,AE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.childPulsate,DE,(({theme:e})=>e.transitions.easing.easeInOut)),NE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,RE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(OE,{classes:{ripple:Sc(o.ripple,wE.ripple),rippleVisible:Sc(o.rippleVisible,wE.rippleVisible),ripplePulsate:Sc(o.ripplePulsate,wE.ripplePulsate),child:Sc(o.child,wE.child),childLeaving:Sc(o.childLeaving,wE.childLeaving),childPulsate:Sc(o.childPulsate,wE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(TE,Lr({className:Sc(wE.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var qE=NE;function FE(e){return Wu("MuiButtonBase",e)}var zE=Gu("MuiButtonBase",["root","disabled","focusVisible"]);const jE=["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"],$E=bc("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"},[`&.${zE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=kr(n,jE),A=Hn.useRef(null),D=Hn.useRef(null),T=Iu(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=zu(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Mu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Mu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=Mu((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Mu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Iu(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},FE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs($E,Lr({as:ie,className:Sc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx(qE,Lr({ref:T,center:o},M)):null]}))}));var HE=BE;function WE(e){return Wu("MuiTypography",e)}Gu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const GE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VE=bc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${xu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({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}))),UE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},KE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTypography"}),r=(e=>YE[e]||e)(n.color),o=eu(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=UE}=o,f=kr(o,GE),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||UE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${xu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},WE,a)})(m);return Xs.jsx(VE,Lr({as:h,ref:t,ownerState:m,className:Sc(g.root,a)},f))}));var XE=KE;const QE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function JE(e){const t=[],n=[];return Array.from(e.querySelectorAll(QE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ZE(){return!0}function eC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=JE,isEnabled:a=ZE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const tC=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));function nC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rC(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function oC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&nC(e,o)}))}function iC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function aC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rC(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${rC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const lC=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&nC(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);oC(t,e.mount,e.modalRef,r,!0);const o=iC(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=iC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=aC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=iC(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&nC(e.modalRef,t),oC(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&nC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function sC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&nC(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=xE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const uC=["onChange","maxRows","minRows","style","value"];function cC(e){return parseInt(e,10)||0}const dC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function pC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const fC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,uC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=il(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=tl(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=cC(n.paddingBottom)+cC(n.paddingTop),s=cC(n.borderBottomWidth)+cC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();pC(e)||m((t=>g(t,e)))}),[h]);rl((()=>{const e=()=>{p.current=0,(()=>{const e=h();pC(e)||KS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Za(e),n=u.current,r=tl(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),rl((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Xs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},dC,i,{paddingTop:0,paddingBottom:0})})]})}));function mC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var hC=Hn.createContext(void 0);function gC(){return Hn.useContext(hC)}function vC(e){return Xs.jsx(Qs,Lr({},e,{defaultTheme:pc,themeId:Rr}))}function bC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yC(e,t=!1){return e&&(bC(e.value)&&""!==e.value||t&&bC(e.defaultValue)&&""!==e.defaultValue)}function xC(e){return Wu("MuiInputBase",e)}var SC=Gu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const EC=["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"],CC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},RC=bc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>Lr({},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",[`&.${SC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),LC=bc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${SC.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},[`&.${SC.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"})})),kC=Xs.jsx(vC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),MC=Hn.forwardRef((function(e,t){var n;const r=mc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:M,placeholder:I,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,EC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Iu($,b,v.ref,B),[W,G]=Hn.useState(!1),V=gC(),U=mC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{yC(e)?Y&&Y():K&&K()}),[Y,K]);Cu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=fC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Sl({root:["root",`color${xu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${xu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},xC,t)})(Z),te=T.root||s.Root||RC,ne=D.root||u.root||{},re=T.input||s.Input||LC;return J=Lr({},J,null!=(n=D.input)?n:u.input),Xs.jsxs(Hn.Fragment,{children:[!p&&kC,Xs.jsxs(te,Lr({},ne,!yE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Sc(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,Xs.jsx(hC.Provider,{value:null,children:Xs.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:I,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:M,type:N},J,!yE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:Sc(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var IC=MC;function _C(e){return Wu("MuiInput",e)}var PC=Lr({},SC,Gu("MuiInput",["root","underline","input"]));function AC(e){return Wu("MuiOutlinedInput",e)}var DC=Lr({},SC,Gu("MuiOutlinedInput",["root","notchedOutline","input"]));function TC(e){return Wu("MuiFilledInput",e)}var OC=Lr({},SC,Gu("MuiFilledInput",["root","underline","input"])),NC=function(e,t){function n(n,r){return Xs.jsx(Lc,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Lc.muiName,Hn.memo(Hn.forwardRef(n))}(Xs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const qC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FC={entering:{opacity:1},entered:{opacity:1}},zC=Hn.forwardRef((function(e,t){const n=fc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=aE}=e,b=kr(e,qC),y=Hn.useRef(null),x=Iu(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{fE(e);const r=mE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=mE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},FC[e],h,a.props.style),ref:x},t))}))}));var jC=zC;function $C(e){return Wu("MuiBackdrop",e)}Gu("MuiBackdrop",["root","invisible"]);const BC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HC=bc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({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"}))),WC=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({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=jC,transitionDuration:g}=i,v=kr(i,BC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},$C,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Lr({in:p,timeout:g},v,{children:Xs.jsx(HC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Sc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var GC=WC;var VC=Gu("MuiBox",["root"]);const UC=dc(),YC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ts);return Hn.forwardRef((function(e,a){const l=js(n),s=eu(e),{className:u,component:c="div"}=s,d=rn(s,tu);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:UC,defaultClassName:VC.root,generateClassName:Bu.generate});var KC=YC;function XC(e){return Wu("MuiButton",e)}var QC=Gu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var JC=Hn.createContext({});var ZC=Hn.createContext(void 0);const ew=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tw=e=>Lr({},"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}}),nw=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xu(n.color)}`],t[`size${xu(n.size)}`],t[`${n.variant}Size${xu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},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":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gu(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})`:gu(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})`:gu(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":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${QC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${QC.disabled}`]:Lr({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 ${gu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${QC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${QC.disabled}`]:{boxShadow:"none"}})),rw=bc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tw(e)))),ow=bc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tw(e)))),iw=Hn.forwardRef((function(e,t){const n=Hn.useContext(JC),r=Hn.useContext(ZC),o=mc({props:ju(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,ew),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,Sl({root:["root",i,`${i}${xu(t)}`,`size${xu(o)}`,`${i}Size${xu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xu(o)}`],endIcon:["endIcon",`iconSize${xu(o)}`]},XC,a))})(x),E=g&&Xs.jsx(rw,{className:S.startIcon,ownerState:x,children:g}),C=p&&Xs.jsx(ow,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Xs.jsxs(nw,Lr({ownerState:x,className:Sc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Sc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var aw=iw;function lw(e){return Wu("MuiModal",e)}Gu("MuiModal",["root","hidden","backdrop"]);const sw=["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"],uw=bc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cw=bc(GC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=mc({name:"MuiModal",props:e}),{BackdropComponent:u=cw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=kr(s,sw),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=sC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lw,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:uw,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=CE({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Sc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=CE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Sc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(tC,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Lr({},V,{children:[!w&&u?Xs.jsx(H,Lr({},U)):null,Xs.jsx(eC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var pw=dw;function fw(e){return Wu("MuiDivider",e)}var mw=Gu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const hw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],gw=bc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({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)`:gu(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})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),vw=bc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({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)`}))),bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,hw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},fw,r)})(m);return Xs.jsx(gw,Lr({as:a,className:Sc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Xs.jsx(vw,{className:h.wrapper,ownerState:m,children:o}):null}))}));bw.muiSkipListHighlight=!0;var yw=bw;const xw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({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}},[`&.${OC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${OC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${OC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${OC.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(.${OC.disabled}, .${OC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${OC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({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}))})),Ew=bc(LC,{name:"MuiFilledInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({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}))),Cw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({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=kr(a,xw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},TC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?yu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Sw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ew;return Xs.jsx(IC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Cw.muiName="Input";var ww=Cw;const Rw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Lw(e){return`scale(${e}, ${e**2})`}const kw={entering:{opacity:1,transform:Lw(1)},entered:{opacity:1,transform:"none"}},Mw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Iw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=kr(e,Rw),v=Hn.useRef(),b=Hn.useRef(),y=fc(),x=Hn.useRef(null),S=Iu(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{fE(e);const{duration:n,delay:r,easing:o}=mE({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Mw?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=mE({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Mw?o:.666*o,delay:Mw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Lw(.75),c&&c(e)})),M=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Xs.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:Lw(.75),visibility:"exited"!==e||a?void 0:"hidden"},kw[e],f,o.props.style),ref:S},t))}))}));Iw.muiSupportAuto=!0;var _w=Iw;const Pw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({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"},[`&.${PC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${PC.disabled}, .${PC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${PC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dw=bc(LC,{name:"MuiInput",slot:"Input",overridesResolver:wC})({}),Tw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({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=kr(a,Pw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},_C,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?yu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Aw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dw;return Xs.jsx(IC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Tw.muiName="Input";var Ow=Tw;function Nw(e){return Wu("MuiLink",e)}var qw=Gu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Fw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var zw=({theme:e,ownerState:t})=>{const n=(e=>Fw[e]||e)(t.color),r=Hl(e,`palette.${n}`,!1)||t.color,o=Hl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:gu(r,.4)};const jw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$w=bc(XE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${xu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:zw({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"},[`&.${qw.focusVisible}`]:{outline:"auto"}}))),Bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,jw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=zu(),[v,b]=Hn.useState(!1),y=Iu(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Sl({root:["root",`underline${xu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Nw,t)})(x);return Xs.jsx($w,Lr({color:o,className:Sc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Fw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Hw=Bw;var Ww=Hn.createContext({});function Gw(e){return Wu("MuiList",e)}Gu("MuiList",["root","padding","dense","subheader"]);const Vw=["children","className","component","dense","disablePadding","subheader"],Uw=bc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Yw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,Vw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Gw,t)})(d);return Xs.jsx(Ww.Provider,{value:c,children:Xs.jsxs(Uw,Lr({as:i,className:Sc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Kw(e){return Wu("MuiListItemIcon",e)}var Xw=Gu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qw=["className"],Jw=bc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Zw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Qw),i=Lr({},n,{alignItems:Hn.useContext(Ww).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Kw,n)})(i);return Xs.jsx(Jw,Lr({className:Sc(a.root,r),ownerState:i,ref:t},o))}));var eR=Gu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const tR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function oR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function iR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&oR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var aR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,tR),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Su(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Iu(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Yw,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Su(t).activeElement;if("ArrowDown"===n)e.preventDefault(),iR(t,r,s,l,nR);else if("ArrowUp"===n)e.preventDefault(),iR(t,r,s,l,rR);else if("Home"===n)e.preventDefault(),iR(t,null,s,l,nR);else if("End"===n)e.preventDefault(),iR(t,null,s,l,rR);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&oR(r,o);o.previousKeyMatched&&(s||iR(t,r,!1,l,nR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function lR(e){return Wu("MuiPopover",e)}Gu("MuiPopover",["root","paper"]);const sR=["onEntering"],uR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cR=["slotProps"];function dR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function fR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function mR(e){return"function"==typeof e?e():e}const hR=bc(pw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gR=bc(bE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var vR=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=_w,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,sR),L=kr(i,uR),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=Iu(M,k.ref),_=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},lR,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=mR(l),t=(e&&1===e.nodeType?e:Su(M.current).body).getBoundingClientRect();return{top:t.top+dR(t,s.vertical),left:t.left+pR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:dR(e,x.vertical),horizontal:pR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:fR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Eu(mR(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:fR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Eu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Su(mR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hR,$=null!=(o=null==b?void 0:b.paper)?o:gR,B=CE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Sc(P.paper,null==k?void 0:k.className)}),H=CE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Sc(P.root,p)}),{slotProps:W}=H,G=kr(H,cR);return Xs.jsx(j,Lr({},G,!yE(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Lr({},B,{children:d}))}))}))}));function bR(e){return Wu("MuiMenu",e)}Gu("MuiMenu",["root","paper","list"]);const yR=["onEntering"],xR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],SR={vertical:"top",horizontal:"right"},ER={vertical:"top",horizontal:"left"},CR=bc(vR,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wR=bc(gR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),RR=bc(aR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var LR=Hn.forwardRef((function(e,t){var n,r;const o=mc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,yR),x=kr(o,xR),S=fc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},bR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const M=null!=(n=v.paper)?n:wR,I=null!=(r=b.paper)?r:p,_=CE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=CE({elementType:M,externalSlotProps:I,ownerState:C,className:w.paper});return Xs.jsx(CR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?SR:ER,slots:{paper:M,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Xs.jsx(RR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Sc(w.list,u.className),children:a}))}))}));function kR(e){return Wu("MuiMenuItem",e)}var MR=Gu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const IR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_R=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},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"}},[`&.${MR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${MR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${MR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gu(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})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${MR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${MR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mw.inset}`]:{marginLeft:52},[`& .${eR.root}`]:{marginTop:0,marginBottom:0},[`& .${eR.inset}`]:{paddingLeft:36},[`& .${Xw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Xw.root} svg`]:{fontSize:"1.25rem"}}))));var PR=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,IR),f=Hn.useContext(Ww),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);Cu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kR,a))})(n),b=Iu(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Ww.Provider,{value:m,children:Xs.jsx(_R,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Sc(v.focusVisible,s),className:Sc(v.root,d)},p,{ownerState:g,classes:v}))})}));function AR(e){return Wu("MuiNativeSelect",e)}var DR=Gu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const TR=["className","disabled","error","IconComponent","inputRef","variant"],OR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},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"},[`&.${DR.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}}),NR=bc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${DR.multiple}`]:t.multiple}]}})(OR),qR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),FR=bc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),zR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,TR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"]},AR,t)})(u);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(NR,Lr({ownerState:u,className:Sc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Xs.jsx(FR,{as:i,ownerState:u,className:c.icon})]})}));var jR,$R=zR;const BR=["children","classes","className","label","notched"],HR=bc("fieldset",{shouldForwardProp:hc})({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%"}),WR=bc("legend",{shouldForwardProp:hc})((({ownerState:e,theme:t})=>Lr({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&&Lr({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 GR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],VR=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${DC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${DC.focused} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${DC.error} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${DC.disabled} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),UR=bc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,BR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return Xs.jsx(HR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Xs.jsx(WR,{ownerState:a,children:i?Xs.jsx("span",{children:n}):jR||(jR=Xs.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}})),YR=bc(LC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({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}))),KR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=mc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,GR),v=(e=>{const{classes:t}=e;return Lr({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AC,t))})(l),b=gC(),y=mC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:VR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:YR;return Xs.jsx(IC,Lr({slots:{root:S,input:E},renderSuffix:e=>Xs.jsx(UR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Xs.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));KR.muiName="Input";var XR=KR;function QR(e){return Wu("MuiSelect",e)}var JR,ZR=Gu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const eL=["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"],tL=bc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ZR.select}`]:t.select},{[`&.${ZR.select}`]:t[n.variant]},{[`&.${ZR.error}`]:t.error},{[`&.${ZR.multiple}`]:t.multiple}]}})(OR,{[`&.${ZR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nL=bc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),rL=bc("input",{shouldForwardProp:e=>gc(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 oL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function iL(e){return null==e||"string"==typeof e&&!e.trim()}const aL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:M={},tabIndex:I,value:_,variant:P="standard"}=e,A=kr(e,eL),[D,T]=ku({controlled:_,default:c,name:"Select"}),[O,N]=ku({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Iu(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=Su(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(yC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>oL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=oL(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==I?I:d?null:0;const oe=M.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},QR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Lu();return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(tL,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},M,{ownerState:ie,className:Sc(M.className,ae.select,s),id:oe,children:iL(Q)?JR||(JR=Xs.jsx("span",{className:"notranslate",children:"​"})):Q})),Xs.jsx(rL,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),Xs.jsx(nL,{as:m,className:ae.icon,ownerState:ie}),Xs.jsx(LR,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var lL=aL;const sL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uL=["root"],cL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},dL=bc(Ow,cL)(""),pL=bc(XR,cL)(""),fL=bc(ww,cL)(""),mL=Hn.forwardRef((function(e,t){const n=mc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=NC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,sL),R=v?$R:lL,L=mC({props:n,muiFormControl:gC(),states:["variant","error"]}),k=L.variant||C,M=Lr({},n,{variant:k,classes:i}),I=(e=>{const{classes:t}=e;return t})(M),_=kr(I,uL),P=d||{standard:Xs.jsx(dL,{ownerState:M}),outlined:Xs.jsx(pL,{label:f,ownerState:M}),filled:Xs.jsx(fL,{ownerState:M})}[k],A=Iu(t,P.ref);return Xs.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?yu(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Sc(P.props.className,a,I.root)},!d&&{variant:k},w))})}));mL.muiName="Select";var hL=mL,gL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const vL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"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 ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.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 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.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:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.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:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${gu(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${gu(Un.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:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"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:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...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:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(gL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.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:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.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:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.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:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.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:Un.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:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.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:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.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:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{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 ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},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:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const bL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},yL=e=>({components:vL,palette:bL,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:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),xL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},SL=yL().palette,EL={TEXT:SL.text.primary,DISABLED:SL.text.disabled,HOVER:SL.action.hover,WHITE:xL.GREYSCALE_100,BORDER_LIGHT:xL.GREYSCALE_90,BORDER_MEDIUM:xL.GREYSCALE_85,BORDER_HEAVY:xL.GREYSCALE_50,DARK_MODE_TEXT:xL.GREYSCALE_95,DARK_MODE_BORDER:xL.GREYSCALE_95,DARK_MODE_DISABLED:xL.GREYSCALE_70,DARK_MODE_BACKGROUND:xL.GREYSCALE_20};function CL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function RL(){}var LL=.7,kL=1/LL,ML="\\s*([+-]?\\d+)\\s*",IL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PL=/^#([0-9a-f]{3,8})$/,AL=new RegExp(`^rgb\\(${ML},${ML},${ML}\\)$`),DL=new RegExp(`^rgb\\(${_L},${_L},${_L}\\)$`),TL=new RegExp(`^rgba\\(${ML},${ML},${ML},${IL}\\)$`),OL=new RegExp(`^rgba\\(${_L},${_L},${_L},${IL}\\)$`),NL=new RegExp(`^hsl\\(${IL},${_L},${_L}\\)$`),qL=new RegExp(`^hsla\\(${IL},${_L},${_L},${IL}\\)$`),FL={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 zL(){return this.rgb().formatHex()}function jL(){return this.rgb().formatRgb()}function $L(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=PL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?BL(t):3===n?new VL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?HL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?HL(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=AL.exec(e))?new VL(t[1],t[2],t[3],1):(t=DL.exec(e))?new VL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TL.exec(e))?HL(t[1],t[2],t[3],t[4]):(t=OL.exec(e))?HL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NL.exec(e))?JL(t[1],t[2]/100,t[3]/100,1):(t=qL.exec(e))?JL(t[1],t[2]/100,t[3]/100,t[4]):FL.hasOwnProperty(e)?BL(FL[e]):"transparent"===e?new VL(NaN,NaN,NaN,0):null}function BL(e){return new VL(e>>16&255,e>>8&255,255&e,1)}function HL(e,t,n,r){return r<=0&&(e=t=n=NaN),new VL(e,t,n,r)}function WL(e){return e instanceof RL||(e=$L(e)),e?new VL((e=e.rgb()).r,e.g,e.b,e.opacity):new VL}function GL(e,t,n,r){return 1===arguments.length?WL(e):new VL(e,t,n,null==r?1:r)}function VL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function UL(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}`}function YL(){const e=KL(this.opacity);return`${1===e?"rgb(":"rgba("}${XL(this.r)}, ${XL(this.g)}, ${XL(this.b)}${1===e?")":`, ${e})`}`}function KL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function XL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function QL(e){return((e=XL(e))<16?"0":"")+e.toString(16)}function JL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ek(e,t,n,r)}function ZL(e){if(e instanceof ek)return new ek(e.h,e.s,e.l,e.opacity);if(e instanceof RL||(e=$L(e)),!e)return new ek;if(e instanceof ek)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ek(a,l,s,e.opacity)}function ek(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tk(e){return(e=(e||0)%360)<0?e+360:e}function nk(e){return Math.max(0,Math.min(1,e||0))}function rk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}CL(RL,$L,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zL,formatHex:zL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ZL(this).formatHsl()},formatRgb:jL,toString:jL}),CL(VL,GL,wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new VL(XL(this.r),XL(this.g),XL(this.b),KL(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:UL,formatHex:UL,formatHex8:function(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}${QL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:YL,toString:YL})),CL(ek,(function(e,t,n,r){return 1===arguments.length?ZL(e):new ek(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new ek(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new ek(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new VL(rk(e>=240?e-240:e+120,o,r),rk(e,o,r),rk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ek(tk(this.h),nk(this.s),nk(this.l),KL(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=KL(this.opacity);return`${1===e?"hsl(":"hsla("}${tk(this.h)}, ${100*nk(this.s)}%, ${100*nk(this.l)}%${1===e?")":`, ${e})`}`}}));const ok=Math.PI/180,ik=180/Math.PI,ak=.96422,lk=1,sk=.82521,uk=4/29,ck=6/29,dk=3*ck*ck,pk=ck*ck*ck;function fk(e){if(e instanceof mk)return new mk(e.l,e.a,e.b,e.opacity);if(e instanceof xk)return Sk(e);e instanceof VL||(e=WL(e));var t,n,r=bk(e.r),o=bk(e.g),i=bk(e.b),a=hk((.2225045*r+.7168786*o+.0606169*i)/lk);return r===o&&o===i?t=n=a:(t=hk((.4360747*r+.3850649*o+.1430804*i)/ak),n=hk((.0139322*r+.0971045*o+.7141733*i)/sk)),new mk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hk(e){return e>pk?Math.pow(e,1/3):e/dk+uk}function gk(e){return e>ck?e*e*e:dk*(e-uk)}function vk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xk)return new xk(e.h,e.c,e.l,e.opacity);if(e instanceof mk||(e=fk(e)),0===e.a&&0===e.b)return new xk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ik;return new xk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xk(e,t,n,null==r?1:r)}function xk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sk(e){if(isNaN(e.h))return new mk(e.l,0,0,e.opacity);var t=e.h*ok;return new mk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}CL(mk,(function(e,t,n,r){return 1===arguments.length?fk(e):new mk(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return new mk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new VL(vk(3.1338561*(t=ak*gk(t))-1.6168667*(e=lk*gk(e))-.4906146*(n=sk*gk(n))),vk(-.9787684*t+1.9161415*e+.033454*n),vk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),CL(xk,yk,wL(RL,{brighter(e){return new xk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sk(this).rgb()}}));const Ek=(e,t)=>{const n=yk(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Ck=e=>{if(e){const t=GL(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},wk=e=>!!e&&0===GL(e).opacity,Rk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Lk=e=>{const t=Rk.exec(e);if(t){const[,e,n,r,o]=t;return GL(+n,+r,+o,+e/255)}return GL(e)},kk=e=>{const t=Lk(e);return Number.isNaN(t.r)?null:t.toString()},Mk=e=>{e.stopPropagation(),e.preventDefault()},Ik="#grid",_k=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Pk=(e,t,n,r,o)=>{const i=_k(".qv-object .qv-inner-object",n),a=_k(".qv-panel-sheet",n),l=_k(Ik,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return kk(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Lk(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=wk(p),m=Ck(f?s:p),h=((e,t,n)=>e&&!wk(e)?e:wk(t)?n&&!wk(n)?n:EL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},Ak=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(Ik),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:Pk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function Dk(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Tk=Object.prototype.hasOwnProperty,Ok=Object.prototype.toString,Nk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Fk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ok.call(e)},zk=function(e){if(!e||"[object Object]"!==Ok.call(e))return!1;var t,n=Tk.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Tk.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Tk.call(e,t)},jk=function(e,t){Nk&&"__proto__"===t.name?Nk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$k=function(e,t){if("__proto__"===t){if(!Tk.call(e,t))return;if(qk)return qk(e,t).value}return e[t]};function Bk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Hk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=$k(l,n),l!==(o=$k(t,n))&&(c&&o&&(zk(o)||(i=Fk(o)))?(i?(i=!1,a=r&&Fk(r)?r:[]):a=r&&zk(r)?r:{},jk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&jk(l,{name:n,newValue:o}));return l}));var Gk=1/.7,Vk="\\s*([+-]?\\d+)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kk=/^#([0-9a-f]{3,8})$/,Xk=new RegExp(`^rgb\\(${Vk},${Vk},${Vk}\\)$`),Qk=new RegExp(`^rgb\\(${Yk},${Yk},${Yk}\\)$`),Jk=new RegExp(`^rgba\\(${Vk},${Vk},${Vk},${Uk}\\)$`),Zk=new RegExp(`^rgba\\(${Yk},${Yk},${Yk},${Uk}\\)$`),eM=new RegExp(`^hsl\\(${Uk},${Yk},${Yk}\\)$`),tM=new RegExp(`^hsla\\(${Uk},${Yk},${Yk},${Uk}\\)$`),nM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rM(){return this.rgb().formatHex()}function oM(){return this.rgb().formatRgb()}function iM(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?aM(t):3===n?new cM(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lM(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lM(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=Xk.exec(e))?new cM(t[1],t[2],t[3],1):(t=Qk.exec(e))?new cM(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Jk.exec(e))?lM(t[1],t[2],t[3],t[4]):(t=Zk.exec(e))?lM(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eM.exec(e))?gM(t[1],t[2]/100,t[3]/100,1):(t=tM.exec(e))?gM(t[1],t[2]/100,t[3]/100,t[4]):nM.hasOwnProperty(e)?aM(nM[e]):"transparent"===e?new cM(NaN,NaN,NaN,0):null}function aM(e){return new cM(e>>16&255,e>>8&255,255&e,1)}function lM(e,t,n,r){return r<=0&&(e=t=n=NaN),new cM(e,t,n,r)}function sM(e){return e instanceof Wk||(e=iM(e)),e?new cM((e=e.rgb()).r,e.g,e.b,e.opacity):new cM}function uM(e,t,n,r){return 1===arguments.length?sM(e):new cM(e,t,n,null==r?1:r)}function cM(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dM(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}`}function pM(){const e=fM(this.opacity);return`${1===e?"rgb(":"rgba("}${mM(this.r)}, ${mM(this.g)}, ${mM(this.b)}${1===e?")":`, ${e})`}`}function fM(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mM(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hM(e){return((e=mM(e))<16?"0":"")+e.toString(16)}function gM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bM(e,t,n,r)}function vM(e){if(e instanceof bM)return new bM(e.h,e.s,e.l,e.opacity);if(e instanceof Wk||(e=iM(e)),!e)return new bM;if(e instanceof bM)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new bM(a,l,s,e.opacity)}function bM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function yM(e){return(e=(e||0)%360)<0?e+360:e}function xM(e){return Math.max(0,Math.min(1,e||0))}function SM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bk(Wk,iM,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rM,formatHex:rM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vM(this).formatHsl()},formatRgb:oM,toString:oM}),Bk(cM,uM,Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cM(mM(this.r),mM(this.g),mM(this.b),fM(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:dM,formatHex:dM,formatHex8:function(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}${hM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pM,toString:pM})),Bk(bM,(function(e,t,n,r){return 1===arguments.length?vM(e):new bM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new bM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new cM(SM(e>=240?e-240:e+120,o,r),SM(e,o,r),SM(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new bM(yM(this.h),xM(this.s),xM(this.l),fM(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=fM(this.opacity);return`${1===e?"hsl(":"hsla("}${yM(this.h)}, ${100*xM(this.s)}%, ${100*xM(this.l)}%${1===e?")":`, ${e})`}`}}));const EM=Math.PI/180,CM=180/Math.PI,wM=4/29,RM=6/29,LM=3*RM*RM;function kM(e){if(e instanceof MM)return new MM(e.l,e.a,e.b,e.opacity);if(e instanceof DM)return TM(e);e instanceof cM||(e=sM(e));var t,n,r=AM(e.r),o=AM(e.g),i=AM(e.b),a=IM((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=IM((.4360747*r+.3850649*o+.1430804*i)/.96422),n=IM((.0139322*r+.0971045*o+.7141733*i)/.82521)),new MM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function MM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function IM(e){return e>.008856451679035631?Math.pow(e,1/3):e/LM+wM}function _M(e){return e>RM?e*e*e:LM*(e-wM)}function PM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function AM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function DM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function TM(e){if(isNaN(e.h))return new MM(e.l,0,0,e.opacity);var t=e.h*EM;return new MM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bk(MM,(function(e,t,n,r){return 1===arguments.length?kM(e):new MM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new MM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new MM(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new cM(PM(3.1338561*(t=.96422*_M(t))-1.6168667*(e=1*_M(e))-.4906146*(n=.82521*_M(n))),PM(-.9787684*t+1.9161415*e+.033454*n),PM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bk(DM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof DM)return new DM(e.h,e.c,e.l,e.opacity);if(e instanceof MM||(e=kM(e)),0===e.a&&0===e.b)return new DM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*CM;return new DM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new DM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new DM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new DM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return TM(this).rgb()}}));var OM,NM=e=>()=>e;function qM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):NM(isNaN(e)?t:e)}function FM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function zM(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function jM(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BM)):void 0===t&&(t=$M);for(var n,r,o,i,a,l=new GM(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new GM(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(WM)}function $M(e){return e.children}function BM(e){return Array.isArray(e)?e[1]:null}function HM(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function WM(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function GM(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?qM:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):NM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=uM(e)).r,(t=uM(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=qM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),GM.prototype=jM.prototype={constructor:GM,count:function(){return this.eachAfter(zM)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return jM(this).eachBefore(HM)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},OM=function(e){
119
119
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
120
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},DI({exports:{}});const WI=3,GI="N";function VI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function UI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=WI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=zn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=NI(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=NI((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=VI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(GI).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var YI,KI=US;YI=KI.createRoot,KI.hydrateRoot;function XI(e,t){const[n,r]=zn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var QI={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const JI=({translator:e})=>(zn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(QI).forEach((t=>{e.add(QI[t])}))}}(e)),[e]),e),ZI=document.createElement("textarea");function eM(e){ZI.value=e,document.body.appendChild(ZI),ZI.select(),ZI.setSelectionRange(0,ZI.value.length),document.execCommand("copy"),document.body.removeChild(ZI)}ZI.style.position="absolute",ZI.style.left="-9999px",ZI.setAttribute("readonly","");function tM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>eM(n))):eM(n))})(r)}})}))}var nM="$$material";const rM=["values","unit","step"],oM=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)=>va({},e,{[t.key]:t.val})),{})};function iM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ba(e,rM),i=oM(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return va({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var aM={borderRadius:4};function lM(e,t){return t?Sa(e,t,{clone:!1}):e}const sM={xs:0,sm:600,md:900,lg:1200,xl:1536},uM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sM[e]}px)`};function cM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||uM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||uM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||sM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function dM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function pM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:dM(e,n)||r,t&&(o=t(o,r,e)),o}function fM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=dM(e.theme,r)||{};return cM(e,i,(e=>{let r=pM(a,o,e);return e===r&&"string"==typeof e&&(r=pM(a,o,`${t}${"default"===e?"":Ua(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const mM={m:"margin",p:"padding"},hM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!gM[e])return[e];e=gM[e]}const[t,n]=e.split(""),r=mM[t],o=hM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),bM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xM(e,t,n,r){var o;const i=null!=(o=dM(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function SM(e){return xM(e,"spacing",8)}function EM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function CM(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=EM(t,n),e)),{})}(vM(n),r);return cM(e,e[n],o)}function wM(e,t){const n=SM(e.theme);return Object.keys(e).map((r=>CM(e,t,r,n))).reduce(lM,{})}function RM(e){return wM(e,bM)}function LM(e){return wM(e,yM)}function kM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?lM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function IM(e){return"number"!=typeof e?e:`${e}px solid`}function MM(e,t){return fM({prop:e,themeKey:"borders",transform:t})}RM.propTypes={},RM.filterProps=bM,LM.propTypes={},LM.filterProps=yM;const _M=MM("border",IM),PM=MM("borderTop",IM),AM=MM("borderRight",IM),DM=MM("borderBottom",IM),TM=MM("borderLeft",IM),OM=MM("borderColor"),NM=MM("borderTopColor"),qM=MM("borderRightColor"),FM=MM("borderBottomColor"),zM=MM("borderLeftColor"),jM=MM("outline",IM),$M=MM("outlineColor"),BM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:EM(t,e)});return cM(e,e.borderRadius,n)}return null};BM.propTypes={},BM.filterProps=["borderRadius"],kM(_M,PM,AM,DM,TM,OM,NM,qM,FM,zM,BM,jM,$M);const HM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xM(e.theme,"spacing",8),n=e=>({gap:EM(t,e)});return cM(e,e.gap,n)}return null};HM.propTypes={},HM.filterProps=["gap"];const WM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xM(e.theme,"spacing",8),n=e=>({columnGap:EM(t,e)});return cM(e,e.columnGap,n)}return null};WM.propTypes={},WM.filterProps=["columnGap"];const GM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xM(e.theme,"spacing",8),n=e=>({rowGap:EM(t,e)});return cM(e,e.rowGap,n)}return null};GM.propTypes={},GM.filterProps=["rowGap"];function VM(e,t){return"grey"===t?t:e}kM(HM,WM,GM,fM({prop:"gridColumn"}),fM({prop:"gridRow"}),fM({prop:"gridAutoFlow"}),fM({prop:"gridAutoColumns"}),fM({prop:"gridAutoRows"}),fM({prop:"gridTemplateColumns"}),fM({prop:"gridTemplateRows"}),fM({prop:"gridTemplateAreas"}),fM({prop:"gridArea"}));function UM(e){return e<=1&&0!==e?100*e+"%":e}kM(fM({prop:"color",themeKey:"palette",transform:VM}),fM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:VM}),fM({prop:"backgroundColor",themeKey:"palette",transform:VM}));const YM=fM({prop:"width",transform:UM}),KM=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||sM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:UM(t)}};return cM(e,e.maxWidth,t)}return null};KM.filterProps=["maxWidth"];const XM=fM({prop:"minWidth",transform:UM}),QM=fM({prop:"height",transform:UM}),JM=fM({prop:"maxHeight",transform:UM}),ZM=fM({prop:"minHeight",transform:UM});fM({prop:"size",cssProperty:"width",transform:UM}),fM({prop:"size",cssProperty:"height",transform:UM});kM(YM,KM,XM,QM,JM,ZM,fM({prop:"boxSizing"}));var e_={border:{themeKey:"borders",transform:IM},borderTop:{themeKey:"borders",transform:IM},borderRight:{themeKey:"borders",transform:IM},borderBottom:{themeKey:"borders",transform:IM},borderLeft:{themeKey:"borders",transform:IM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:IM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BM},color:{themeKey:"palette",transform:VM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:VM},backgroundColor:{themeKey:"palette",transform:VM},p:{style:LM},pt:{style:LM},pr:{style:LM},pb:{style:LM},pl:{style:LM},px:{style:LM},py:{style:LM},padding:{style:LM},paddingTop:{style:LM},paddingRight:{style:LM},paddingBottom:{style:LM},paddingLeft:{style:LM},paddingX:{style:LM},paddingY:{style:LM},paddingInline:{style:LM},paddingInlineStart:{style:LM},paddingInlineEnd:{style:LM},paddingBlock:{style:LM},paddingBlockStart:{style:LM},paddingBlockEnd:{style:LM},m:{style:RM},mt:{style:RM},mr:{style:RM},mb:{style:RM},ml:{style:RM},mx:{style:RM},my:{style:RM},margin:{style:RM},marginTop:{style:RM},marginRight:{style:RM},marginBottom:{style:RM},marginLeft:{style:RM},marginX:{style:RM},marginY:{style:RM},marginInline:{style:RM},marginInlineStart:{style:RM},marginInlineEnd:{style:RM},marginBlock:{style:RM},marginBlockStart:{style:RM},marginBlockEnd:{style:RM},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:HM},rowGap:{style:GM},columnGap:{style:WM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:UM},maxWidth:{style:KM},minWidth:{transform:UM},height:{transform:UM},maxHeight:{transform:UM},minHeight:{transform:UM},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function t_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=dM(n,l)||{};if(u)return u(o);return cM(o,t,(t=>{let n=pM(c,s,t);return t===n&&"string"==typeof t&&(n=pM(c,s,`${e}${"default"===t?"":Ua(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:e_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=lM(s,e(n,o,i,a));else{const e=cM({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=lM(s,e):s[n]=t({sx:o,theme:i})}else s=lM(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const n_=t_();n_.filterProps=["sx"];var r_=n_;function o_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const i_=["breakpoints","palette","spacing","shape"];function a_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ba(e,i_),l=iM(n),s=function(e=8){if(e.mui)return e;const t=SM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Sa({breakpoints:l,direction:"ltr",components:{},palette:va({mode:"light"},r),spacing:s,shape:va({},aM,i)},a);return u.applyStyles=o_,u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=va({},e_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return r_({sx:e,theme:this})},u}var l_=Object.freeze({__proto__:null,default:a_,private_createBreakpoints:iM,unstable_applyStyles:o_});function s_(e=null){const t=zn.useContext(ea);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const u_=a_();function c_(e=u_){return s_(e)}const d_=["sx"],p_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:e_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function f_(e){const{sx:t}=e,n=ba(e,d_),{systemProps:r,otherProps:o}=p_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ya(n)?va({},r,n):r}:va({},r,t),va({},o,{sx:i})}var m_=Object.freeze({__proto__:null,default:r_,extendSxProp:f_,unstable_createStyleFunctionSx:t_,unstable_defaultSxConfig:e_});const h_=["className","component"];function g_({props:e,name:t,defaultTheme:n,themeId:r}){let o=c_(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function v_(e){if(e.type)return e;if("#"===e.charAt(0))return v_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(wr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(wr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function b_(e,t){return e=v_(e),t=function(e,t=0,n=1){return wl(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const y_=["value"],x_=zn.createContext();function S_(e){let{value:t}=e,n=ba(e,y_);return js.jsx(x_.Provider,va({value:null==t||t},n))}const E_={};function C_(e,t,n,r=!1){return zn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?va({},t,{[e]:i}):i;return r?()=>a:a}return va({},t,e?{[e]:n}:n)}),[e,t,n,r])}function w_(e){const{children:t,theme:n,themeId:r}=e,o=s_(E_),i=cu()||E_,a=C_(r,o,n),l=C_(r,i,n,!0),s="rtl"===a.direction;return js.jsx(pu,{theme:l,children:js.jsx(ea.Provider,{value:a,children:js.jsx(S_,{value:s,children:t})})})}var R_={},L_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(L_);var k_=L_.exports,I_=r(Rr),M_=r(Rl),__=k_;Object.defineProperty(R_,"__esModule",{value:!0});var P_=R_.alpha=W_;R_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=z_(e),a=z_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return $_({type:"rgb",values:l})},R_.colorChannel=void 0;var A_=R_.darken=G_;R_.decomposeColor=z_,R_.emphasize=U_;var D_=R_.getContrastRatio=function(e,t){const n=H_(e),r=H_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};R_.getLuminance=H_,R_.hexToRgb=F_,R_.hslToRgb=B_;var T_=R_.lighten=V_;R_.private_safeAlpha=function(e,t,n){try{return W_(e,t)}catch(t){return e}},R_.private_safeColorChannel=void 0,R_.private_safeDarken=function(e,t,n){try{return G_(e,t)}catch(t){return e}},R_.private_safeEmphasize=function(e,t,n){try{return U_(e,t)}catch(t){return e}},R_.private_safeLighten=function(e,t,n){try{return V_(e,t)}catch(t){return e}},R_.recomposeColor=$_,R_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=z_(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 O_=__(I_),N_=__(M_);function q_(e,t=0,n=1){return(0,N_.default)(e,t,n)}function F_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function z_(e){if(e.type)return e;if("#"===e.charAt(0))return z_(F_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,O_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,O_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const j_=e=>{const t=z_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};R_.colorChannel=j_;function $_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function B_(e){e=z_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),$_({type:l,values:s})}function H_(e){let t="hsl"===(e=z_(e)).type||"hsla"===e.type?z_(B_(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 W_(e,t){return e=z_(e),t=q_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$_(e)}function G_(e,t){if(e=z_(e),t=q_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $_(e)}function V_(e,t){if(e=z_(e),t=q_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $_(e)}function U_(e,t=.15){return H_(e)>.5?G_(e,t):V_(e,t)}R_.private_safeColorChannel=(e,t)=>{try{return j_(e)}catch(t){return e}};var Y_={black:"#000",white:"#fff"};var K_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var X_={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Q_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var J_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Z_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var eP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var tP={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const nP=["mode","contrastThreshold","tonalOffset"],rP={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:Y_.white,default:Y_.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}},oP={text:{primary:Y_.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:Y_.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 iP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=T_(e.main,o):"dark"===t&&(e.dark=A_(e.main,i)))}function aP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ba(e,nP),i=e.primary||function(e="light"){return"dark"===e?{main:Z_[200],light:Z_[50],dark:Z_[400]}:{main:Z_[700],light:Z_[400],dark:Z_[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:X_[200],light:X_[50],dark:X_[400]}:{main:X_[500],light:X_[300],dark:X_[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Q_[500],light:Q_[300],dark:Q_[700]}:{main:Q_[700],light:Q_[400],dark:Q_[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:eP[400],light:eP[300],dark:eP[700]}:{main:eP[700],light:eP[500],dark:eP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tP[400],light:tP[300],dark:tP[700]}:{main:tP[800],light:tP[500],dark:tP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:J_[400],light:J_[300],dark:J_[700]}:{main:"#ed6c02",light:J_[500],dark:J_[900]}}(t);function d(e){return D_(e,oP.text.primary)>=n?oP.text.primary:rP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=va({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return iP(e,"light",o,r),iP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:oP,light:rP};return Sa(va({common:va({},Y_),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:K_,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const lP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sP={textTransform:"uppercase"},uP='"Roboto", "Helvetica", "Arial", sans-serif';function cP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=uP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=ba(n,lP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return va({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===uP?{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,sP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,sP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sa(va({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function dP(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var pP=["none",dP(0,2,1,-1,0,1,1,0,0,1,3,0),dP(0,3,1,-2,0,2,2,0,0,1,5,0),dP(0,3,3,-2,0,3,4,0,0,1,8,0),dP(0,2,4,-1,0,4,5,0,0,1,10,0),dP(0,3,5,-1,0,5,8,0,0,1,14,0),dP(0,3,5,-1,0,6,10,0,0,1,18,0),dP(0,4,5,-2,0,7,10,1,0,2,16,1),dP(0,5,5,-3,0,8,10,1,0,3,14,2),dP(0,5,6,-3,0,9,12,1,0,3,16,2),dP(0,6,6,-3,0,10,14,1,0,4,18,3),dP(0,6,7,-4,0,11,15,1,0,4,20,3),dP(0,7,8,-4,0,12,17,2,0,5,22,4),dP(0,7,8,-4,0,13,19,2,0,5,24,4),dP(0,7,9,-4,0,14,21,2,0,5,26,4),dP(0,8,9,-5,0,15,22,2,0,6,28,5),dP(0,8,10,-5,0,16,24,2,0,6,30,5),dP(0,8,11,-5,0,17,26,2,0,6,32,5),dP(0,9,11,-5,0,18,28,2,0,7,34,6),dP(0,9,12,-6,0,19,29,2,0,7,36,6),dP(0,10,13,-6,0,20,31,3,0,8,38,7),dP(0,10,13,-6,0,21,33,3,0,8,40,7),dP(0,10,14,-6,0,22,35,3,0,8,42,7),dP(0,11,14,-7,0,23,36,3,0,9,44,8),dP(0,11,15,-7,0,24,38,3,0,9,46,8)];const fP=["duration","easing","delay"],mP={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)"},hP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gP(e){return`${Math.round(e)}ms`}function vP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bP(e){const t=va({},mP,e.easing),n=va({},hP,e.duration);return va({getAutoHeightDuration:vP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ba(r,fP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:gP(o)} ${i} ${"string"==typeof a?a:gP(a)}`)).join(",")}},e,{easing:t,duration:n})}var yP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const xP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ba(e,xP);if(e.vars)throw new Error(wr(18));const l=aP(r),s=a_(e);let u=Sa(s,{mixins:(c=s.breakpoints,d=n,va({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:pP.slice(),typography:cP(l,i),transitions:bP(o),zIndex:va({},yP)});var c,d;return u=Sa(u,a),u=t.reduce(((e,t)=>Sa(e,t)),u),u.unstable_sxConfig=va({},e_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return r_({sx:e,theme:this})},u}var EP=SP();function CP(){const e=c_(EP);return e[nM]||e}function wP({props:e,name:t}){return g_({props:e,name:t,defaultTheme:EP,themeId:nM})}var RP,LP={},kP={exports:{}};var IP,MP={exports:{}};var _P=r(ga),PP=r(Ca),AP=r(Ya),DP=r(Va),TP=r(l_),OP=r(m_),NP=k_;Object.defineProperty(LP,"__esModule",{value:!0});var qP=LP.default=function(e={}){const{themeId:t,defaultTheme:n=KP,rootShouldForwardProp:r=YP,slotShouldForwardProp:o=YP}=e,i=e=>(0,HP.default)((0,FP.default)({},e,{theme:QP((0,FP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,jP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=JP(XP(s))}=a,p=(0,zP.default)(a,VP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=YP;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,jP.default)(e,(0,FP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$P.isPlainObject)(e)?r=>ZP(e,(0,FP.default)({},r,{theme:QP({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=QP((0,FP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=ZP(n,(0,FP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=QP((0,FP.default)({},e,{defaultTheme:n,themeId:t}));return ZP({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,FP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};LP.shouldForwardProp=YP,LP.systemDefaultTheme=void 0;var FP=NP((RP||(RP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(kP)),kP.exports)),zP=NP((IP||(IP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(MP)),MP.exports)),jP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=UP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(_P),$P=PP;NP(AP),NP(DP);var BP=NP(TP),HP=NP(OP);const WP=["ownerState"],GP=["variants"],VP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UP(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(UP=function(e){return e?n:t})(e)}function YP(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const KP=LP.systemDefaultTheme=(0,BP.default)(),XP=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function QP({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function JP(e){return e?(t,n)=>n[e]:null}function ZP(e,t){let{ownerState:n}=t,r=(0,zP.default)(t,WP);const o="function"==typeof e?e((0,FP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>ZP(e,(0,FP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,zP.default)(o,GP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,FP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,FP.default)({ownerState:n},r,n)):e.style))})),t}return o}var eA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var tA=qP({themeId:nM,defaultTheme:EP,rootShouldForwardProp:eA});const nA=["theme"];function rA(e){let{theme:t}=e,n=ba(e,nA);const r=t[nM];return js.jsx(w_,va({},n,{themeId:r?nM:void 0,theme:r||t}))}var oA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const iA=mc(UC,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),aA=mc(UC)({position:"absolute",height:"100%",width:"3px"}),lA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=zn.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};XI((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,tt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:nt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{Lk(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{Lk(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Je.LEFT||e.key===Je.RIGHT){Lk(e);const t=5,n=e.key===Je.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Je.SPACE||e.key===Je.ENTER?(Lk(e),l(e),g()):e.key===Je.ESC&&(Lk(e),l(e),h(c.current.initWidth))}:void 0;return jn.createElement(iA,{className:Ze,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":Ze},jn.createElement(aA,{className:et}))};function sA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),cA=zn.forwardRef(uA);function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dA.apply(null,arguments)}const pA=mc(UC,{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"}))),fA=mc(cA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),mA=mc(wR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),hA=mc(vw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),gA=mc(MR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),vA=mc(MR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),bA=mc("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),yA=mc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),xA=mc(YE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),SA=mc(Qw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function EA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),wA=zn.forwardRef(CA);let RA={};const LA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=zn.useState(!1),p=zn.useRef(null),f=zn.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return jn.createElement(jn.Fragment,null,jn.createElement(vA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),RA={}),null!=a&&a.length&&(d(!0),RA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&jn.createElement(bA,null),jn.createElement(yA,null,jn.createElement(SA,null,jn.createElement(o,null)),jn.createElement(xA,{variant:"body2"},r)),null!=a&&a.length?jn.createElement(wA,null):null),(null==a?void 0:a.length)&&jn.createElement(MA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=RA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},kA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&jn.createElement(gA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>jn.createElement(LA,dA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),IA={appear:200,enter:200,exit:100},MA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?jn.createElement(mA,dA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:IA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[kA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?jn.createElement(hA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,_A={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},PA=(e,t)=>e.some((e=>t[e]>0));function AA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),TA=zn.forwardRef(DA);function OA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),qA=zn.forwardRef(NA);function FA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),jA=zn.forwardRef(zA);function $A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),HA=zn.forwardRef(BA);function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),VA=zn.forwardRef(GA);function UA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),KA=zn.forwardRef(YA);function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),JA=zn.forwardRef(QA);function ZA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eD=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),tD=zn.forwardRef(eD);function nD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rD=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),oD=zn.forwardRef(rD);function iD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aD=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),lD=zn.forwardRef(aD);let sD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const uD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[sD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.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)),r(!1)},icon:TA,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e)),r(!1)},icon:HA,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[sD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:VA,enabled:!0}]}]),n[sD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:KA,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:oD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:JA,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:tD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:qA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[sD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:jA,enabled:!0}]}]),d},cD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=JI({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=zn.useState(null),[o,i]=zn.useState(_A);return zn.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:zn.useCallback((()=>i(_A)),[]),updateSelectionActionsEnabledStatus:zn.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:PA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:PA(["qSelected"],n.qStateCounts),canSelectPossible:PA(["qOption"],n.qStateCounts),canSelectAlternative:PA(["qAlternative"],n.qStateCounts),canSelectExcluded:PA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=zn.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,v,g]);zn.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=zn.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?jn.createElement(pA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&jn.createElement(fA,{height:Ke,className:Xe,"data-testid":Xe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},jn.createElement(cA,null)),jn.createElement(MA,{open:e,anchorEl:n.current,onClose:C,menuGroups:uD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},dD=e=>e.isDark?{background:e.color,borderColor:xL.DARK_MODE_BORDER,color:xL.DARK_MODE_TEXT,disabledColor:xL.DARK_MODE_DISABLED,iconColor:xL.DARK_MODE_TEXT}:{background:e.color,borderColor:xL.BORDER_MEDIUM,color:xL.TEXT,disabledColor:xL.DISABLED},pD=mc(UC,{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}`}))),fD=mc(fL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),mD=mc(ow,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),hD=mc(YE)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=zn.useMemo((()=>dD(r.background)),[r]);if(!n.active)return null;const a=o?jn.createElement(pD,{footerStyle:i},e):null;return t?YS.createPortal(e,t):a},vD={},bD=zn.createContext(vD),yD=()=>zn.useContext(bD),xD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=zn.useMemo((()=>dD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=JI({translator:d}),x=zn.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return jn.createElement(bD.Provider,{value:x},e)};let SD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ED=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 CD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wD=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),RD=zn.forwardRef(wD);function LD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kD=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),ID=zn.forwardRef(kD);function MD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _D=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),PD=zn.forwardRef(_D),AD={FirstPage:ID,PreviousPage:RD,NextPage:wA,LastPage:PD,FirstPageRTL:PD,PreviousPageRTL:wA,NextPageRTL:RD,LastPageRTL:ID},DD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yD(),u=AD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},TD=()=>{const{pageInfo:e,width:t}=yD(),n=0===e.page,{IconComponent:r,styledProps:o}=DD({type:SD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ED.FirstPage?null:jn.createElement(mD,o,jn.createElement(r,{height:Ke}))},OD=(e,t,n=!1)=>{n&&e.key===Je.TAB&&!e.shiftKey&&(Lk(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},ND=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=DD({type:SD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>OD(e,t,r):null;return o<=ED.LastPage?null:jn.createElement(mD,dA({},l,{onKeyDown:s}),jn.createElement(a,{height:Ke}))},qD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=DD({type:SD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ED.FirstPage&&o>ED.LastPage)&&t.enabled?e=>OD(e,t,r):null;return jn.createElement(mD,dA({},l,{onKeyDown:s}),jn.createElement(a,{height:Ke}))},FD=()=>{const{pageInfo:e}=yD(),t=0===e.page,{IconComponent:n,styledProps:r}=DD({type:SD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return jn.createElement(mD,r,jn.createElement(n,{height:Ke}))},zD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yD(),{page:o,rowsPerPage:i}=n;if(t<=ED.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return jn.createElement(hD,{variant:"caption"},a)},jD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return jn.createElement(jn.Fragment,null,jn.createElement(hD,{variant:"caption",id:d},u,":"),jn.createElement(fD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},$D=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=yD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ED.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=jn.createElement(jn.Fragment,null,t.rowsPerPageOptions.map((e=>jn.createElement("option",{key:e,value:e},e))));return jn.createElement(jD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},BD=1e3,HD="…",WD=({totalPages:e,page:t})=>{const n=Math.min(e,BD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-BD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return jn.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(jn.createElement("option",{key:"startMoreOptions",value:HD,disabled:!0},HD)),o<e-1&&a.push(jn.createElement("option",{key:"endMoreOptions",value:HD,disabled:!0},HD)),jn.createElement(jn.Fragment,null,a)},GD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yD(),{page:o}=e;if(t<=ED.SelectPage)return null;const i=jn.createElement(WD,{totalPages:n,page:o});return jn.createElement(jD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},VD=e=>jn.createElement(xD,e,jn.createElement($D,null),jn.createElement(GD,null),jn.createElement(zD,null),jn.createElement(TD,null),jn.createElement(FD,null),jn.createElement(qD,null),jn.createElement(ND,null));var UD=zn.memo(VD);const YD=e=>jn.createElement(gD,e,jn.createElement(UD,e)),KD={},XD=zn.createContext(KD),QD=()=>zn.useContext(XD),JD=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=zn.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return js.jsx(XD.Provider,{value:u,children:e})},ZD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=QD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:vt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:js.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:js.jsx("span",{style:{...kt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},eT={},tT=zn.createContext(eT),nT=()=>zn.useContext(tT),rT=({children:e,styleService:t})=>js.jsx(tT.Provider,{value:t,children:e}),oT=21,iT=20,aT=iT,lT=16+St+1,sT=.75;let uT=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),cT=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const dT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===uT.Image},pT="/qHyperCubeDef",fT=-1,mT="PSEUDO-DIM",hT=e=>void 0===e?bt:e,gT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,vT=e=>gT(e,tt.PixelsDefault),bT=(e,t)=>gT(e,tt.PercentageDefault)*t/100,yT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return vT(t.pixels);case nt.Percentage:return bT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},xT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===mT)return e+0;const m=n(p),h=!u&&f&&d<s-1?oT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+lT+h+m+g)}),0),ST=(e,t)=>e.reduce(((e,n)=>Math.max(e,lT+t(n.qFallbackTitle))),0),ET=(e,t,n,r)=>{const o=100*e/t,i=r*sT*(o/100),a=n*(o/100);return Math.min(a,i)},CT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),wT=(e,t)=>e.some((e=>e===t*sT)),RT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l})=>{let s=[];const u=r*sT,c=t.data[t.data.length-1][0],d=Math.min(u,n.at(-1)),p=Math.min(u,xT({headers:c,layoutService:e,estimateWidthForDimensionValue:a})),f=Math.min(u,ST(e.visibleMeasureInfo,i));let m=0;const h=c.findIndex((e=>e.id===mT));if(e.hasPseudoDimOnLeft)if(0===h){const e=Math.max(d,p,f);s=[Math.max(24,e-d),d]}else{const t=Math.min(u,ST(e.visibleMeasureInfo,l));m=Math.min(u,xT({headers:c.slice(0,h),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(d,p,m);s=[Math.max(24,n-d),d]}else s=[Math.max(24,p-d),d];const g=Math.min(u,s.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:v}=e;o&&o<=u&&(v.type=nt.Pixels,v.pixels=o);return[nt.Pixels,nt.Percentage].includes(v.type)||wT(s,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=wT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=ET(e[0],l,u,n),i=ET(e[1],l,u,n)),s===nt.Percentage&&c&&(o=CT(e[0],l,c,n),i=CT(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(s,v,r,d):{leftGridWidth:g,leftGridColumnWidths:s,leftGridFullWidth:g}};function LT({layoutService:e,tableWidth:t,headersData:n}){const r=t*sT,o=nT(),{measureText:i}=UI(o.header),{estimateWidth:a,measureText:l}=UI({...o.dimensionValues,fontWeight:hT(o.dimensionValues.fontWeight)}),{measureText:s}=UI({...o.dimensionValues,...o.measureLabels}),u=zn.useCallback(((o,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:c,topHeadersColumnWidth:d}},visibleMeasureInfo:p,isFullyExpanded:f,isIndentModeEnabled:m}=e,h=(e=0)=>p.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=s(r)+lT,a=Math.max(i,e);return Math.max(n,m?a:yT(t,o,a))}),0),g=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===mT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?aT:0;return lT+i(t)+iT+r})(r);return Math.max(o,t)}),0);let v=0,b=n.data.at(-1);m&&n.size.x>1&&b&&b[0]&&(b=b[0]);const y=b.map(((i,l)=>{let s=lT;if((!m||m&&1===n.size.x)&&o&&void 0!==u&&u===i.colIdx)s=m?Math.min(r,o):o;else{let r;i.columnWidthLocation===Ge.Pivot?r=d:i.columnWidthLocation===Ge.Dimension&&({columnWidth:r}=i);let o=0;i.isLeftDimension?o=i.id===mT?h():Math.max(g(l),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,l=e.getDimensionInfo(i);if(dT(l))return tt.PixelsDefault;const s=!f&&o&&n<c-1?oT:0;return lT+a(r)+s})(i,l)):i.isLeftDimension||(o=g(l),i.columnWidthLocation===Ge.Measures&&(o=h(o))),m&&1===n.size.x&&(r=e.indentModeColumnWidth),s=yT(t,r,o)}return v+=s,s}));return m&&n.size.x>1?RT({layoutService:e,headersData:n,columnWidths:y,tableWidth:t,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l}):{leftGridWidth:Math.min(r,v),leftGridColumnWidths:y,leftGridFullWidth:v}}),[t,n,e,r,i,s,a,l]),[c,d]=zn.useState(u);XI((()=>{d(u())}),[u]);const p=zn.useCallback(((e,t)=>{d(u(e,t))}),[u]);return{...c,overrideLeftGridWidth:p}}function kT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=nT(),{estimateWidth:c,measureText:d}=UI(u.measureValues),{estimateWidth:p}=UI({...u.dimensionValues,fontWeight:hT(u.dimensionValues.fontWeight)}),f=t-o-St,m=n.at(-1),h=m===fT,g=a.length-i>n.length?oT:0,v=zn.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(tt.PixelsMax,Math.max(tt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case nt.Pixels:i(t,vT(o));break;case nt.Percentage:i(t,bT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:lT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,dT(e)));break;case nt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(tt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=zn.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=zn.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let IT;const MT=new Uint8Array(16);function _T(){if(!IT&&(IT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!IT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return IT(MT)}const PT=[];for(let e=0;e<256;++e)PT.push((e+256).toString(16).slice(1));var AT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DT(e,t,n){if(AT.randomUUID&&!t&&!e)return AT.randomUUID();const r=(e=e||{}).random||(e.rng||_T)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return PT[e[t+0]]+PT[e[t+1]]+PT[e[t+2]]+PT[e[t+3]]+"-"+PT[e[t+4]]+PT[e[t+5]]+"-"+PT[e[t+6]]+PT[e[t+7]]+"-"+PT[e[t+8]]+PT[e[t+9]]+"-"+PT[e[t+10]]+PT[e[t+11]]+PT[e[t+12]]+PT[e[t+13]]+PT[e[t+14]]+PT[e[t+15]]}(r)}const TT=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:DT()},OT=e=>e===fT?mT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:TT()})(e),NT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===fT?n.columnWidthLocation=Ge.Measures:n.isLeftDimension?n.columnWidthLocation=Ge.Dimension:t.at(-1)===fT?n.columnWidthLocation=Ge.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ge.Pivot))},qT=(e,t,n)=>{var r;const o=OT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===fT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},FT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===fT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=qT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=qT(e,t,o)})),l},zT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(fT)?FT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(FT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)NT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else NT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function jT(e){return jT="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},jT(e)}function $T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function HT(e,t,n){return t&&BT(e.prototype,t),n&&BT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WT(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&&VT(e,t)}function GT(e){return GT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GT(e)}function VT(e,t){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VT(e,t)}function UT(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function YT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GT(e);if(t){var o=GT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return UT(this,n)}}function KT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return XT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XT(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var QT={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:JT(e),value:JT(t),useEqualSign:n}}(n,o,i))}})),t}};function JT(e){try{return decodeURIComponent(e)}catch(t){return e}}function ZT(e){if(!(this instanceof ZT))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return QT.fromSearchString(t.search)}}})}function eO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ZT.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ZT.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=eO((t=e[r]).key),t.value?n+="=".concat(eO(t.value)):n+=t.useEqualSign?"=":"";return n};var tO,nO=function(){function e(t){$T(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return HT(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),rO=function(){function e(){$T(this,e)}return HT(e,[{key:"decode",value:function(e){for(var t,n="",r=new nO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),oO=function(e){return e>=0&&e<=1114111},iO=function(e){return e.match(/[\s]/)},aO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!iO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return oO(a)?String.fromCharCode(a):"�"}}]),n}(rO),lO=function(){function e(t,n){$T(this,e),this._key=t,this._value=n}return HT(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),sO=function(){function e(){$T(this,e)}return HT(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return lO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return lO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||lO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),uO=function(){function e(){$T(this,e),this.clear()}return HT(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new sO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),cO=function(){var e,t,n,r=[],o=[],i=new uO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),dO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,cO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=cO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&oO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&oO(r)?String.fromCharCode(r):null}}]),n}(rO),pO=function(e){WT(n,e);var t=YT(n);function n(){return $T(this,n),t.apply(this,arguments)}return HT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),oO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(rO),fO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(tO=document.createElement("div"));var mO=Array.prototype.indexOf,hO=[",",".","_"," "],gO={default:[",",".","-","_"," "]},vO={width:["%"],height:["%"]},bO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":bO.image,"background-color":bO.color,"border-color":bO.color,"border-image":bO.image,color:bO.color,icon:bO.image,"list-style-image":bO.image,"outline-color":bO.color},xO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SO(e,t,n){var r;if(t){if(mO)return mO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function EO(e){if(null==e)return"";var t,n=document.createTextNode(e);return tO.appendChild(n),t=tO.innerHTML,tO.removeChild(n),t}function CO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=RO(e).toLowerCase(),t=RO(t),SO(e,xO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<xO.attr_val;i++)if(t.toLowerCase().match(xO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=vO[e])||(r=gO.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&SO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function wO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=RO(e).toLowerCase(),t=RO(t),SO(e,xO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<xO.css_val.length;r++)if(t.toLowerCase().indexOf(xO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=yO[e])||(o=bO.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&SO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function RO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new dO,new pO,new aO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var LO=[],kO=0;kO<255;kO++)LO[kO]=kO>=48&&kO<=57||kO>=65&&kO<=90||kO>=97&&kO<=122?null:kO.toString(16);var IO=function(e){return EO(e.unsafe)},MO=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=wO(t,n[t],!0),i+=wO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},_O=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=CO(i,t[i],!0),o+=CO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function PO(e,t){throw new Error(t)}var AO={canonicalize:RO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===jT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?IO(e):"css"===e.context?(null!=e.map&&"object"!==jT(e.map)&&PO(this,"Invalid parameter type"),MO(e)):"attr"===e.context?(null!=e.map&&"object"!==jT(e.map)&&PO(this,"Invalid parameter type"),_O(e)):void PO(this,"Invalid parameter type")},encodeForAttr:CO,encodeForAttr2:function(e){return CO("nonsens",e,!0)},encodeForCSS:wO,encodeForHref:function(e){RO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ZT(e),n=ZT.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+ZT.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=hO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),SO(o,t)>=0||null==LO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:EO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=RO(t).toLowerCase():PO(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=KT(null!==(t=fO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const DO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},TO=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"}}},OO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&AO.isSafeDataURL(t)?{type:uT.Image,url:t,text:e,imageSize:n,resolvedImagePosition:TO(r)}:{type:uT.Text,url:void 0,text:e},NO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===cT.Attribute||null==n?void 0:n.urlLabel},qO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:uT.Link,url:AO.encodeForHref(t),text:e}}catch(t){return{type:uT.Text,url:void 0,text:e}}},FO=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return uT.Link;case"image":return uT.Image;default:return uT.Text}})(t);return a!==uT.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===uT.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===cT.Attribute){var o;const r=NO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return qO({text:i,url:r})}if(r===cT.Dimension){var i;const r=NO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return qO({text:r,url:e.qText})}return{type:uT.Text,url:void 0,text:e.qText}})(e,t,n):{type:uT.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=DO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return OO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return OO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=DO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return OO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:uT.Text,url:void 0,text:e.qText}})(e,t,n)},zO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Rk(s):null,c=l?Rk(l):null,d=((e,t)=>e||!t?null:Sk(t)?xL.WHITE:xL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},jO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:jO(e,t)),e),$O=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:yt-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,jO(l,e))},BO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=!c&&e.qType===it.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:TT(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:$O(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===it.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===it.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===it.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:zO(s,e),selectionCellType:u?ot.NX_CELL_LEFT:ot.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:FO({...e,qText:h},l===fT?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},HO=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(fT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===it.NX_DIM_CELL_NORMAL||p.qType===it.NX_DIM_CELL_NULL||p.qType===it.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===it.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?BO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},WO=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},GO=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},VO=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=HO(e.grid,l,s,n,r,o,i,a);WO(u,n.rowsOnCurrentPage);const c=GO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},UO=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===it.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:TT(),ref:t,isNull:u}}))})),o},YO=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?UO({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},KO=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:BO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},XO=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=KO(e.grid,s,u,n,r,o,i,a,l);WO(c,n.size.x);const d=GO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},QO=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),JO=(e,t,n,r,o)=>{const{env:i}=QD(),[a,l]=zn.useState(null),s=((e,t,n)=>zn.useMemo((()=>({left:e.map(QO),top:t.map(QO),measures:n.map(QO)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=zn.useMemo((()=>zT(t,o,r)),[t,o,r]),c=zn.useCallback((()=>e.slice(1).reduce(((e,t)=>YO({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return UO({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=zn.useCallback((()=>e.slice(1).reduce(((e,r)=>XO({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=KO([],s,l,t,n,r,o,i,a);WO(u,t.size.x);const c=GO(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=zn.useCallback((()=>e.slice(1).reduce(((e,o)=>VO({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=HO([],l,a,n,t,r,o,i);WO(s,n.rowsOnCurrentPage);const u=GO(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=zn.useState((()=>c())),[h,g]=zn.useState((()=>d())),[v,b]=zn.useState((()=>p()));XI((()=>{m(c())}),[c]),XI((()=>{g(d())}),[d]),XI((()=>{b(p())}),[p]),XI((()=>{a&&a.forEach((e=>{m((t=>YO({prevData:t,dataPage:e,pageInfo:n}))),g((r=>XO({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>VO({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=zn.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},ZO=Math.sqrt(1e4),eN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),tN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/ZO),r=Math.ceil(e.qHeight/ZO);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*ZO,qTop:e.qTop+n*ZO,qWidth:Math.min(ZO,e.qWidth-o*ZO),qHeight:Math.min(ZO,e.qHeight-n*ZO)});return t};function nN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=zn.useRef(e);return t.current=e,t})(n.page),i=e,a=zn.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,pT,e,t,!1))}),[i]),l=zn.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(pT,e,t,!1))}),[i]),s=zn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(pT,e,t,!1))}),[i]),u=zn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(pT,e,t,!1))}),[i]),c=zn.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(pT,e.reduce(((e,t)=>[...e,...tN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=zn.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ge.Dimension:c=[{qPath:`${pT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ge.Measures:if(o)c=l.map(((e,t)=>({qPath:`${pT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${pT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ge.Pivot:c=[{qPath:`${pT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=zn.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${pT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return zn.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const rN=(e,t)=>e>t?Ye.Forward:e<t?Ye.Backward:Ye.None,oN=(e,t,n)=>(r,o)=>{if(r===it.NX_DIM_CELL_PSEUDO)return fT;const i=t[n+o];return e[i]},iN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},aN=({width:e,height:t,children:n,isLeftGrid:r})=>js.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+St},children:n}),lN=e=>`scrollable-container--${e}`,sN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=QD();return js.jsx("div",{ref:t,"data-key":lN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var uN=jn.forwardRef(sN);const cN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>js.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function dN(){return dN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dN.apply(this,arguments)}function pN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fN(e,t){return fN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fN(e,t)}function mN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fN(e,t)}var hN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||hN(r)&&hN(o)))return!1;var r,o;return!0}function vN(e,t){var n;void 0===t&&(t=gN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function bN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var yN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function xN(e){cancelAnimationFrame(e.id)}function SN(e,t){var n=yN();var r={id:requestAnimationFrame((function o(){yN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var EN=-1;function CN(e){if(void 0===e&&(e=!1),-1===EN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),EN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return EN}var wN=null;function RN(e){if(void 0===e&&(e=!1),null===wN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?wN="positive-descending":(t.scrollLeft=1,wN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wN}return wN}var LN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function kN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,pN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:pN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=vN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=vN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=vN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(RN()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&xN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=SN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}mN(t,e),t.getDerivedStateFromProps=function(e,t){return IN(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=CN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(RN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&xN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?LN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var M=E;M<=C;M++)k.push(zn.createElement(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return zn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:dN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},zn.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(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,m+g)),d,m]},t}(zn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var IN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},_N=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},PN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},AN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?DN(e,t,n,i,0,r):TN(e,t,n,Math.max(0,i),r)},DN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=PN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},TN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&PN(e,t,r,n).offset<o;)r+=a,a*=2;return DN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},ON=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=PN(e,t,n,i),u="column"===e?_N(t,i):MN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},NN=kN({getColumnOffset:function(e,t,n){return PN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return AN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=PN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=PN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:MN,getEstimatedTotalWidth:_N,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return ON("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return ON("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return PN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return AN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=PN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=PN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),qN=function(e,t){return e};function FN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,pN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:pN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=vN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=vN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=vN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(RN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&xN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=SN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}mN(t,e),t.getDerivedStateFromProps=function(e,t){return zN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?CN():0:s.scrollHeight>s.clientHeight?CN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(RN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&xN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?qN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(zn.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return zn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:dN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},zn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(zn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var zN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},$N=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=jN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},BN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&jN(e,n,t).offset<r;)n+=i,i*=2;return $N(e,t,Math.min(n,o-1),Math.floor(n/2),r)},HN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},WN=FN({getItemOffset:function(e,t,n){return jN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:HN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=jN(e,t,o),p=HN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?$N(e,t,o,0,n):BN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=jN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function GN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var VN=["style"],UN=["style"];function YN(e,t){var n=e.style,r=bN(e,VN),o=t.style,i=bN(t,UN);return!GN(n,o)&&!GN(r,i)}const KN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),XN=10,QN=(e,t)=>e.current===Ye.Backward?t:0,JN=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},ZN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,eq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(JN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&ZN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},tq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ye.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return eq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},nq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=QN(n,XN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+XN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=eq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...tq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},rq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},oq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,iq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(rq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&oq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},aq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=QN(n,XN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+XN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=iq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ye.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=iq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},lq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ye.None&&(p=aq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ye.None&&(f=nq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ye.None&&a.current===Ye.None&&(p=iq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},sq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(lq,100),uq=Ce(lq,75),cq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=nT();return js.jsx("div",{style:{...e,...Lt,..._t(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},dq=({children:e,verticalAlign:t,width:n,right:r})=>js.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),pq=e=>{const{type:t,imageSize:n}=e;return t!==uT.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},fq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hq=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),gq=zn.forwardRef(hq);function vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bq=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),yq=zn.forwardRef(bq),xq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ze)};function Sq(e,t){const n=e.isActive(),[r,o]=zn.useState(new Map),[i,a]=zn.useState(null);zn.useEffect((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=zn.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===ot.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=zn.useCallback((t=>async n=>{if(xq(n))return;if(e.isActive()||await e.begin([pT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===ot.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[pT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=zn.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return zn.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Eq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Cq=zn.createContext(Eq),wq=()=>zn.useContext(Cq),Rq=({children:e,selections:t,updatePageInfo:n})=>{const r=Sq(t,n);return js.jsx(Cq.Provider,{value:r,children:e})};var Lq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Lq||(Lq={}));const kq={brighter:.5,darker:.3,opacity:.03},Iq=(e,{cell:t,styleService:n})=>{if(e===Lq.Background||e===Lq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Mq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Iq(Lq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Iq(Lq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${xk(i=o,kq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},_q=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Iq(Lq.Color,{cell:e,styleService:t}),Pq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Iq(Lq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?bt:o},Aq=({cell:e,styleService:t})=>Iq(Lq.FontStyle,{cell:e,styleService:t}),Dq=({cell:e,styleService:t})=>Iq(Lq.TextDecoration,{cell:e,styleService:t}),Tq=e=>e?"pointer":"default",Oq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Nq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===uT.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},qq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=nT(),{interactions:i}=QD(),{isActive:a}=wq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=_q({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?yq:gq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,js.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Nq(e,o)},onClick:l?void 0:Oq({cell:e,expandOrCollapse:d})})},Fq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},zq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},jq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},$q=(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"}},Bq=e=>{if("alwaysFit"===e)return"contain"},Hq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=QD(),t=zn.useRef(null),{promise:n,resolve:r}=zn.useMemo((()=>fq()),[]);return zn.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:zn.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return js.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...jq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:js.jsx("img",{src:s,alt:u,style:{width:zq(c),height:Fq(c),objectFit:Bq(c),objectPosition:$q(c,d),...f},onLoad:l,ref:a})})},Wq=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},Gq={display:"flex",flexDirection:"row",alignItems:"center"},Vq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Uq=(e,t,n,r)=>t?{...Vq,...e.nullValues}:n?{...Gq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Gq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Yq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...kt,...!n&&It(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?bt:s,fontStyle:u,textDecoration:c}},Kq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==uT.Image?Wq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},Xq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=Yq(n,o,i,a,e.isNull);return r.type!==uT.Image||e.isNull?js.jsx("span",{style:{padding:4,...s},children:l}):js.jsx(Hq,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},Qq=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},Jq="flex-start",Zq=(e,t)=>{return e.isNull?Jq:t.type===uT.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Jq;var n},eF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=nT(),{env:a}=QD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return js.jsx(cq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?Qq(g,t):Qq(h,e),E=u.visibleMeasureInfo[S],C=FO(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=zO(v[S],b.ref),I={...Uq(i,b.isNull,w,k.background),..._t(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Lt,padding:"0px 4px",display:"flex",justifyContent:Kq(b,E,C,L,a.flags)};return js.jsx("div",{className:Qe,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:js.jsx(dq,{width:pq(C),verticalAlign:Zq(b,C),children:js.jsx(Xq,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var tF=jn.memo(eF,YN);const nF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},rF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},oF={...Rt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},iF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=nT(),x={...oF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>zn.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return KN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>zn.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return KN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>zn.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=QD();return zn.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ye.None?0:XN),h=e.gridHeight+a+(l.current===Ye.None?0:XN);let g=sq;h*m>1500&&(g=uq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return XI((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),zn.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:js.jsx(NN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:rF,children:tF})};var aF=zn.memo(iF);function lF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sF=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"}),jn.createElement("use",{fillRule:"evenodd"})),uF=zn.forwardRef(sF),cF=e=>{const[t,n]=zn.useState(!1);return XI((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},dF=({interactions:e,dataModel:t})=>{const[n,r]=zn.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=cF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!xq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function pF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Et.Transparent?xL.WHITE:l,u=null===(o=zL(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=zL(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const fF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=QD(),{isActive:u}=wq(),c=nT(),[,d]=zn.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=pF(c,e);return js.jsx(lA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*sT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},mF=e=>e.scrollTop;function hF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function gF(e){return El("MuiPaper",e)}Cl("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 vF=["className","component","elevation","square","variant"],bF=tA("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return va({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&&va({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${P_("#fff",oA(t.elevation))}, ${P_("#fff",oA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var yF=zn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ba(n,vF),u=va({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},gF,o)})(u);return js.jsx(bF,va({as:o,ownerState:u,className:Vs(c.root,r),ref:t},s))}));function xF(e){return"string"==typeof e}function SF(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function EF(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const CF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wF(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ba(e,CF),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=va({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=va({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=SF(va({},o,r)),l=EF(r),s=EF(o),u=t(a),c=Vs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=va({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=va({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(va({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||xF(e)?t:va({},t,{ownerState:va({},t.ownerState,n)})}(n,va({},s,{ref:nl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var RF=Cl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const LF=["center","classes","className"];let kF,IF,MF,_F,PF=e=>e;const AF=ca(kF||(kF=PF`
120
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},OM({exports:{}});const VM=3,UM="N";function YM(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function KM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=VM}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Hn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=FM(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=FM((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=YM(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(UM).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var XM,QM=KS;XM=QM.createRoot,QM.hydrateRoot;function JM(e,t){const[n,r]=Hn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var ZM={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const eI=({translator:e})=>(Hn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ZM).forEach((t=>{e.add(ZM[t])}))}}(e)),[e]),e),tI=document.createElement("textarea");function nI(e){tI.value=e,document.body.appendChild(tI),tI.select(),tI.setSelectionRange(0,tI.value.length),document.execCommand("copy"),document.body.removeChild(tI)}tI.style.position="absolute",tI.style.left="-9999px",tI.setAttribute("readonly","");function rI(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>nI(n))):nI(n))})(r)}})}))}var oI="$$material";const iI=["values","unit","step"],aI=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)=>Xt({},e,{[t.key]:t.val})),{})};function lI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,iI),i=aI(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Xt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var sI={borderRadius:4};function uI(e,t){return t?wa(e,t,{clone:!1}):e}const cI={xs:0,sm:600,md:900,lg:1200,xl:1536},dI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cI[e]}px)`};function pI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||dI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||dI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||cI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function fI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function mI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fI(e,n)||r,t&&(o=t(o,r,e)),o}function hI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fI(e.theme,r)||{};return pI(e,i,(e=>{let r=mI(a,o,e);return e===r&&"string"==typeof e&&(r=mI(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gI={m:"margin",p:"padding"},vI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bI[e])return[e];e=bI[e]}const[t,n]=e.split(""),r=gI[t],o=vI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EI(e,t,n,r){var o;const i=null!=(o=fI(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function CI(e){return EI(e,"spacing",8)}function wI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function RI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=wI(t,n),e)),{})}(yI(n),r);return pI(e,e[n],o)}function LI(e,t){const n=CI(e.theme);return Object.keys(e).map((r=>RI(e,t,r,n))).reduce(uI,{})}function kI(e){return LI(e,xI)}function MI(e){return LI(e,SI)}function II(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?uI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function _I(e){return"number"!=typeof e?e:`${e}px solid`}function PI(e,t){return hI({prop:e,themeKey:"borders",transform:t})}kI.propTypes={},kI.filterProps=xI,MI.propTypes={},MI.filterProps=SI;const AI=PI("border",_I),DI=PI("borderTop",_I),TI=PI("borderRight",_I),OI=PI("borderBottom",_I),NI=PI("borderLeft",_I),qI=PI("borderColor"),FI=PI("borderTopColor"),zI=PI("borderRightColor"),jI=PI("borderBottomColor"),$I=PI("borderLeftColor"),BI=PI("outline",_I),HI=PI("outlineColor"),WI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=EI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wI(t,e)});return pI(e,e.borderRadius,n)}return null};WI.propTypes={},WI.filterProps=["borderRadius"],II(AI,DI,TI,OI,NI,qI,FI,zI,jI,$I,WI,BI,HI);const GI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=EI(e.theme,"spacing",8),n=e=>({gap:wI(t,e)});return pI(e,e.gap,n)}return null};GI.propTypes={},GI.filterProps=["gap"];const VI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=EI(e.theme,"spacing",8),n=e=>({columnGap:wI(t,e)});return pI(e,e.columnGap,n)}return null};VI.propTypes={},VI.filterProps=["columnGap"];const UI=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=EI(e.theme,"spacing",8),n=e=>({rowGap:wI(t,e)});return pI(e,e.rowGap,n)}return null};UI.propTypes={},UI.filterProps=["rowGap"];function YI(e,t){return"grey"===t?t:e}II(GI,VI,UI,hI({prop:"gridColumn"}),hI({prop:"gridRow"}),hI({prop:"gridAutoFlow"}),hI({prop:"gridAutoColumns"}),hI({prop:"gridAutoRows"}),hI({prop:"gridTemplateColumns"}),hI({prop:"gridTemplateRows"}),hI({prop:"gridTemplateAreas"}),hI({prop:"gridArea"}));function KI(e){return e<=1&&0!==e?100*e+"%":e}II(hI({prop:"color",themeKey:"palette",transform:YI}),hI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:YI}),hI({prop:"backgroundColor",themeKey:"palette",transform:YI}));const XI=hI({prop:"width",transform:KI}),QI=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||cI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:KI(t)}};return pI(e,e.maxWidth,t)}return null};QI.filterProps=["maxWidth"];const JI=hI({prop:"minWidth",transform:KI}),ZI=hI({prop:"height",transform:KI}),e_=hI({prop:"maxHeight",transform:KI}),t_=hI({prop:"minHeight",transform:KI});hI({prop:"size",cssProperty:"width",transform:KI}),hI({prop:"size",cssProperty:"height",transform:KI});II(XI,QI,JI,ZI,e_,t_,hI({prop:"boxSizing"}));var n_={border:{themeKey:"borders",transform:_I},borderTop:{themeKey:"borders",transform:_I},borderRight:{themeKey:"borders",transform:_I},borderBottom:{themeKey:"borders",transform:_I},borderLeft:{themeKey:"borders",transform:_I},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_I},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:WI},color:{themeKey:"palette",transform:YI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:YI},backgroundColor:{themeKey:"palette",transform:YI},p:{style:MI},pt:{style:MI},pr:{style:MI},pb:{style:MI},pl:{style:MI},px:{style:MI},py:{style:MI},padding:{style:MI},paddingTop:{style:MI},paddingRight:{style:MI},paddingBottom:{style:MI},paddingLeft:{style:MI},paddingX:{style:MI},paddingY:{style:MI},paddingInline:{style:MI},paddingInlineStart:{style:MI},paddingInlineEnd:{style:MI},paddingBlock:{style:MI},paddingBlockStart:{style:MI},paddingBlockEnd:{style:MI},m:{style:kI},mt:{style:kI},mr:{style:kI},mb:{style:kI},ml:{style:kI},mx:{style:kI},my:{style:kI},margin:{style:kI},marginTop:{style:kI},marginRight:{style:kI},marginBottom:{style:kI},marginLeft:{style:kI},marginX:{style:kI},marginY:{style:kI},marginInline:{style:kI},marginInlineStart:{style:kI},marginInlineEnd:{style:kI},marginBlock:{style:kI},marginBlockStart:{style:kI},marginBlockEnd:{style:kI},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:GI},rowGap:{style:UI},columnGap:{style:VI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:KI},maxWidth:{style:QI},minWidth:{transform:KI},height:{transform:KI},maxHeight:{transform:KI},minHeight:{transform:KI},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function r_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=fI(n,l)||{};if(u)return u(o);return pI(o,t,(t=>{let n=mI(c,s,t);return t===n&&"string"==typeof t&&(n=mI(c,s,`${e}${"default"===t?"":Xa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:n_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=uI(s,e(n,o,i,a));else{const e=pI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=uI(s,e):s[n]=t({sx:o,theme:i})}else s=uI(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const o_=r_();o_.filterProps=["sx"];var i_=o_;function a_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const l_=["breakpoints","palette","spacing","shape"];function s_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,l_),l=lI(n),s=function(e=8){if(e.mui)return e;const t=CI({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},sI,i)},a);return u.applyStyles=a_,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var u_=Object.freeze({__proto__:null,default:s_,private_createBreakpoints:lI,unstable_applyStyles:a_});function c_(e=null){const t=Hn.useContext(ia);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const d_=s_();function p_(e=d_){return c_(e)}const f_=["sx"],m_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:n_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function h_(e){const{sx:t}=e,n=rn(e,f_),{systemProps:r,otherProps:o}=m_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}var g_=Object.freeze({__proto__:null,default:i_,extendSxProp:h_,unstable_createStyleFunctionSx:r_,unstable_defaultSxConfig:n_});const v_=["className","component"];function b_(e){if(e.type)return e;if("#"===e.charAt(0))return b_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Mr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function y_(e,t){return e=b_(e),t=function(e,t=0,n=1){return kl(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var x_=Hn.createContext(null);function S_(){return Hn.useContext(x_)}var E_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function C_(e){const{children:t,theme:n}=e,r=S_(),o=Hn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Xt({},e,t)}(r,n);return null!=e&&(e[E_]=null!==r),e}),[n,r]);return Xs.jsx(x_.Provider,{value:o,children:t})}const w_=["value"],R_=Hn.createContext();function L_(e){let{value:t}=e,n=rn(e,w_);return Xs.jsx(R_.Provider,Xt({value:null==t||t},n))}const k_=Hn.createContext(void 0);function M_({value:e,children:t}){return Xs.jsx(k_.Provider,{value:e,children:t})}function I_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?xl(o.defaultProps,r):o.styleOverrides||o.variants?r:xl(o,r)}({props:e,name:t,theme:{components:Hn.useContext(k_)}})}const __={};function P_(e,t,n,r=!1){return Hn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Xt({},t,{[e]:i}):i;return r?()=>a:a}return Xt({},t,e?{[e]:n}:n)}),[e,t,n,r])}function A_(e){const{children:t,theme:n,themeId:r}=e,o=c_(__),i=S_()||__,a=P_(r,o,n),l=P_(r,i,n,!0),s="rtl"===a.direction;return Xs.jsx(C_,{theme:l,children:Xs.jsx(ia.Provider,{value:a,children:Xs.jsx(L_,{value:s,children:Xs.jsx(M_,{value:null==a?void 0:a.components,children:t})})})})}var D_={},T_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(T_);var O_=T_.exports,N_=r(Ir),q_=r(Ml),F_=O_;Object.defineProperty(D_,"__esModule",{value:!0});var z_=D_.alpha=J_;D_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=U_(e),a=U_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return K_({type:"rgb",values:l})},D_.colorChannel=void 0;var j_=D_.darken=Z_;D_.decomposeColor=U_,D_.emphasize=tP;var $_=D_.getContrastRatio=function(e,t){const n=Q_(e),r=Q_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};D_.getLuminance=Q_,D_.hexToRgb=V_,D_.hslToRgb=X_;var B_=D_.lighten=eP;D_.private_safeAlpha=function(e,t,n){try{return J_(e,t)}catch(t){return e}},D_.private_safeColorChannel=void 0,D_.private_safeDarken=function(e,t,n){try{return Z_(e,t)}catch(t){return e}},D_.private_safeEmphasize=function(e,t,n){try{return tP(e,t)}catch(t){return e}},D_.private_safeLighten=function(e,t,n){try{return eP(e,t)}catch(t){return e}},D_.recomposeColor=K_,D_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=U_(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 H_=F_(N_),W_=F_(q_);function G_(e,t=0,n=1){return(0,W_.default)(e,t,n)}function V_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function U_(e){if(e.type)return e;if("#"===e.charAt(0))return U_(V_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,H_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,H_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Y_=e=>{const t=U_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};D_.colorChannel=Y_;function K_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function X_(e){e=U_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),K_({type:l,values:s})}function Q_(e){let t="hsl"===(e=U_(e)).type||"hsla"===e.type?U_(X_(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 J_(e,t){return e=U_(e),t=G_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,K_(e)}function Z_(e,t){if(e=U_(e),t=G_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return K_(e)}function eP(e,t){if(e=U_(e),t=G_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return K_(e)}function tP(e,t=.15){return Q_(e)>.5?Z_(e,t):eP(e,t)}D_.private_safeColorChannel=(e,t)=>{try{return Y_(e)}catch(t){return e}};var nP={black:"#000",white:"#fff"};var rP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var oP={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var iP={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var aP={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var lP={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var sP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var uP={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const cP=["mode","contrastThreshold","tonalOffset"],dP={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:nP.white,default:nP.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}},pP={text:{primary:nP.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:nP.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 fP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=B_(e.main,o):"dark"===t&&(e.dark=j_(e.main,i)))}function mP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=rn(e,cP),i=e.primary||function(e="light"){return"dark"===e?{main:lP[200],light:lP[50],dark:lP[400]}:{main:lP[700],light:lP[400],dark:lP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:oP[200],light:oP[50],dark:oP[400]}:{main:oP[500],light:oP[300],dark:oP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:iP[500],light:iP[300],dark:iP[700]}:{main:iP[700],light:iP[400],dark:iP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:sP[400],light:sP[300],dark:sP[700]}:{main:sP[700],light:sP[500],dark:sP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:uP[400],light:uP[300],dark:uP[700]}:{main:uP[800],light:uP[500],dark:uP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:aP[400],light:aP[300],dark:aP[700]}:{main:"#ed6c02",light:aP[500],dark:aP[900]}}(t);function d(e){return $_(e,pP.text.primary)>=n?pP.text.primary:dP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Xt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Mr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Mr(12,t?` (${t})`:"",JSON.stringify(e.main)));return fP(e,"light",o,r),fP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pP,light:dP};return wa(Xt({common:Xt({},nP),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:rP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const hP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gP={textTransform:"uppercase"},vP='"Roboto", "Helvetica", "Arial", sans-serif';function bP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=vP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=rn(n,hP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Xt({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===vP?{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,gP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wa(Xt({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function yP(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var xP=["none",yP(0,2,1,-1,0,1,1,0,0,1,3,0),yP(0,3,1,-2,0,2,2,0,0,1,5,0),yP(0,3,3,-2,0,3,4,0,0,1,8,0),yP(0,2,4,-1,0,4,5,0,0,1,10,0),yP(0,3,5,-1,0,5,8,0,0,1,14,0),yP(0,3,5,-1,0,6,10,0,0,1,18,0),yP(0,4,5,-2,0,7,10,1,0,2,16,1),yP(0,5,5,-3,0,8,10,1,0,3,14,2),yP(0,5,6,-3,0,9,12,1,0,3,16,2),yP(0,6,6,-3,0,10,14,1,0,4,18,3),yP(0,6,7,-4,0,11,15,1,0,4,20,3),yP(0,7,8,-4,0,12,17,2,0,5,22,4),yP(0,7,8,-4,0,13,19,2,0,5,24,4),yP(0,7,9,-4,0,14,21,2,0,5,26,4),yP(0,8,9,-5,0,15,22,2,0,6,28,5),yP(0,8,10,-5,0,16,24,2,0,6,30,5),yP(0,8,11,-5,0,17,26,2,0,6,32,5),yP(0,9,11,-5,0,18,28,2,0,7,34,6),yP(0,9,12,-6,0,19,29,2,0,7,36,6),yP(0,10,13,-6,0,20,31,3,0,8,38,7),yP(0,10,13,-6,0,21,33,3,0,8,40,7),yP(0,10,14,-6,0,22,35,3,0,8,42,7),yP(0,11,14,-7,0,23,36,3,0,9,44,8),yP(0,11,15,-7,0,24,38,3,0,9,46,8)];const SP=["duration","easing","delay"],EP={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)"},CP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wP(e){return`${Math.round(e)}ms`}function RP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function LP(e){const t=Xt({},EP,e.easing),n=Xt({},CP,e.duration);return Xt({getAutoHeightDuration:RP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return rn(r,SP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wP(o)} ${i} ${"string"==typeof a?a:wP(a)}`)).join(",")}},e,{easing:t,duration:n})}var kP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const MP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function IP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=rn(e,MP);if(e.vars)throw new Error(Mr(18));const l=mP(r),s=s_(e);let u=wa(s,{mixins:(c=s.breakpoints,d=n,Xt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:xP.slice(),typography:bP(l,i),transitions:LP(o),zIndex:Xt({},kP)});var c,d;return u=wa(u,a),u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var _P=IP();function PP(){const e=p_(_P);return e[oI]||e}var AP,DP={},TP={exports:{}};var OP,NP={exports:{}};var qP=r(Sa),FP=r(La),zP=r(Qa),jP=r(Ka),$P=r(u_),BP=r(g_),HP=O_;Object.defineProperty(DP,"__esModule",{value:!0});var WP=DP.default=function(e={}){const{themeId:t,defaultTheme:n=nA,rootShouldForwardProp:r=tA,slotShouldForwardProp:o=tA}=e,i=e=>(0,XP.default)((0,GP.default)({},e,{theme:oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,UP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=iA(rA(s))}=a,p=(0,VP.default)(a,ZP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=tA;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,UP.default)(e,(0,GP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,YP.isPlainObject)(e)?r=>aA(e,(0,GP.default)({},r,{theme:oA({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=aA(n,(0,GP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}));return aA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,GP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};DP.shouldForwardProp=tA,DP.systemDefaultTheme=void 0;var GP=HP((AP||(AP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(TP)),TP.exports)),VP=HP((OP||(OP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(NP)),NP.exports)),UP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=eA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(qP),YP=FP;HP(zP),HP(jP);var KP=HP($P),XP=HP(BP);const QP=["ownerState"],JP=["variants"],ZP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(eA=function(e){return e?n:t})(e)}function tA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nA=DP.systemDefaultTheme=(0,KP.default)(),rA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function oA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function iA(e){return e?(t,n)=>n[e]:null}function aA(e,t){let{ownerState:n}=t,r=(0,VP.default)(t,QP);const o="function"==typeof e?e((0,GP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>aA(e,(0,GP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,VP.default)(o,JP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,GP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,GP.default)({ownerState:n},r,n)):e.style))})),t}return o}var lA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sA=WP({themeId:oI,defaultTheme:_P,rootShouldForwardProp:lA});const uA=["theme"];function cA(e){let{theme:t}=e,n=rn(e,uA);const r=t[oI];return Xs.jsx(A_,Xt({},n,{themeId:r?oI:void 0,theme:r||t}))}var dA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const pA=bc(KC,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),fA=bc(KC)({position:"absolute",height:"100%",width:"3px"}),mA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=Hn.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};JM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,tt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:nt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{Mk(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{Mk(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Je.LEFT||e.key===Je.RIGHT){Mk(e);const t=5,n=e.key===Je.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Je.SPACE||e.key===Je.ENTER?(Mk(e),l(e),g()):e.key===Je.ESC&&(Mk(e),l(e),h(c.current.initWidth))}:void 0;return Wn.createElement(pA,{className:Ze,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":Ze},Wn.createElement(fA,{className:et}))};function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),vA=Hn.forwardRef(gA);function bA(){return bA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bA.apply(null,arguments)}const yA=bc(KC,{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"}))),xA=bc(vA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SA=bc(LR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),EA=bc(yw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CA=bc(PR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wA=bc(PR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),RA=bc("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),LA=bc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),kA=bc(XE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),MA=bc(Zw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _A=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),PA=Hn.forwardRef(_A);let AA={};const DA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Hn.useState(!1),p=Hn.useRef(null),f=Hn.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wn.createElement(Wn.Fragment,null,Wn.createElement(wA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),AA={}),null!=a&&a.length&&(d(!0),AA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wn.createElement(RA,null),Wn.createElement(LA,null,Wn.createElement(MA,null,Wn.createElement(o,null)),Wn.createElement(kA,{variant:"body2"},r)),null!=a&&a.length?Wn.createElement(PA,null):null),(null==a?void 0:a.length)&&Wn.createElement(NA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=AA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},TA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wn.createElement(CA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wn.createElement(DA,bA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),OA={appear:200,enter:200,exit:100},NA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Wn.createElement(SA,bA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:OA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[TA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wn.createElement(EA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},FA=(e,t)=>e.some((e=>t[e]>0));function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),$A=Hn.forwardRef(jA);function BA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),WA=Hn.forwardRef(HA);function GA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),UA=Hn.forwardRef(VA);function YA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),XA=Hn.forwardRef(KA);function QA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),ZA=Hn.forwardRef(JA);function eD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),nD=Hn.forwardRef(tD);function rD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),iD=Hn.forwardRef(oD);function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),sD=Hn.forwardRef(lD);function uD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),dD=Hn.forwardRef(cD);function pD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),mD=Hn.forwardRef(fD);let hD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const gD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[hD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.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")),r(!1)},icon:$A,enabled:a,isActive:!!n&&"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")),r(!1)},icon:XA,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[hD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:ZA,enabled:!0}]}]),n[hD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:mD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:nD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:dD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:iD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:sD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:WA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[hD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:UA,enabled:!0}]}]),d},vD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=eI({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Hn.useState(null),[o,i]=Hn.useState(qA);return Hn.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Hn.useCallback((()=>i(qA)),[]),updateSelectionActionsEnabledStatus:Hn.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:FA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:FA(["qSelected"],n.qStateCounts),canSelectPossible:FA(["qOption"],n.qStateCounts),canSelectAlternative:FA(["qAlternative"],n.qStateCounts),canSelectExcluded:FA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Hn.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,v,g]);Hn.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=Hn.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wn.createElement(yA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&Wn.createElement(xA,{height:Ke,className:Xe,"data-testid":Xe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wn.createElement(vA,null)),Wn.createElement(NA,{open:e,anchorEl:n.current,onClose:C,menuGroups:gD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},bD=e=>e.isDark?{background:e.color,borderColor:EL.DARK_MODE_BORDER,color:EL.DARK_MODE_TEXT,disabledColor:EL.DARK_MODE_DISABLED,iconColor:EL.DARK_MODE_TEXT}:{background:e.color,borderColor:EL.BORDER_MEDIUM,color:EL.TEXT,disabledColor:EL.DISABLED},yD=bc(KC,{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}`}))),xD=bc(hL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),SD=bc(aw,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),ED=bc(XE)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),CD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Hn.useMemo((()=>bD(r.background)),[r]);if(!n.active)return null;const a=o?Wn.createElement(yD,{footerStyle:i},e):null;return t?XS.createPortal(e,t):a},wD={},RD=Hn.createContext(wD),LD=()=>Hn.useContext(RD),kD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=Hn.useMemo((()=>bD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=eI({translator:d}),x=Hn.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return Wn.createElement(RD.Provider,{value:x},e)};let MD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ID=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 _D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),AD=Hn.forwardRef(PD);function DD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),OD=Hn.forwardRef(TD);function ND(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ND(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),FD=Hn.forwardRef(qD),zD={FirstPage:OD,PreviousPage:AD,NextPage:PA,LastPage:FD,FirstPageRTL:FD,PreviousPageRTL:PA,NextPageRTL:AD,LastPageRTL:OD},jD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=LD(),u=zD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},$D=()=>{const{pageInfo:e,width:t}=LD(),n=0===e.page,{IconComponent:r,styledProps:o}=jD({type:MD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ID.FirstPage?null:Wn.createElement(SD,o,Wn.createElement(r,{height:Ke}))},BD=(e,t,n=!1)=>{n&&e.key===Je.TAB&&!e.shiftKey&&(Mk(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},HD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>BD(e,t,r):null;return o<=ID.LastPage?null:Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},WD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ID.FirstPage&&o>ID.LastPage)&&t.enabled?e=>BD(e,t,r):null;return Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},GD=()=>{const{pageInfo:e}=LD(),t=0===e.page,{IconComponent:n,styledProps:r}=jD({type:MD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wn.createElement(SD,r,Wn.createElement(n,{height:Ke}))},VD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=LD(),{page:o,rowsPerPage:i}=n;if(t<=ID.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wn.createElement(ED,{variant:"caption"},a)},UD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=LD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return Wn.createElement(Wn.Fragment,null,Wn.createElement(ED,{variant:"caption",id:d},u,":"),Wn.createElement(xD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},YD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=LD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ID.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wn.createElement(Wn.Fragment,null,t.rowsPerPageOptions.map((e=>Wn.createElement("option",{key:e,value:e},e))));return Wn.createElement(UD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},KD=1e3,XD="…",QD=({totalPages:e,page:t})=>{const n=Math.min(e,KD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-KD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wn.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wn.createElement("option",{key:"startMoreOptions",value:XD,disabled:!0},XD)),o<e-1&&a.push(Wn.createElement("option",{key:"endMoreOptions",value:XD,disabled:!0},XD)),Wn.createElement(Wn.Fragment,null,a)},JD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=LD(),{page:o}=e;if(t<=ID.SelectPage)return null;const i=Wn.createElement(QD,{totalPages:n,page:o});return Wn.createElement(UD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},ZD=e=>Wn.createElement(kD,e,Wn.createElement(YD,null),Wn.createElement(JD,null),Wn.createElement(VD,null),Wn.createElement($D,null),Wn.createElement(GD,null),Wn.createElement(WD,null),Wn.createElement(HD,null));var eT=Hn.memo(ZD);const tT=e=>Wn.createElement(CD,e,Wn.createElement(eT,e)),nT={},rT=Hn.createContext(nT),oT=()=>Hn.useContext(rT),iT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=Hn.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Xs.jsx(rT.Provider,{value:u,children:e})},aT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=oT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:vt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:Xs.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Xs.jsx("span",{style:{...kt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},lT={},sT=Hn.createContext(lT),uT=()=>Hn.useContext(sT),cT=({children:e,styleService:t})=>Xs.jsx(sT.Provider,{value:t,children:e}),dT=21,pT=20,fT=pT,mT=16+St+1,hT=.75;let gT=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),vT=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const bT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===gT.Image},yT="/qHyperCubeDef",xT=-1,ST="PSEUDO-DIM",ET=e=>void 0===e?bt:e,CT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wT=e=>CT(e,tt.PixelsDefault),RT=(e,t)=>CT(e,tt.PercentageDefault)*t/100,LT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return wT(t.pixels);case nt.Percentage:return RT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},kT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===ST)return e+0;const m=n(p),h=!u&&f&&d<s-1?dT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+mT+h+m+g)}),0),MT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*mT;return Math.max(e,o+t(r.qFallbackTitle))}),0),IT=(e,t,n,r)=>{const o=100*e/t,i=r*hT*(o/100),a=n*(o/100);return Math.min(a,i)},_T=(e,t,n,r)=>r*(n/100)*(100*e/t/100),PT=(e,t)=>e.some((e=>e>=t*hT)),AT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*hT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,kT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,MT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===ST)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===nt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+mT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,MT(e.visibleMeasureInfo,l,!0));h=Math.min(c,kT({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=nt.Pixels,y.pixels=o);return[nt.Pixels,nt.Percentage].includes(y.type)||PT(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=PT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=IT(e[0],l,u,n),i=IT(e[1],l,u,n)),s===nt.Percentage&&c&&(o=_T(e[0],l,c,n),i=_T(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function DT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*hT,i=uT(),{measureText:a}=KM(i.header),{estimateWidth:l,measureText:s}=KM({...i.dimensionValues,fontWeight:ET(i.dimensionValues.fontWeight)}),{measureText:u}=KM({...i.dimensionValues,...i.measureLabels}),c=Hn.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h}=e,g=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+mT,a=Math.max(i,e);return Math.max(n,h?a:LT(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===ST)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?fT:0;return mT+a(t)+pT+r})(r);return Math.max(o,t)}),0);let b=0,y=n.data.at(-1);h&&n.size.x>1&&y&&y[0]&&(y=y[0]);const x=y.map(((r,a)=>{let s=mT;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ge.Pivot?o=p:r.columnWidthLocation===Ge.Dimension&&({columnWidth:o}=r);let i=0;r.isLeftDimension?i=r.id===ST?g():Math.max(v(a),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(bT(a))return tt.PixelsDefault;const s=!m&&o&&n<d-1?dT:0;return mT+l(r)+s})(r,a)):r.isLeftDimension||(i=v(a),r.columnWidthLocation===Ge.Measures&&(i=g(i))),h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=LT(t,o,i)}return b+=s,s}));return h&&n.size.x>1?AT({layoutService:e,headersData:n,columnWidths:x,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,b),leftGridColumnWidths:x,leftGridFullWidth:b}}),[t,n,e,o,a,u,l,s,r]),[d,p]=Hn.useState(c);JM((()=>{p(c())}),[c]);const f=Hn.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=uT(),{estimateWidth:c,measureText:d}=KM(u.measureValues),{estimateWidth:p}=KM({...u.dimensionValues,fontWeight:ET(u.dimensionValues.fontWeight)}),f=t-o-St,m=n.at(-1),h=m===xT,g=a.length-i>n.length?dT:0,v=Hn.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(tt.PixelsMax,Math.max(tt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case nt.Pixels:i(t,wT(o));break;case nt.Percentage:i(t,RT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:mT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,bT(e)));break;case nt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(tt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=Hn.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Hn.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let OT;const NT=new Uint8Array(16);function qT(){if(!OT&&(OT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!OT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return OT(NT)}const FT=[];for(let e=0;e<256;++e)FT.push((e+256).toString(16).slice(1));var zT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jT(e,t,n){if(zT.randomUUID&&!t&&!e)return zT.randomUUID();const r=(e=e||{}).random||(e.rng||qT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return FT[e[t+0]]+FT[e[t+1]]+FT[e[t+2]]+FT[e[t+3]]+"-"+FT[e[t+4]]+FT[e[t+5]]+"-"+FT[e[t+6]]+FT[e[t+7]]+"-"+FT[e[t+8]]+FT[e[t+9]]+"-"+FT[e[t+10]]+FT[e[t+11]]+FT[e[t+12]]+FT[e[t+13]]+FT[e[t+14]]+FT[e[t+15]]}(r)}const $T=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:jT()},BT=e=>e===xT?ST:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:$T()})(e),HT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===xT?n.columnWidthLocation=Ge.Measures:n.isLeftDimension?n.columnWidthLocation=Ge.Dimension:t.at(-1)===xT?n.columnWidthLocation=Ge.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ge.Pivot))},WT=(e,t,n)=>{var r;const o=BT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===xT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},GT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===xT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=WT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=WT(e,t,o)})),l},VT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(xT)?GT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(GT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)HT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else HT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function UT(e){return UT="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},UT(e)}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function XT(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QT(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&&ZT(e,t)}function JT(e){return JT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JT(e)}function ZT(e,t){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZT(e,t)}function eO(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function tO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JT(e);if(t){var o=JT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eO(this,n)}}function nO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:iO(e),value:iO(t),useEqualSign:n}}(n,o,i))}})),t}};function iO(e){try{return decodeURIComponent(e)}catch(t){return e}}function aO(e){if(!(this instanceof aO))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return oO.fromSearchString(t.search)}}})}function lO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}aO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},aO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=lO((t=e[r]).key),t.value?n+="=".concat(lO(t.value)):n+=t.useEqualSign?"=":"";return n};var sO,uO=function(){function e(t){YT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return XT(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),cO=function(){function e(){YT(this,e)}return XT(e,[{key:"decode",value:function(e){for(var t,n="",r=new uO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),dO=function(e){return e>=0&&e<=1114111},pO=function(e){return e.match(/[\s]/)},fO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!pO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return dO(a)?String.fromCharCode(a):"�"}}]),n}(cO),mO=function(){function e(t,n){YT(this,e),this._key=t,this._value=n}return XT(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),hO=function(){function e(){YT(this,e)}return XT(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return mO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return mO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||mO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),gO=function(){function e(){YT(this,e),this.clear()}return XT(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new hO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),vO=function(){var e,t,n,r=[],o=[],i=new gO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),bO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,vO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=vO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&dO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&dO(r)?String.fromCharCode(r):null}}]),n}(cO),yO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),dO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(cO),xO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(sO=document.createElement("div"));var SO=Array.prototype.indexOf,EO=[",",".","_"," "],CO={default:[",",".","-","_"," "]},wO={width:["%"],height:["%"]},RO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},LO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":RO.image,"background-color":RO.color,"border-color":RO.color,"border-image":RO.image,color:RO.color,icon:RO.image,"list-style-image":RO.image,"outline-color":RO.color},kO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function MO(e,t,n){var r;if(t){if(SO)return SO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function IO(e){if(null==e)return"";var t,n=document.createTextNode(e);return sO.appendChild(n),t=sO.innerHTML,sO.removeChild(n),t}function _O(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<kO.attr_val;i++)if(t.toLowerCase().match(kO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=wO[e])||(r=CO.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&MO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function PO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<kO.css_val.length;r++)if(t.toLowerCase().indexOf(kO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=LO[e])||(o=RO.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&MO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function AO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new bO,new yO,new fO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var DO=[],TO=0;TO<255;TO++)DO[TO]=TO>=48&&TO<=57||TO>=65&&TO<=90||TO>=97&&TO<=122?null:TO.toString(16);var OO=function(e){return IO(e.unsafe)},NO=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=PO(t,n[t],!0),i+=PO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},qO=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=_O(i,t[i],!0),o+=_O(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function FO(e,t){throw new Error(t)}var zO={canonicalize:AO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===UT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?OO(e):"css"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),NO(e)):"attr"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),qO(e)):void FO(this,"Invalid parameter type")},encodeForAttr:_O,encodeForAttr2:function(e){return _O("nonsens",e,!0)},encodeForCSS:PO,encodeForHref:function(e){AO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new aO(e),n=aO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+aO.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=EO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),MO(o,t)>=0||null==DO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:IO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=AO(t).toLowerCase():FO(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=nO(null!==(t=xO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const jO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},$O=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"}}},BO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&zO.isSafeDataURL(t)?{type:gT.Image,url:t,text:e,imageSize:n,resolvedImagePosition:$O(r)}:{type:gT.Text,url:void 0,text:e},HO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===vT.Attribute||null==n?void 0:n.urlLabel},WO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gT.Link,url:zO.encodeForHref(t),text:e}}catch(t){return{type:gT.Text,url:void 0,text:e}}},GO=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return gT.Link;case"image":return gT.Image;default:return gT.Text}})(t);return a!==gT.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===gT.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===vT.Attribute){var o;const r=HO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return WO({text:i,url:r})}if(r===vT.Dimension){var i;const r=HO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return WO({text:r,url:e.qText})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n):{type:gT.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=jO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return BO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return BO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=jO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return BO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n)},VO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?kk(s):null,c=l?kk(l):null,d=((e,t)=>e||!t?null:Ck(t)?EL.WHITE:EL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},UO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:UO(e,t)),e),YO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:yt-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,UO(l,e))},KO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=!c&&e.qType===it.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:$T(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:YO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===it.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===it.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===it.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:VO(s,e),selectionCellType:u?ot.NX_CELL_LEFT:ot.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:GO({...e,qText:h},l===xT?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},XO=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(xT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===it.NX_DIM_CELL_NORMAL||p.qType===it.NX_DIM_CELL_NULL||p.qType===it.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===it.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?KO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},QO=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},JO=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},ZO=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=XO(e.grid,l,s,n,r,o,i,a);QO(u,n.rowsOnCurrentPage);const c=JO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},eN=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===it.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$T(),ref:t,isNull:u}}))})),o},tN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?eN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},nN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:KO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},rN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=nN(e.grid,s,u,n,r,o,i,a,l);QO(c,n.size.x);const d=JO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},oN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),iN=(e,t,n,r,o)=>{const{env:i}=oT(),[a,l]=Hn.useState(null),s=((e,t,n)=>Hn.useMemo((()=>({left:e.map(oN),top:t.map(oN),measures:n.map(oN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=Hn.useMemo((()=>VT(t,o,r)),[t,o,r]),c=Hn.useCallback((()=>e.slice(1).reduce(((e,t)=>tN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return eN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=Hn.useCallback((()=>e.slice(1).reduce(((e,r)=>rN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=nN([],s,l,t,n,r,o,i,a);QO(u,t.size.x);const c=JO(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=Hn.useCallback((()=>e.slice(1).reduce(((e,o)=>ZO({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=XO([],l,a,n,t,r,o,i);QO(s,n.rowsOnCurrentPage);const u=JO(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=Hn.useState((()=>c())),[h,g]=Hn.useState((()=>d())),[v,b]=Hn.useState((()=>p()));JM((()=>{m(c())}),[c]),JM((()=>{g(d())}),[d]),JM((()=>{b(p())}),[p]),JM((()=>{a&&a.forEach((e=>{m((t=>tN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>rN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>ZO({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=Hn.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},aN=Math.sqrt(1e4),lN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),sN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/aN),r=Math.ceil(e.qHeight/aN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*aN,qTop:e.qTop+n*aN,qWidth:Math.min(aN,e.qWidth-o*aN),qHeight:Math.min(aN,e.qHeight-n*aN)});return t};function uN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Hn.useRef(e);return t.current=e,t})(n.page),i=e,a=Hn.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,yT,e,t,!1))}),[i]),l=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(yT,e,t,!1))}),[i]),s=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(yT,e,t,!1))}),[i]),u=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(yT,e,t,!1))}),[i]),c=Hn.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(yT,e.reduce(((e,t)=>[...e,...sN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Hn.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ge.Dimension:c=[{qPath:`${yT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ge.Measures:if(o)c=l.map(((e,t)=>({qPath:`${yT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${yT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ge.Pivot:c=[{qPath:`${yT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=Hn.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${yT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return Hn.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const cN=(e,t)=>e>t?Ye.Forward:e<t?Ye.Backward:Ye.None,dN=(e,t,n)=>(r,o)=>{if(r===it.NX_DIM_CELL_PSEUDO)return xT;const i=t[n+o];return e[i]},pN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},fN=({width:e,height:t,children:n,isLeftGrid:r})=>Xs.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+St},children:n}),mN=e=>`scrollable-container--${e}`,hN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=oT();return Xs.jsx("div",{ref:t,"data-key":mN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var gN=Wn.forwardRef(hN);const vN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Xs.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bN.apply(this,arguments)}function yN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(e,t){return xN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xN(e,t)}function SN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xN(e,t)}var EN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function CN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||EN(r)&&EN(o)))return!1;var r,o;return!0}function wN(e,t){var n;void 0===t&&(t=CN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function RN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var LN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function kN(e){cancelAnimationFrame(e.id)}function MN(e,t){var n=LN();var r={id:requestAnimationFrame((function o(){LN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var IN=-1;function _N(e){if(void 0===e&&(e=!1),-1===IN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),IN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return IN}var PN=null;function AN(e){if(void 0===e&&(e=!1),null===PN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?PN="positive-descending":(t.scrollLeft=1,PN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PN}return PN}var DN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function TN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,yN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:yN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(AN()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return ON(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=_N();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(AN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&kN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?DN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var M=R;M<=L;M++)for(var I=E;I<=C;I++)k.push(Hn.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,I)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Hn.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(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,m+g)),d,m]},t}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ON=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},NN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},qN=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},FN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},zN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?jN(e,t,n,i,0,r):$N(e,t,n,Math.max(0,i),r)},jN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=FN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},$N=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&FN(e,t,r,n).offset<o;)r+=a,a*=2;return jN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},BN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=FN(e,t,n,i),u="column"===e?qN(t,i):NN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},HN=TN({getColumnOffset:function(e,t,n){return FN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return zN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=FN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:NN,getEstimatedTotalWidth:qN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return BN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return BN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return FN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return zN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=FN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),WN=function(e,t){return e};function GN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,yN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:yN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(AN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return VN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?_N():0:s.scrollHeight>s.clientHeight?_N():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(AN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&kN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?WN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(Hn.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Hn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var VN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},UN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},YN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=UN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},KN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&UN(e,n,t).offset<r;)n+=i,i*=2;return YN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},XN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},QN=GN({getItemOffset:function(e,t,n){return UN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:XN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=UN(e,t,o),p=XN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?YN(e,t,o,0,n):KN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=UN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=UN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function JN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var ZN=["style"],eq=["style"];function tq(e,t){var n=e.style,r=RN(e,ZN),o=t.style,i=RN(t,eq);return!JN(n,o)&&!JN(r,i)}const nq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),rq=10,oq=(e,t)=>e.current===Ye.Backward?t:0,iq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},aq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,lq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(iq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&aq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},sq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ye.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return lq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},uq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=oq(n,rq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+rq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=lq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...sq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},cq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},dq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,pq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(cq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&dq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},fq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=oq(n,rq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+rq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=pq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ye.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=pq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},mq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ye.None&&(p=fq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ye.None&&(f=uq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ye.None&&a.current===Ye.None&&(p=pq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},hq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(mq,100),gq=Ce(mq,75),vq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=uT();return Xs.jsx("div",{style:{...e,...Lt,..._t(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},bq=({children:e,verticalAlign:t,width:n,right:r})=>Xs.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),yq=e=>{const{type:t,imageSize:n}=e;return t!==gT.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},xq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),Cq=Hn.forwardRef(Eq);function wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),Lq=Hn.forwardRef(Rq),kq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ze)};function Mq(e,t){const n=e.isActive(),[r,o]=Hn.useState(new Map),[i,a]=Hn.useState(null);Hn.useEffect((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=Hn.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===ot.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Hn.useCallback((t=>async n=>{if(kq(n))return;if(e.isActive()||await e.begin([yT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===ot.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[yT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=Hn.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Hn.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Iq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},_q=Hn.createContext(Iq),Pq=()=>Hn.useContext(_q),Aq=({children:e,selections:t,updatePageInfo:n})=>{const r=Mq(t,n);return Xs.jsx(_q.Provider,{value:r,children:e})};var Dq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Dq||(Dq={}));const Tq={brighter:.5,darker:.3,opacity:.03},Oq=(e,{cell:t,styleService:n})=>{if(e===Dq.Background||e===Dq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Nq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Oq(Dq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Oq(Dq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Ek(i=o,Tq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},qq=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Oq(Dq.Color,{cell:e,styleService:t}),Fq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Oq(Dq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?bt:o},zq=({cell:e,styleService:t})=>Oq(Dq.FontStyle,{cell:e,styleService:t}),jq=({cell:e,styleService:t})=>Oq(Dq.TextDecoration,{cell:e,styleService:t}),$q=e=>e?"pointer":"default",Bq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Hq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===gT.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Wq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=qq({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?Lq:Cq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,Xs.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Hq(e,o)},onClick:l?void 0:Bq({cell:e,expandOrCollapse:d})})},Gq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Vq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Uq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},Yq=(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"}},Kq=e=>{if("alwaysFit"===e)return"contain"},Xq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=oT(),t=Hn.useRef(null),{promise:n,resolve:r}=Hn.useMemo((()=>xq()),[]);return Hn.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:Hn.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Xs.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Uq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Xs.jsx("img",{src:s,alt:u,style:{width:Vq(c),height:Gq(c),objectFit:Kq(c),objectPosition:Yq(c,d),...f},onLoad:l,ref:a})})},Qq=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},Jq={display:"flex",flexDirection:"row",alignItems:"center"},Zq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},eF=(e,t,n,r)=>t?{...Zq,...e.nullValues}:n?{...Jq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Jq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},tF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...kt,...!n&&Mt(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?bt:s,fontStyle:u,textDecoration:c}},nF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==gT.Image?Qq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},rF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=tF(n,o,i,a,e.isNull);return r.type!==gT.Image||e.isNull?Xs.jsx("span",{style:{padding:4,...s},children:l}):Xs.jsx(Xq,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},oF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},iF="flex-start",aF=(e,t)=>{return e.isNull?iF:t.type===gT.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:iF;var n},lF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=uT(),{env:a}=oT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return Xs.jsx(vq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?oF(g,t):oF(h,e),E=u.visibleMeasureInfo[S],C=GO(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=VO(v[S],b.ref),M={...eF(i,b.isNull,w,k.background),..._t(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Lt,padding:"0px 4px",display:"flex",justifyContent:nF(b,E,C,L,a.flags)};return Xs.jsx("div",{className:Qe,title:R,style:{...M,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Xs.jsx(bq,{width:yq(C),verticalAlign:aF(b,C),children:Xs.jsx(rF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var sF=Wn.memo(lF,tq);const uF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},cF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},dF={...Rt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},pF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=uT(),x={...dF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Hn.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return nq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Hn.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return nq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>Hn.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=oT();return Hn.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ye.None?0:rq),h=e.gridHeight+a+(l.current===Ye.None?0:rq);let g=hq;h*m>1500&&(g=gq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return JM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Hn.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Xs.jsx(HN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:cF,children:sF})};var fF=Hn.memo(pF);function mF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hF=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"}),Wn.createElement("use",{fillRule:"evenodd"})),gF=Hn.forwardRef(hF),vF=e=>{const[t,n]=Hn.useState(!1);return JM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},bF=({interactions:e,dataModel:t})=>{const[n,r]=Hn.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=vF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!kq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function yF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Et.Transparent?EL.WHITE:l,u=null===(o=$L(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=$L(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const xF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=oT(),{isActive:u}=Pq(),c=uT(),[,d]=Hn.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=yF(c,e);return Xs.jsx(mA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*hT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function SF(e){return I_(e)}const EF=e=>e.scrollTop;function CF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function wF(e){return Rl("MuiPaper",e)}Ll("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const RF=["className","component","elevation","square","variant"],LF=sA("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Xt({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&&Xt({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${z_("#fff",dA(t.elevation))}, ${z_("#fff",dA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var kF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=rn(n,RF),u=Xt({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},wF,o)})(u);return Xs.jsx(LF,Xt({as:o,ownerState:u,className:Pl(c.root,r),ref:t},s))}));var MF=Ll("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const IF=["center","classes","className"];let _F,PF,AF,DF,TF=e=>e;const OF=ha(_F||(_F=TF`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),DF=ca(IF||(IF=PF`
130
+ `)),NF=ha(PF||(PF=TF`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),TF=ca(MF||(MF=PF`
138
+ `)),qF=ha(AF||(AF=TF`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),OF=tA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),NF=tA((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=zn.useState(!1),p=Vs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Vs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),zn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),js.jsx("span",{className:p,style:f,children:js.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(_F||(_F=PF`
150
+ `)),FF=sA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zF=sA((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=Hn.useState(!1),p=Pl(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Pl(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Hn.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Xs.jsx("span",{className:p,style:f,children:Xs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(DF||(DF=TF`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),RF.rippleVisible,AF,550,(({theme:e})=>e.transitions.easing.easeInOut),RF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),RF.child,RF.childLeaving,DF,550,(({theme:e})=>e.transitions.easing.easeInOut),RF.childPulsate,TF,(({theme:e})=>e.transitions.easing.easeInOut)),qF=zn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ba(n,LF),[l,s]=zn.useState([]),u=zn.useRef(0),c=zn.useRef(null);zn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=zn.useRef(!1),p=al(),f=zn.useRef(null),m=zn.useRef(null),h=zn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(NF,{classes:{ripple:Vs(o.ripple,RF.ripple),rippleVisible:Vs(o.rippleVisible,RF.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,RF.ripplePulsate),child:Vs(o.child,RF.child),childLeaving:Vs(o.childLeaving,RF.childLeaving),childPulsate:Vs(o.childPulsate,RF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=zn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=zn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=zn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return zn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(OF,va({className:Vs(RF.root,o.root,i),ref:m},a,{children:js.jsx(cE,{component:null,exit:!0,children:l})}))}));var FF=qF;function zF(e){return El("MuiButtonBase",e)}var jF=Cl("MuiButtonBase",["root","disabled","focusVisible"]);const $F=["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"],BF=tA("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"},[`&.${jF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),HF=zn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=ba(n,$F),A=zn.useRef(null),D=zn.useRef(null),T=nl(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=hl(),[z,j]=zn.useState(!1);s&&z&&j(!1),zn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=zn.useState(!1);zn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return tl((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}zn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=tl((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=zn.useRef(!1),re=tl((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=tl((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=nl(t,F,A),se=va({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},zF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(BF,va({as:ie,className:Vs(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?js.jsx(FF,va({ref:T,center:o},I)):null]}))}));var WF=HF;const GF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VF(e){const t=[],n=[];return Array.from(e.querySelectorAll(GF)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function UF(){return!0}function YF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=VF,isEnabled:a=UF,open:l}=e,s=zn.useRef(!1),u=zn.useRef(null),c=zn.useRef(null),d=zn.useRef(null),p=zn.useRef(null),f=zn.useRef(!1),m=zn.useRef(null),h=nl(t.ref,m),g=zn.useRef(null);zn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),zn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),zn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(zn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),zn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const KF=zn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=zn.useState(null),l=nl(zn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(zn.isValidElement(n)){const e={ref:l};return zn.cloneElement(n,e)}return js.jsx(zn.Fragment,{children:n})}return js.jsx(zn.Fragment,{children:i?US.createPortal(n,i):i})}));function XF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QF(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function JF(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&XF(e,o)}))}function ZF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ez(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${QF(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${QF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const tz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&XF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);JF(t,e.mount,e.modalRef,r,!0);const o=ZF(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ZF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ez(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ZF(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&XF(e.modalRef,t),JF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&XF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=zn.useRef({}),f=zn.useRef(null),m=zn.useRef(null),h=nl(m,d),[g,v]=zn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=zn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&XF(m.current,y))})),R=zn.useCallback((()=>{o.remove(x(),y)}),[y,o]);zn.useEffect((()=>()=>{R()}),[R]),zn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=SF(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=va({},n,t);return va({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>va({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const rz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oz={entering:{opacity:1},entered:{opacity:1}},iz=zn.forwardRef((function(e,t){const n=CP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=oE}=e,b=ba(e,rz),y=zn.useRef(null),x=nl(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{mF(e);const r=hF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=hF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,va({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>zn.cloneElement(a,va({style:va({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},oz[e],h,a.props.style),ref:x},t))}))}));var az=iz;function lz(e){return El("MuiBackdrop",e)}Cl("MuiBackdrop",["root","invisible"]);const sz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uz=tA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>va({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"}))),cz=zn.forwardRef((function(e,t){var n,r,o;const i=wP({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=az,transitionDuration:g}=i,v=ba(i,sz),b=va({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},lz,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,va({in:p,timeout:g},v,{children:js.jsx(uz,va({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:va({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var dz=cz;var pz=Cl("MuiBox",["root"]);const fz=SP(),mz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ma("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(r_);return zn.forwardRef((function(e,a){const l=c_(n),s=f_(e),{className:u,component:c="div"}=s,d=ba(s,h_);return js.jsx(i,va({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:nM,defaultTheme:fz,defaultClassName:pz.root,generateClassName:xl.generate});var hz=mz;function gz(e){return El("MuiModal",e)}Cl("MuiModal",["root","hidden","backdrop"]);const vz=["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"],bz=tA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>va({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yz=tA(dz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xz=zn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=wP({name:"MuiModal",props:e}),{BackdropComponent:u=yz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=ba(s,vz),P=va({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=nz(va({},P,{rootRef:t})),z=va({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:bz,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=wF({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Vs(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=wF({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(va({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(KF,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,va({},V,{children:[!w&&u?js.jsx(H,va({},U)):null,js.jsx(YF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:zn.cloneElement(f,$)})]}))}):null}));var Sz=xz;var Ez=Cl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Cz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wz(e){return`scale(${e}, ${e**2})`}const Rz={entering:{opacity:1,transform:wz(1)},entered:{opacity:1,transform:"none"}},Lz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kz=zn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=oE}=e,g=ba(e,Cz),v=al(),b=zn.useRef(),y=CP(),x=zn.useRef(null),S=nl(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{mF(e);const{duration:n,delay:r,easing:o}=hF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Lz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=hF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Lz?o:.666*o,delay:Lz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=wz(.75),c&&c(e)})),I=E(d);return js.jsx(h,va({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>zn.cloneElement(o,va({style:va({opacity:0,transform:wz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Rz[e],f,o.props.style),ref:S},t))}))}));kz.muiSupportAuto=!0;var Iz=kz;var Mz=zn.createContext({});function _z(e){return El("MuiList",e)}Cl("MuiList",["root","padding","dense","subheader"]);const Pz=["children","className","component","dense","disablePadding","subheader"],Az=tA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>va({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Dz=zn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=ba(n,Pz),c=zn.useMemo((()=>({dense:a})),[a]),d=va({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},_z,t)})(d);return js.jsx(Mz.Provider,{value:c,children:js.jsxs(Az,va({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var Tz=Cl("MuiListItemIcon",["root","alignItemsFlexStart"]);var Oz=Cl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Nz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function jz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&zz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var $z=zn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=ba(e,Nz),p=zn.useRef(null),f=zn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});el((()=>{r&&p.current.focus()}),[r]),zn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${gl(Qa(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=nl(p,t);let h=-1;zn.Children.forEach(i,((e,t)=>{zn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=zn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),zn.cloneElement(e,t)}return e}));return js.jsx(Dz,va({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Qa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),jz(t,r,s,l,qz);else if("ArrowUp"===n)e.preventDefault(),jz(t,r,s,l,Fz);else if("Home"===n)e.preventDefault(),jz(t,null,s,l,qz);else if("End"===n)e.preventDefault(),jz(t,null,s,l,Fz);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&zz(r,o);o.previousKeyMatched&&(s||jz(t,r,!1,l,qz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Bz(e){return El("MuiPopover",e)}Cl("MuiPopover",["root","paper"]);const Hz=["onEntering"],Wz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Gz=["slotProps"];function Vz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Uz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Kz(e){return"function"==typeof e?e():e}const Xz=tA(Sz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qz=tA(yF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Jz=zn.forwardRef((function(e,t){var n,r,o;const i=wP({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Iz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=ba(i.TransitionProps,Hz),L=ba(i,Wz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=zn.useRef(),M=nl(I,k.ref),_=va({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},Bz,t)})(_),A=zn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Kz(l),t=(e&&1===e.nodeType?e:Qa(I.current).body).getBoundingClientRect();return{top:t.top+Vz(t,s.vertical),left:t.left+Uz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=zn.useCallback((e=>({vertical:Vz(e,x.vertical),horizontal:Uz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=zn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Yz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ja(Kz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Yz(n)}}),[l,c,A,D,h]),[O,N]=zn.useState(g),q=zn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);zn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);zn.useEffect((()=>{g&&q()})),zn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),zn.useEffect((()=>{if(!g)return;const e=Xa((()=>{q()})),t=Ja(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Qa(Kz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Xz,$=null!=(o=null==b?void 0:b.paper)?o:Qz,B=wF({elementType:$,externalSlotProps:va({},k,{style:O?k.style:va({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Vs(P.paper,null==k?void 0:k.className)}),H=wF({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Vs(P.root,p)}),{slotProps:W}=H,G=ba(H,Gz);return js.jsx(j,va({},G,!xF(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,va({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,va({},B,{children:d}))}))}))}));function Zz(e){return El("MuiMenu",e)}Cl("MuiMenu",["root","paper","list"]);const ej=["onEntering"],tj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nj={vertical:"top",horizontal:"right"},rj={vertical:"top",horizontal:"left"},oj=tA(Jz,{shouldForwardProp:e=>eA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ij=tA(Qz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aj=tA($z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var lj=zn.forwardRef((function(e,t){var n,r;const o=wP({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=ba(o.TransitionProps,ej),x=ba(o,tj),S=(()=>{const e=zn.useContext(x_);return null!=e&&e})(),E=va({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},Zz,t)})(E),w=i&&!s&&d,R=zn.useRef(null);let L=-1;zn.Children.map(a,((e,t)=>{zn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:ij,I=null!=(r=b.paper)?r:p,M=wF({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=wF({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return js.jsx(oj,va({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?nj:rj,slots:{paper:k,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:va({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:js.jsx(aj,va({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Vs(C.list,u.className),children:a}))}))}));function sj(e){return El("MuiMenuItem",e)}var uj=Cl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const cj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dj=tA(WF,{shouldForwardProp:e=>eA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>va({},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"}},[`&.${uj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:P_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:P_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:P_(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})`:P_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ez.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ez.inset}`]:{marginLeft:52},[`& .${Oz.root}`]:{marginTop:0,marginBottom:0},[`& .${Oz.inset}`]:{paddingLeft:36},[`& .${Tz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&va({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Tz.root} svg`]:{fontSize:"1.25rem"}}))));var pj=zn.forwardRef((function(e,t){const n=wP({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=ba(n,cj),f=zn.useContext(Mz),m=zn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=zn.useRef(null);el((()=>{r&&h.current&&h.current.focus()}),[r]);const g=va({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return va({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},sj,a))})(n),b=nl(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(Mz.Provider,{value:m,children:js.jsx(dj,va({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(v.focusVisible,s),className:Vs(v.root,d)},p,{ownerState:g,classes:v}))})}));const fj=tA(hz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),mj=tA("div")({position:"absolute",left:0,bottom:0}),hj=tA("div")({...wt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),gj=tA("div")((()=>({...wt}))),vj=tA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),bj=tA(lj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),yj=tA(pj,{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}}}))),xj=tA("span")({textOverflow:"ellipsis",overflow:"hidden"}),Sj=tA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:iT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Ej={[sD.SORTING]:!0,[sD.SELECTIONS]:!0,[sD.SEARCHING]:!0},Cj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=zn.useRef(null),g=nT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=QD(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:I,hoverBackground:M,activeBackground:_}=g.header,P=zn.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=dF({interactions:y,dataModel:e}),F={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},z={embed:x,listboxRef:h},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=Wq($,"flex-start",S);return js.jsxs(fj,{className:Qe,title:t.label,interactions:y,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[js.jsxs(hj,{children:[A&&js.jsx(gj,{children:js.jsx(uF,{height:12})}),js.jsx(vj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:js.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(cD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Ej,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),js.jsx(mj,{ref:h}),js.jsx(mj,{ref:P})]}),js.jsx(fF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},wj=({rowSpan:e,columnSpan:t})=>{const n=nT();return e>0&&t>0?js.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lj=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),kj=zn.forwardRef(Lj);function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mj=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ij(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),jn.createElement("use",{fillRule:"evenodd"})),_j=zn.forwardRef(Mj),Pj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=nT(),{interactions:i}=QD(),{isActive:a}=wq(),{setIsAdjustingWidth:l}=cF([e]);if(!(!!i.active&&!a))return null;const s=pF(o,{isLeftColumn:!0});return js.jsx(lA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*sT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*sT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Aj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>jn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Aj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),jn.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"})),Tj=zn.forwardRef(Dj),Oj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=zn.useRef(null),i=zn.useRef(null),{app:a,model:l,interactions:s,embed:u}=QD(),{open:c,setOpen:d,handleOpenMenu:p}=dF({interactions:s,dataModel:n});return js.jsxs(yj,{component:"div",onClick:p,isActive:c,children:[js.jsx(xj,{children:e.label}),js.jsxs(Sj,{className:"indent-mode-dropdown-more",visible:c,children:[js.jsx(Tj,{}),e.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(cD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Ej,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),js.jsx(mj,{ref:i}),js.jsx(mj,{ref:o})]})]})]})},Nj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===mT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===mT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==mT&&e<n.length-1)},qj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=nT(),{interactions:u}=QD(),[c,d]=zn.useState(!1),p=zn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=cF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return js.jsxs(fj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!xq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[js.jsxs(hj,{children:[js.jsx(vj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:js.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?js.jsx(_j,{}):js.jsx(kj,{}),js.jsx(mj,{ref:p})]}),js.jsx(bj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==mT&&js.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:js.jsx(Oj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),Nj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&js.jsx(hA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),js.jsx(Pj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},Fj={display:"grid",width:"fit-content"},zj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>js.jsxs("div",{style:{...Fj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&js.jsx(wj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(js.jsx(qj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(js.jsx(Cj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var jj=zn.memo(zj);const $j=(e,t,n,r,o)=>{zn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Bj=(e,t)=>{XI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Hj=(e,t,n,r)=>{var o;const i=n?"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:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Wq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Wq(u,i,r)},Wj=()=>{},Gj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=nT(),{interactions:f,env:{flags:m}}=QD(),{select:h,isLocked:g}=wq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return js.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,..._t(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:Tq(x),background:Mq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Hj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Wj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Vj=e=>e.stopPropagation(),Uj=({href:e,text:t,interactions:n,color:r})=>jn.createElement($w,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Vj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Yj=({children:e,textStyle:t})=>js.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Kj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=wq(),{interactions:i}=QD();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...It(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:_q({cell:e,styleService:t,isCellSelected:n}),fontWeight:Pq({cell:e,styleService:t}),fontStyle:Aq({cell:e,styleService:t}),textDecoration:Dq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==uT.Image||e.isTotal?(e.representation.type!==uT.Link||o||e.isTotal||(a=js.jsx(Uj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),js.jsx(Yj,{textStyle:l,children:a})):js.jsx(Hq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Xj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==uT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},Qj=({index:e,style:t,data:n})=>{const r=nT(),{isSelected:o}=wq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=cF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=KN(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return js.jsx(cq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return js.jsxs(Gj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[js.jsxs(dq,{verticalAlign:Xj(m),width:pq(m.representation),right:m.isLeftColumn?void 0:4,children:[js.jsx(qq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),js.jsx(Kj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),js.jsx(fF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var Jj=jn.memo(Qj,YN);const Zj=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},e$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},t$=(e,t)=>n=>{e.current&&(e.current[t]=n)},n$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},r$={overflow:"hidden",willChange:"auto",flexShrink:0},o$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=nT();Bj(t,a),$j(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return js.jsx("div",{style:{...n$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=OT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=e$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return js.jsx(WN,{ref:t$(t,p),style:{...r$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:nF,estimatedItemSize:v,children:Jj},h)}))})};var i$=zn.memo(o$);const a$={overflow:"hidden",willChange:"auto"},l$={...Rt,borderWidth:"0px 0px 0px 1px"},s$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=nT(),p={...l$,borderColor:c,height:o};Bj(t,a),$j(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?js.jsx("div",{style:{width:r,height:o,...l$}}):js.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=e$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?OT(g):`empty ${c}`;return js.jsx(WN,{ref:t$(t,c),style:a$,height:n(),width:r,itemCount:p,itemSize:Zj({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:nF,estimatedItemSize:m,children:Jj},v)}))})};var u$=zn.memo(s$);const c$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=nT(),u=((e,t,n)=>zn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return zn.useMemo((()=>{var e,n,a,l;const s=iN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=iN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(oN(i,o,0)),visibleTopDimensionInfo:u.map(oN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=zn.useCallback((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=JO(o,r,i,c,d),y=nN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:M,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=QD(),f=zn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=zn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=zn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=zn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=zn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=zn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=zn.useRef(0),x=zn.useRef(0),S=zn.useRef(Ye.None),E=zn.useRef(Ye.None),[C,w]=zn.useState(0),[R,L]=zn.useState(0),k=e=>{E.current=rN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=rN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};zn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),zn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),zn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=zn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return zn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),zn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=nT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:M}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=nT(),{measureText:l}=UI(a.header),s=LT({layoutService:e,tableWidth:t,headersData:n}),u=kT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+St,d=c<t,p=zn.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=s.leftGridColumnWidths[i];let u=!1,c=!1,d=l(o)+lT;return r&&d+aT<=a&&(c=!0,d+=aT),d+iT<=a&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,l,e.isIndentModeEnabled,n.size.x]);return zn.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:_}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:M}),X=zn.useCallback((()=>l),[l]),Q=zn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=QD();zn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),js.jsx(uN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:js.jsx(aN,{...U.fullSize,children:js.jsxs(cN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&js.jsx(uN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:js.jsx(aN,{isLeftGrid:!0,...Y.containers.fullSize,children:js.jsxs(cN,{isLeftGrid:!0,...Y.containers.sticky,children:[js.jsx(jj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),js.jsx(i$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),js.jsx(uN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:js.jsx(aN,{...K.containers.fullSize,children:js.jsxs(cN,{...K.containers.sticky,children:[js.jsx(u$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),js.jsx(aF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},d$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=QD(),{layout:u,hasData:c}=t;return js.jsxs(js.Fragment,{children:[c&&js.jsx(c$,{...e}),js.jsx(ZD,{translator:n,layoutService:t}),js.jsx(YD,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},p$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},f$=12,m$=14,h$=16,g$=24,v$=3,b$=300,y$=400,x$=600,S$=700,E$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};tn(p$.GREYSCALE_0,.05),tn(p$.GREEN_PALE,.5),tn(p$.BLUE_PALE,.5),tn(p$.GREEN_PALE,.5),tn(p$.BLUE_PALE,.5),tn(p$.GREEN_PALE,.5),tn(p$.BLUE_PALE,.5);var C$;function w$(){return w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w$.apply(this,arguments)}tn(p$.GREEN_PALE,.5),tn(p$.BLUE_PALE,.5),tn(p$.GREEN_PALE,.5),tn(p$.BLUE_PALE,.5);var R$,L$=function(e){return zn.createElement("svg",w$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),C$||(C$=zn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(this,arguments)}var I$=function(e){return zn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),R$||(R$=zn.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 M$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return jn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var _$=(e={})=>jn.createElement(M$,{...e},jn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},jn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),jn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),P$=(e={})=>jn.createElement(M$,{...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),jn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),A$=(e={})=>jn.createElement(M$,{fontSize:"medium",...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},jn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),D$=(e={})=>jn.createElement(M$,{fontSize:"medium",...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),jn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),T$=({className:e})=>jn.createElement(M$,{fontSize:"small",className:e},jn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},jn.createElement("g",{transform:"translate(4.324187, 1.300372)"},jn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),jn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),O$=(e={})=>jn.createElement(M$,{...e},jn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},jn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},jn.createElement("rect",{stroke:p$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const N$={MuiAccordion:{styleOverrides:{root:{backgroundColor:p$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:p$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:jn.createElement(L$,{"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 ${p$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,borderRadius:v$,backgroundColor:p$.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 ${p$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:p$.WHITE,color:p$.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:v$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:p$.GREYSCALE_0_15,backgroundColor:p$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:p$.GREEN_PALE},"&:active":{backgroundColor:p$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(p$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:p$.BLUE_PALE},"&:active":{backgroundColor:p$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(p$.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:v$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:p$.GREYSCALE_0_15,backgroundColor:p$.GREYSCALE_100_60,"&:active":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:p$.PURPLE,"&.Mui-focusVisible":{borderColor:p$.PURPLE,boxShadow:`0 0 0 3px ${b_(p$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:p$.GREEN,"&.Mui-focusVisible":{borderColor:p$.GREEN,boxShadow:`0 0 0 3px ${b_(p$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:p$.BLUE,"&.Mui-focusVisible":{borderColor:p$.BLUE,boxShadow:`0 0 0 3px ${b_(p$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:p$.ORANGE,"&.Mui-focusVisible":{borderColor:p$.ORANGE,boxShadow:`0 0 0 3px ${b_(p$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:p$.RED,"&.Mui-focusVisible":{borderColor:p$.RED,boxShadow:`0 0 0 3px ${b_(p$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:p$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:p$.PURPLE_PALE},"&:active":{backgroundColor:p$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:p$.PURPLE_PALE,boxShadow:`0 0 0 3px ${b_(p$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:p$.GREEN_PALE},"&:active":{backgroundColor:p$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(p$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:p$.BLUE_PALE},"&:active":{backgroundColor:p$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(p$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:p$.ORANGE_PALE},"&:active":{backgroundColor:p$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:p$.ORANGE_PALE,boxShadow:`0 0 0 3px ${b_(p$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:p$.RED_PALE},"&:active":{backgroundColor:p$.RED_DARK},"&.Mui-focusVisible":{borderColor:p$.RED_PALE,boxShadow:`0 0 0 3px ${b_(p$.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:p$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:p$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:v$,boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:jn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:f$,borderRadius:v$,color:p$.TEXT_PRIMARY,backgroundColor:p$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:p$.GREYSCALE_0_05,color:p$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:p$.GREEN,borderColor:p$.GREEN},"&.MuiChip-outlinedInfo":{color:p$.BLUE,borderColor:p$.BLUE},"&.MuiChip-outlinedWarning":{color:p$.ORANGE,borderColor:p$.ORANGE},"&.MuiChip-outlinedError":{color:p$.RED,borderColor:p$.RED}},outlined:{border:`solid 1px ${p$.GREYSCALE_0_15}`,backgroundColor:p$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:v$,boxShadow:"none",backgroundColor:p$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:p$.GREEN,borderColor:p$.GREEN},outlinedSecondary:{color:p$.BLUE,borderColor:p$.BLUE},label:{fontFamily:E$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:jn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:jn.createElement(L$,{"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:v$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:v$,fontSize:m$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:p$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${p$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:p$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:p$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:p$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:v$,border:`solid 1px ${p$.GREYSCALE_0_15}`,color:p$.GREYSCALE_0_60,marginRight:0,width:g$,height:g$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${p$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:v$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:p$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:m$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:f$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:p$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:p$.GREYSCALE_25,fontSize:f$,fontFamily:E$.FONT_FAMILY,fontWeight:x$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:p$.TEXT_PRIMARY},"&.Mui-error":{color:p$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:p$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:y$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:p$.TEXT_SECONDARY,content:"'(required)'",fontWeight:y$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:m$,lineHeight:"16px",backgroundColor:p$.WHITE,borderRadius:v$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.GREYSCALE_0_05}`,borderColor:p$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.RED}`,boxShadow:`0px 0px 0px 1px ${p$.RED}, inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${p$.GREYSCALE_0_10}`,borderColor:p$.GREYSCALE_0_10,backgroundColor:p$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:p$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:p$.GREYSCALE_0_15,borderRadius:v$,boxShadow:`inset 0 2px 0 0 ${p$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>jn.createElement(L$,{...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:p$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:p$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&:active":{backgroundColor:p$.GREYSCALE_0_10},"&:focus":{backgroundColor:p$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${p$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:p$.GREYSCALE_0_30,"&:hover":{backgroundColor:p$.GREYSCALE_0_0,borderColor:p$.GREYSCALE_0_15},"& ~svg":{color:p$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${p$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:v$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:p$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:p$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:m$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:f$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:f$,fontWeight:x$,color:p$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:x$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${p$.GREYSCALE_0_15}, 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:jn.createElement(A$,null),checkedIcon:jn.createElement(D$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:p$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(p$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(p$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:p$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:p$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:jn.createElement(O$,null),checkedIcon:jn.createElement(_$,null),indeterminateIcon:jn.createElement(P$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:v$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:p$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:p$.GREYSCALE_0_55,color:p$.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:p$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:p$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:p$.GREYSCALE_0_55,"&:hover":{color:p$.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:p$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:p$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:m$,color:p$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:x$},secondary:{fontSize:f$,color:p$.GREYSCALE_45,fontWeight:y$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:m$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&:active":{backgroundColor:p$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:m$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:p$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:f$,borderBottom:`solid 1px ${p$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:m$,color:p$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:p$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:p$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:p$.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:p$.RED}}},"&.Mui-focusVisible":{backgroundColor:p$.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:p$.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:p$.GREEN,height:"24px","&.Mui-disabled":{color:p$.GREYSCALE_0_15}},rail:{backgroundColor:p$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${p$.GREYSCALE_0_05}`,borderRadius:v$,boxShadow:`inset 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${p$.GREYSCALE_0_05}`,borderRadius:v$},thumb:{height:"16px",width:"16px",borderRadius:v$,backgroundColor:p$.WHITE,boxShadow:`0px 1px 2px 0px ${p$.GREYSCALE_0_15}, 0px 0px 0px 1px ${p$.GREYSCALE_0_05}`,"&:hover":{borderRadius:v$,boxShadow:`0 2px 4px 0 ${p$.GREYSCALE_0_30}, 0 0 0 1px ${p$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${p$.GREYSCALE_0_15}, 0 0 0 1px ${p$.GREYSCALE_0_06}, 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${p$.GREYSCALE_0_15}, 0 0 0 1px ${p$.GREYSCALE_0_06}, 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:p$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:p$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:p$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:p$.GREYSCALE_0_15},markLabel:{color:p$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:p$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:p$.WHITE,color:p$.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:p$.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:p$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(p$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:p$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(p$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:p$.GREYSCALE_0_15,borderRadius:v$},thumb:{height:"16px",width:"16px",borderRadius:v$,backgroundColor:p$.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:m$,fontWeight:x$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${p$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${p$.MISC_FOCUS_BORDER}`,backgroundColor:p$.GREYSCALE_0_03,borderRadius:v$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:p$.GREYSCALE_25,"&.Mui-selected":{color:p$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:m$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollButtons:{borderRadius:v$,"&:hover":{backgroundColor:`${p$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${p$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${p$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:v$,marginBlock:"4px","&.Mui-selected":{backgroundColor:p$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${p$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${p$.GREYSCALE_85}`,borderRight:`1px solid ${p$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:x$,backgroundColor:p$.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:p$.GREYSCALE_98,borderBottom:`1px solid ${p$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${p$.GREYSCALE_85}`,borderTop:`1px solid ${p$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:p$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:p$.GREYSCALE_0_05,"&:hover":{backgroundColor:p$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:p$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>jn.createElement(T$,{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 ${p$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:m$,borderRadius:v$,padding:"7px 16px",border:`1px solid ${p$.GREYSCALE_0_15}`,backgroundColor:p$.GREYSCALE_100_60,color:p$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:p$.GREYSCALE_0_10,border:`1px solid ${p$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:p$.GREYSCALE_0_03,border:`1px solid ${p$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:p$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${p$.MISC_FOCUS_BORDER}`,border:`1px solid ${p$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:p$.GREYSCALE_25,backgroundColor:p$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:p$.GREYSCALE_0_10,border:`1px solid ${p$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:f$,height:24,width:24,padding:7},sizeLarge:{fontSize:h$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:m$,borderRadius:v$}}},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:p$.GREYSCALE_20},tooltip:{backgroundColor:p$.GREYSCALE_20,fontSize:f$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var q$=e=>N$;const F$={mode:"light",primary:{ultraLight:p$.GREEN_ULTRA_LIGHT,light:p$.GREEN_PALE,main:p$.GREEN,dark:p$.GREEN_DARK,extraDark:p$.GREEN_EXTRA_DARK,contrastText:p$.WHITE},secondary:{ultraLight:p$.BLUE_ULTRA_LIGHT,light:p$.BLUE_PALE,main:p$.BLUE,dark:p$.BLUE_DARK,extraDark:p$.BLUE_EXTRA_DARK,contrastText:p$.WHITE},error:{ultraLight:p$.RED_ULTRA_LIGHT,light:p$.RED_PALE,main:p$.RED,dark:p$.RED_DARK,extraDark:p$.RED_EXTRA_DARK,contrastText:p$.WHITE},warning:{ultraLight:p$.ORANGE_ULTRA_LIGHT,light:p$.ORANGE_PALE,main:p$.ORANGE,dark:p$.ORANGE_DARK,extraDark:p$.ORANGE_EXTRA_DARK,contrastText:p$.WHITE},success:{ultraLight:p$.GREEN_ULTRA_LIGHT,light:p$.GREEN_PALE,main:p$.GREEN,dark:p$.GREEN_DARK,extraDark:p$.GREEN_EXTRA_DARK,contrastText:p$.WHITE},info:{ultraLight:p$.BLUE_ULTRA_LIGHT,light:p$.BLUE_PALE,main:p$.BLUE,dark:p$.BLUE_DARK,extraDark:p$.BLUE_EXTRA_DARK,contrastText:p$.WHITE},text:{primary:p$.TEXT_PRIMARY,secondary:p$.TEXT_SECONDARY,disabled:p$.GREYSCALE_0_30},action:{hover:p$.GREYSCALE_0_03,hoverOpacity:.03,selected:p$.GREYSCALE_0_05,selectedOpacity:.05,focus:p$.MISC_FOCUS_BORDER},amethyst:{ultraLight:p$.WHITE,main:p$.PURPLE,light:p$.PURPLE_PALE,dark:p$.PURPLE_DARK,extraDark:p$.GREYSCALE_0_0,contrastText:p$.WHITE},background:{paper:p$.WHITE,default:p$.GREYSCALE_95},divider:p$.GREYSCALE_0_15},z$=e=>F$,j$=(e="light")=>({components:q$(),palette:z$(),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:m$,fontWeightLight:b$,fontWeightRegular:y$,fontWeightMedium:x$,fontWeightBold:S$,htmlFontSize:m$,fontFamily:E$.FONT_FAMILY,button:{fontWeight:x$,fontSize:m$,textTransform:"none"},body1:{fontSize:h$,lineHeight:"24px"},body2:{fontSize:m$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:g$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:h$,fontWeight:x$,lineHeight:"16px"},h6:{fontSize:m$,fontWeight:x$,lineHeight:"16px"},caption:{color:p$.TEXT_SECONDARY},subtitle1:{fontSize:m$,color:p$.TEXT_SECONDARY},subtitle2:{fontSize:f$,color:p$.TEXT_SECONDARY}},shape:{borderRadius:v$}});const $$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=j$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),SP({...n,direction:e})}("ltr");e.render(js.jsx(jn.StrictMode,{children:js.jsx(rA,{theme:p,children:js.jsx(JD,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:js.jsx(Rq,{selections:n,updatePageInfo:t.updatePageInfo,children:js.jsx(rT,{styleService:r,children:js.jsx(d$,{...t})})})})})}))},B$={darker:.15,brighter:.3,opacity:.03},H$={darker:.3,brighter:.5,opacity:.05};var W$,G$,V$,U$;!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"}(W$||(W$={})),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"}(G$||(G$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(V$||(V$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(U$||(U$={}));const Y$=e=>e?`${parseInt(e,10)}px`:void 0,K$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},X$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),Q$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",J$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Z$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function eB(t,n){return e.useMemo((()=>t),n)}const tB={},nB=t=>{const n=e.useMemo((()=>({current:tB})),[]);return n.current=n.current===tB?t:n.current,n},rB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,oB=(t,n,r)=>{var o,i,a;const l=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,s=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:m}=s,h=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,v={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,g)},b=p.slice(0,d),y=e=>b.some((t=>t===e)),x=y(fT),S=new Map(p.map((e=>{var t;return[null!==(t=m[e])&&void 0!==t?t:fT,e]}))),E=f.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==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===fT?fT:m[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:v,isSnapshot:h,hasLimitedData:!h&&v.x<e.qHyperCube.qSize.qcx,hasData:v.x>0&&v.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:b,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o}})({layout:t,flags:n,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[t,l,s,u,n])},iB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=nB(e);return t.current=e,t})(eN(o));return Pk((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(pT,tN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},aB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),lB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:aB({rowsPerPage:n,totalRowCount:e,page:t})}),sB=15,uB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-sB,0),u=Math.max(l+o-sB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=eN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=tN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(pT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var cB={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 dB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(cB).forEach((t=>{e.add(cB[t])}))}}(t)),[t]),{translator:t,language:n}},pB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>YI(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=nB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>fq()),[]),l=eB((e=>{r.current.add(e)}),[r]),s=eB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>Pk((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=oB(i,n,p),h=e.useSelections(),g=_k(i,r),{translator:v,language:b}=dB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...lB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...lB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=aB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:aB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=uB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=iB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,M,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[W$.LineClamp])&&void 0!==i?i:oe(G$.Grid,V$.Grid,U$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[W$.ColumnLineClamp])&&void 0!==l?l:oe(G$.Grid,V$.Grid,U$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=K$(e,null==Q?void 0:Q[W$.Background]))&&void 0!==u?u:oe(G$.Dimension,V$.LabelName,U$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Y$(null==Q?void 0:Q[W$.FontSize]))&&void 0!==d?d:oe(G$.Dimension,V$.LabelName,U$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[W$.FontFamily])&&void 0!==f?f:oe(G$.Dimension,V$.LabelName,U$.FontFamily))&&void 0!==p?p:vt,fontWeight:Q$(null==Q?void 0:Q[W$.FontStyle],bt),fontStyle:J$(null==Q?void 0:Q[W$.FontStyle]),textDecoration:Z$(null==Q?void 0:Q[W$.FontStyle]),color:null!==(m=null!==(h=K$(e,null==Q?void 0:Q[W$.FontColor]))&&void 0!==h?h:oe(G$.Dimension,V$.LabelName,U$.Color))&&void 0!==m?m:xL.TEXT,background:le,hoverBackground:xk(le,B$),activeBackground:xk(le,H$)},dimensionValues:{fontSize:null!==(g=null!==(v=Y$(null==J?void 0:J[W$.FontSize]))&&void 0!==v?v:oe(G$.Dimension,V$.LabelValue,U$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[W$.FontFamily])&&void 0!==y?y:oe(G$.Dimension,V$.LabelValue,U$.FontFamily))&&void 0!==b?b:vt,fontWeight:Q$(null==J?void 0:J[W$.FontStyle],void 0),fontStyle:J$(null==J?void 0:J[W$.FontStyle]),textDecoration:Z$(null==J?void 0:J[W$.FontStyle]),color:null!==(x=null!==(S=K$(e,null==J?void 0:J[W$.FontColor]))&&void 0!==S?S:oe(G$.Dimension,V$.LabelValue,U$.Color))&&void 0!==x?x:xL.TEXT,background:null!==(E=null!==(C=K$(e,null==J?void 0:J[W$.Background]))&&void 0!==C?C:oe(G$.Dimension,V$.LabelValue,U$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Y$(null==Z?void 0:Z[W$.FontSize]))&&void 0!==R?R:oe(G$.Measure,V$.LabelValue,U$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[W$.FontFamily])&&void 0!==k?k:oe(G$.Measure,V$.LabelValue,U$.FontFamily))&&void 0!==L?L:vt,fontWeight:Q$(null==Z?void 0:Z[W$.FontStyle],"normal"),fontStyle:J$(null==Z?void 0:Z[W$.FontStyle]),textDecoration:Z$(null==Z?void 0:Z[W$.FontStyle]),color:null!==(I=null!==(M=K$(e,null==Z?void 0:Z[W$.FontColor]))&&void 0!==M?M:oe(G$.Measure,V$.LabelValue,U$.Color))&&void 0!==I?I:Et.FontSecondary,background:null!==(_=null!==(P=K$(e,null==Z?void 0:Z[W$.Background]))&&void 0!==P?P:oe(G$.Measure,V$.LabelValue,U$.BackgroundColor))&&void 0!==_?_:Et.Transparent},measureLabels:{fontWeight:Q$(null==ee?void 0:ee[W$.FontStyle],"normal"),fontStyle:J$(null==ee?void 0:ee[W$.FontStyle]),textDecoration:Z$(null==ee?void 0:ee[W$.FontStyle]),color:null!==(A=null!==(D=K$(e,null==ee?void 0:ee[W$.FontColor]))&&void 0!==D?D:oe(G$.Measure,V$.LabelName,U$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=K$(e,null==ee?void 0:ee[W$.Background]))&&void 0!==O?O:oe(G$.Measure,V$.LabelName,U$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:Q$(null==te?void 0:te[W$.FontStyle],bt),fontStyle:J$(null==te?void 0:te[W$.FontStyle]),textDecoration:Z$(null==te?void 0:te[W$.FontStyle]),color:null!==(N=null!==(q=K$(e,null==te?void 0:te[W$.FontColor]))&&void 0!==q?q:oe(G$.Total,V$.LabelValue,U$.Color))&&void 0!==N?N:xL.TEXT,background:null!==(F=null!==(z=K$(e,null==te?void 0:te[W$.Background]))&&void 0!==z?z:oe(G$.Total,V$.LabelValue,U$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:Q$(null==ne?void 0:ne[W$.FontStyle],"normal"),fontStyle:J$(null==ne?void 0:ne[W$.FontStyle]),textDecoration:Z$(null==ne?void 0:ne[W$.FontStyle]),color:null!==(j=null!==($=K$(e,null==ne?void 0:ne[W$.FontColor]))&&void 0!==$?$:oe(G$.Null,V$.LabelValue,U$.Color))&&void 0!==j?j:xL.TEXT,background:null!==(B=null!==(H=K$(e,null==ne?void 0:ne[W$.Background]))&&void 0!==H?H:oe(G$.Null,V$.LabelValue,U$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=K$(e,null==re?void 0:re[W$.Border]))&&void 0!==G?G:oe(G$.Grid,V$.Grid,U$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=K$(e,null==re?void 0:re[W$.Divider]))&&void 0!==U?U:oe(G$.Grid,V$.Divider,U$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=K$(e,null==re?void 0:re[W$.Background]))&&void 0!==K?K:oe(G$.Grid,V$.Grid,U$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(X$(se.header.fontSize,ae),X$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(X$(se.measureValues.fontSize,ie),X$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=X$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([rB(t.header),rB(t.dimensionValues),rB({...t.dimensionValues,...t.measureLabels}),rB({...t.dimensionValues,...t.nullValues}),rB({...t.dimensionValues,...t.totalValues}),rB(t.measureValues),rB({...t.measureValues,...t.nullValues}),rB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&tM(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&$$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},fB={version:"3.8.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},mB=e=>({...fB,qHyperCubeDef:{...fB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:mB(e)},data:Pe(e)},ext:Kt(e),component(){pB(e)}}}}));
193
+ `),MF.rippleVisible,OF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),MF.child,MF.childLeaving,NF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.childPulsate,qF,(({theme:e})=>e.transitions.easing.easeInOut)),jF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,IF),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=ul(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(zF,{classes:{ripple:Pl(o.ripple,MF.ripple),rippleVisible:Pl(o.rippleVisible,MF.rippleVisible),ripplePulsate:Pl(o.ripplePulsate,MF.ripplePulsate),child:Pl(o.child,MF.child),childLeaving:Pl(o.childLeaving,MF.childLeaving),childPulsate:Pl(o.childPulsate,MF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(FF,Xt({className:Pl(MF.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var $F=jF;function BF(e){return Rl("MuiButtonBase",e)}var HF=Ll("MuiButtonBase",["root","disabled","focusVisible"]);const WF=["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"],GF=sA("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"},[`&.${HF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=rn(n,WF),A=Hn.useRef(null),D=Hn.useRef(null),T=il(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=bl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return ol((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=ol((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=ol((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=ol((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=il(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},BF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs(GF,Xt({as:ie,className:Pl(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx($F,Xt({ref:T,center:o},M)):null]}))}));var UF=VF;var YF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));const KF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],XF={entering:{opacity:1},entered:{opacity:1}},QF=Hn.forwardRef((function(e,t){const n=PP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=aE}=e,b=rn(e,KF),y=Hn.useRef(null),x=il(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{EF(e);const r=CF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=CF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},XF[e],h,a.props.style),ref:x},t))}))}));var JF=QF;function ZF(e){return Rl("MuiBackdrop",e)}Ll("MuiBackdrop",["root","invisible"]);const ez=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tz=sA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({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"}))),nz=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({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=JF,transitionDuration:g}=i,v=rn(i,ez),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},ZF,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Xt({in:p,timeout:g},v,{children:Xs.jsx(tz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Pl(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var rz=nz;var oz=Ll("MuiBox",["root"]);const iz=IP(),az=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(i_);return Hn.forwardRef((function(e,a){const l=p_(n),s=h_(e),{className:u,component:c="div"}=s,d=rn(s,v_);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:oI,defaultTheme:iz,defaultClassName:oz.root,generateClassName:Cl.generate});var lz=az;function sz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uz(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function cz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&sz(e,o)}))}function dz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function pz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${uz(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${uz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const fz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mz(e){const t=[],n=[];return Array.from(e.querySelectorAll(fz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hz(){return!0}function gz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=mz,isEnabled:a=hz,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const vz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);cz(t,e.mount,e.modalRef,r,!0);const o=dz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=dz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=pz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=dz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sz(e.modalRef,t),cz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=vz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&sz(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Al(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function yz(e){return Rl("MuiModal",e)}Ll("MuiModal",["root","hidden","backdrop"]);const xz=["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"],Sz=sA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ez=sA(rz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=SF({name:"MuiModal",props:e}),{BackdropComponent:u=Ez,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=rn(s,xz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=bz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:Sz,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=Ol({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Pl(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Ol({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Pl(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(YF,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Xt({},V,{children:[!w&&u?Xs.jsx(H,Xt({},U)):null,Xs.jsx(gz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var wz=Cz;var Rz=Ll("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Lz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return`scale(${e}, ${e**2})`}const Mz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},Iz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_z=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=rn(e,Lz),v=ul(),b=Hn.useRef(),y=PP(),x=Hn.useRef(null),S=il(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{EF(e);const{duration:n,delay:r,easing:o}=CF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Iz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=CF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Iz?o:.666*o,delay:Iz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kz(.75),c&&c(e)})),M=E(d);return Xs.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:kz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Mz[e],f,o.props.style),ref:S},t))}))}));_z.muiSupportAuto=!0;var Pz=_z;var Az=Hn.createContext({});function Dz(e){return Rl("MuiList",e)}Ll("MuiList",["root","padding","dense","subheader"]);const Tz=["children","className","component","dense","disablePadding","subheader"],Oz=sA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Nz=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Tz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dz,t)})(d);return Xs.jsx(Az.Provider,{value:c,children:Xs.jsxs(Oz,Xt({as:i,className:Pl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var qz=Ll("MuiListItemIcon",["root","alignItemsFlexStart"]);var Fz=Ll("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const zz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $z(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wz=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,zz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rl((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${yl(el(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=il(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Nz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=el(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hz(t,r,s,l,jz);else if("ArrowUp"===n)e.preventDefault(),Hz(t,r,s,l,$z);else if("Home"===n)e.preventDefault(),Hz(t,null,s,l,jz);else if("End"===n)e.preventDefault(),Hz(t,null,s,l,$z);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bz(r,o);o.previousKeyMatched&&(s||Hz(t,r,!1,l,jz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gz(e){return Rl("MuiPopover",e)}Ll("MuiPopover",["root","paper"]);const Vz=["onEntering"],Uz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yz=["slotProps"];function Kz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jz(e){return"function"==typeof e?e():e}const Zz=sA(wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ej=sA(kF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var tj=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Pz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Vz),L=rn(i,Uz),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=il(M,k.ref),_=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},Gz,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jz(l),t=(e&&1===e.nodeType?e:el(M.current).body).getBoundingClientRect();return{top:t.top+Kz(t,s.vertical),left:t.left+Xz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Kz(e,x.vertical),horizontal:Xz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Qz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=tl(Jz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Za((()=>{q()})),t=tl(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?el(Jz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Zz,$=null!=(o=null==b?void 0:b.paper)?o:ej,B=Ol({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Pl(P.paper,null==k?void 0:k.className)}),H=Ol({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Pl(P.root,p)}),{slotProps:W}=H,G=rn(H,Yz);return Xs.jsx(j,Xt({},G,!Il(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Xt({},B,{children:d}))}))}))}));function nj(e){return Rl("MuiMenu",e)}Ll("MuiMenu",["root","paper","list"]);const rj=["onEntering"],oj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ij={vertical:"top",horizontal:"right"},aj={vertical:"top",horizontal:"left"},lj=sA(tj,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sj=sA(ej,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uj=sA(Wz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var cj=Hn.forwardRef((function(e,t){var n,r;const o=SF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,rj),x=rn(o,oj),S=(()=>{const e=Hn.useContext(R_);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},nj,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:sj,M=null!=(r=b.paper)?r:p,I=Ol({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Ol({elementType:k,externalSlotProps:M,ownerState:E,className:C.paper});return Xs.jsx(lj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ij:aj,slots:{paper:k,root:v.root},slotProps:{root:I,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:Xs.jsx(uj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Pl(C.list,u.className),children:a}))}))}));function dj(e){return Rl("MuiMenuItem",e)}var pj=Ll("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mj=sA(UF,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},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"}},[`&.${pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:z_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:z_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:z_(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})`:z_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rz.inset}`]:{marginLeft:52},[`& .${Fz.root}`]:{marginTop:0,marginBottom:0},[`& .${Fz.inset}`]:{paddingLeft:36},[`& .${qz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qz.root} svg`]:{fontSize:"1.25rem"}}))));var hj=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,fj),f=Hn.useContext(Az),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);rl((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dj,a))})(n),b=il(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Az.Provider,{value:m,children:Xs.jsx(mj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Pl(v.focusVisible,s),className:Pl(v.root,d)},p,{ownerState:g,classes:v}))})}));const gj=sA(lz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),vj=sA("div")({position:"absolute",left:0,bottom:0}),bj=sA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...wt,justifyContent:null!=e?e:wt.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),yj=sA("div")((()=>({...wt}))),xj=sA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Sj=sA(cj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ej=sA(hj,{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}}}))),Cj=sA("span")({textOverflow:"ellipsis",overflow:"hidden"}),wj=sA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:pT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Rj={[hD.SORTING]:!0,[hD.SELECTIONS]:!0,[hD.SEARCHING]:!0},Lj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=Hn.useRef(null),g=uT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=oT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:M,hoverBackground:I,activeBackground:_}=g.header,P=Hn.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=bF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=Qq($,"flex-start",S);return Xs.jsxs(gj,{className:Qe,title:t.label,interactions:y,background:T?_:M,hoverBackground:I,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[Xs.jsxs(bj,{children:[A&&Xs.jsx(yj,{children:Xs.jsx(gF,{height:12})}),Xs.jsx(xj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:Xs.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Rj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),Xs.jsx(vj,{ref:h}),Xs.jsx(vj,{ref:P})]}),Xs.jsx(xF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},kj=({rowSpan:e,columnSpan:t})=>{const n=uT();return e>0&&t>0?Xs.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ij=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),_j=Hn.forwardRef(Ij);function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),Dj=Hn.forwardRef(Aj),Tj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq(),{setIsAdjustingWidth:l}=vF([e]);if(!(!!i.active&&!a))return null;const s=yF(o,{isLeftColumn:!0});return Xs.jsx(mA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*hT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*hT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),qj=Hn.forwardRef(Nj),Fj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=oT(),{open:c,setOpen:d,handleOpenMenu:p}=bF({interactions:s,dataModel:n});return Xs.jsxs(Ej,{component:"div",onClick:p,isActive:c,children:[Xs.jsx(Cj,{children:e.label}),Xs.jsxs(wj,{className:"indent-mode-dropdown-more",visible:c,children:[Xs.jsx(qj,{}),e.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Rj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Xs.jsx(vj,{ref:i}),Xs.jsx(vj,{ref:o})]})]})]})},zj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===ST,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===ST;return!(r&&a&&l)&&((null==t?void 0:t.id)!==ST&&e<n.length-1)},jj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=uT(),{interactions:u}=oT(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=vF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Xs.jsxs(gj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!kq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[Xs.jsxs(bj,{justifyContent:"flex-start",children:[Xs.jsx(xj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Xs.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Xs.jsx(Dj,{}):Xs.jsx(_j,{}),Xs.jsx(vj,{ref:p})]}),Xs.jsx(Sj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==ST&&Xs.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Xs.jsx(Fj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),zj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Xs.jsx(EA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Xs.jsx(Tj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},$j={display:"grid",width:"fit-content"},Bj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Xs.jsxs("div",{style:{...$j,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Xs.jsx(kj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(Xs.jsx(jj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(Xs.jsx(Lj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Hj=Hn.memo(Bj);const Wj=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Gj=(e,t)=>{JM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Vj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===gT.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Qq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Qq(u,i,r)},Uj=()=>{},Yj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=uT(),{interactions:f,env:{flags:m}}=oT(),{select:h,isLocked:g}=Pq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return Xs.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,..._t(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:$q(x),background:Nq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Vj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Uj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Kj=e=>e.stopPropagation(),Xj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(Hw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Kj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Qj=({children:e,textStyle:t})=>Xs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Jj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Pq(),{interactions:i}=oT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...Mt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:qq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Fq({cell:e,styleService:t}),fontStyle:zq({cell:e,styleService:t}),textDecoration:jq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==gT.Image||e.isTotal?(e.representation.type!==gT.Link||o||e.isTotal||(a=Xs.jsx(Xj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Xs.jsx(Qj,{textStyle:l,children:a})):Xs.jsx(Xq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Zj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==gT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},e$=({index:e,style:t,data:n})=>{const r=uT(),{isSelected:o}=Pq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=vF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=nq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return Xs.jsx(vq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return Xs.jsxs(Yj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[Xs.jsxs(bq,{verticalAlign:Zj(m),width:yq(m.representation),right:m.isLeftColumn?void 0:4,children:[Xs.jsx(Wq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),Xs.jsx(Jj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),Xs.jsx(xF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var t$=Wn.memo(e$,tq);const n$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},r$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},o$=(e,t)=>n=>{e.current&&(e.current[t]=n)},i$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},a$={overflow:"hidden",willChange:"auto",flexShrink:0},l$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=uT();Gj(t,a),Wj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Xs.jsx("div",{style:{...i$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=BT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=r$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return Xs.jsx(QN,{ref:o$(t,p),style:{...a$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:v,children:t$},h)}))})};var s$=Hn.memo(l$);const u$={overflow:"hidden",willChange:"auto"},c$={...Rt,borderWidth:"0px 0px 0px 1px"},d$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=uT(),p={...c$,borderColor:c,height:o};Gj(t,a),Wj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Xs.jsx("div",{style:{width:r,height:o,...c$}}):Xs.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=r$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?BT(g):`empty ${c}`;return Xs.jsx(QN,{ref:o$(t,c),style:u$,height:n(),width:r,itemCount:p,itemSize:n$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:m,children:t$},v)}))})};var p$=Hn.memo(d$);const f$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=uT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=pN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=pN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(dN(i,o,0)),visibleTopDimensionInfo:u.map(dN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=iN(o,r,i,c,d),y=uN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:M,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=oT(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=cN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=cN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const M=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}M()}),[M,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:M,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=uT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=uT(),{measureText:s}=KM(l.header),u=DT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+St,p=d<t,f=Hn.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+mT;return r&&d+fT<=a&&(c=!0,d+=fT),d+pT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return Hn.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:M,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:M,horizontalScrollbarHeight:I}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=oT();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Xs.jsx(gN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:Xs.jsx(fN,{...U.fullSize,children:Xs.jsxs(vN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&Xs.jsx(gN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:Xs.jsx(fN,{isLeftGrid:!0,...Y.containers.fullSize,children:Xs.jsxs(vN,{isLeftGrid:!0,...Y.containers.sticky,children:[Xs.jsx(Hj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),Xs.jsx(s$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Xs.jsx(gN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:Xs.jsx(fN,{...K.containers.fullSize,children:Xs.jsxs(vN,{...K.containers.sticky,children:[Xs.jsx(p$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),Xs.jsx(fF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},m$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=oT(),{layout:u,hasData:c}=t;return Xs.jsxs(Xs.Fragment,{children:[c&&Xs.jsx(f$,{...e}),Xs.jsx(aT,{translator:n,layoutService:t}),Xs.jsx(tT,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},h$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},g$=12,v$=14,b$=16,y$=24,x$=3,S$=300,E$=400,C$=600,w$=700,R$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(h$.GREYSCALE_0,.05),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var L$;function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(null,arguments)}nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var M$,I$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),L$||(L$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _$(){return _$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_$.apply(null,arguments)}var P$=function(e){return Hn.createElement("svg",_$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),M$||(M$=Hn.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 A$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var D$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),T$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),O$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),N$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),q$=({className:e})=>Wn.createElement(A$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),F$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:h$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const z$={MuiAccordion:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:h$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(I$,{"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 ${h$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,borderRadius:x$,backgroundColor:h$.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 ${h$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:h$.WHITE,color:h$.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:x$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.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:x$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:h$.PURPLE,"&.Mui-focusVisible":{borderColor:h$.PURPLE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:h$.GREEN,"&.Mui-focusVisible":{borderColor:h$.GREEN,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:h$.BLUE,"&.Mui-focusVisible":{borderColor:h$.BLUE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:h$.ORANGE,"&.Mui-focusVisible":{borderColor:h$.ORANGE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:h$.RED,"&.Mui-focusVisible":{borderColor:h$.RED,boxShadow:`0 0 0 3px ${y_(h$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:h$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:h$.PURPLE_PALE},"&:active":{backgroundColor:h$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:h$.PURPLE_PALE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:h$.ORANGE_PALE},"&:active":{backgroundColor:h$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:h$.ORANGE_PALE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:h$.RED_PALE},"&:active":{backgroundColor:h$.RED_DARK},"&.Mui-focusVisible":{borderColor:h$.RED_PALE,boxShadow:`0 0 0 3px ${y_(h$.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:h$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:h$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:x$,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:g$,borderRadius:x$,color:h$.TEXT_PRIMARY,backgroundColor:h$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:h$.GREYSCALE_0_05,color:h$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:h$.GREEN,borderColor:h$.GREEN},"&.MuiChip-outlinedInfo":{color:h$.BLUE,borderColor:h$.BLUE},"&.MuiChip-outlinedWarning":{color:h$.ORANGE,borderColor:h$.ORANGE},"&.MuiChip-outlinedError":{color:h$.RED,borderColor:h$.RED}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:x$,boxShadow:"none",backgroundColor:h$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:h$.GREEN,borderColor:h$.GREEN},outlinedSecondary:{color:h$.BLUE,borderColor:h$.BLUE},label:{fontFamily:R$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(I$,{"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:x$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:x$,fontSize:v$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:h$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${h$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:h$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:h$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:x$,border:`solid 1px ${h$.GREYSCALE_0_15}`,color:h$.GREYSCALE_0_60,marginRight:0,width:y$,height:y$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${h$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:x$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:h$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:v$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:g$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:h$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:h$.GREYSCALE_25,fontSize:g$,fontFamily:R$.FONT_FAMILY,fontWeight:C$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:h$.TEXT_PRIMARY},"&.Mui-error":{color:h$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:h$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:E$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:h$.TEXT_SECONDARY,content:"'(required)'",fontWeight:E$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:v$,lineHeight:"16px",backgroundColor:h$.WHITE,borderRadius:x$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_05}`,borderColor:h$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.RED}`,boxShadow:`0px 0px 0px 1px ${h$.RED}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_10}`,borderColor:h$.GREYSCALE_0_10,backgroundColor:h$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:h$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:h$.GREYSCALE_0_15,borderRadius:x$,boxShadow:`inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(I$,{...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:h$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:h$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&:focus":{backgroundColor:h$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:h$.GREYSCALE_0_30,"&:hover":{backgroundColor:h$.GREYSCALE_0_0,borderColor:h$.GREYSCALE_0_15},"& ~svg":{color:h$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:x$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:h$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:v$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:g$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:g$,fontWeight:C$,color:h$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:C$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(N$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:h$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:h$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:h$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(F$,null),checkedIcon:Wn.createElement(D$,null),indeterminateIcon:Wn.createElement(T$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:x$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:h$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:h$.GREYSCALE_0_55,color:h$.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:h$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:h$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:h$.GREYSCALE_0_55,"&:hover":{color:h$.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:h$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:h$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:v$,color:h$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:C$},secondary:{fontSize:g$,color:h$.GREYSCALE_45,fontWeight:E$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:v$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:v$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:h$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:g$,borderBottom:`solid 1px ${h$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:v$,color:h$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.RED}}},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.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:h$.GREEN,height:"24px","&.Mui-disabled":{color:h$.GREYSCALE_0_15}},rail:{backgroundColor:h$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$,boxShadow:`inset 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.WHITE,boxShadow:`0px 1px 2px 0px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`,"&:hover":{borderRadius:x$,boxShadow:`0 2px 4px 0 ${h$.GREYSCALE_0_30}, 0 0 0 1px ${h$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:h$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:h$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:h$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:h$.GREYSCALE_0_15},markLabel:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:h$.WHITE,color:h$.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:h$.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:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:h$.GREYSCALE_0_15,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.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:v$,fontWeight:C$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${h$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,backgroundColor:h$.GREYSCALE_0_03,borderRadius:x$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:h$.GREYSCALE_25,"&.Mui-selected":{color:h$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:v$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:x$,"&:hover":{backgroundColor:`${h$.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 ${h$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${h$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:x$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderRight:`1px solid ${h$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:C$,backgroundColor:h$.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:h$.GREYSCALE_98,borderBottom:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderTop:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05,"&:hover":{backgroundColor:h$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:h$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(q$,{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 ${h$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:v$,borderRadius:x$,padding:"7px 16px",border:`1px solid ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_60,color:h$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:h$.GREYSCALE_0_03,border:`1px solid ${h$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:h$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`,border:`1px solid ${h$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:h$.GREYSCALE_25,backgroundColor:h$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:g$,height:24,width:24,padding:7},sizeLarge:{fontSize:b$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:v$,borderRadius:x$}}},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:h$.GREYSCALE_20},tooltip:{backgroundColor:h$.GREYSCALE_20,fontSize:g$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var j$=e=>z$;const $$={mode:"light",primary:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},secondary:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},error:{ultraLight:h$.RED_ULTRA_LIGHT,light:h$.RED_PALE,main:h$.RED,dark:h$.RED_DARK,extraDark:h$.RED_EXTRA_DARK,contrastText:h$.WHITE},warning:{ultraLight:h$.ORANGE_ULTRA_LIGHT,light:h$.ORANGE_PALE,main:h$.ORANGE,dark:h$.ORANGE_DARK,extraDark:h$.ORANGE_EXTRA_DARK,contrastText:h$.WHITE},success:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},info:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},text:{primary:h$.TEXT_PRIMARY,secondary:h$.TEXT_SECONDARY,disabled:h$.GREYSCALE_0_30},action:{hover:h$.GREYSCALE_0_03,hoverOpacity:.03,selected:h$.GREYSCALE_0_05,selectedOpacity:.05,focus:h$.MISC_FOCUS_BORDER},amethyst:{ultraLight:h$.WHITE,main:h$.PURPLE,light:h$.PURPLE_PALE,dark:h$.PURPLE_DARK,extraDark:h$.GREYSCALE_0_0,contrastText:h$.WHITE},background:{paper:h$.WHITE,default:h$.GREYSCALE_95},divider:h$.GREYSCALE_0_15},B$=e=>$$,H$=(e="light")=>({components:j$(),palette:B$(),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:v$,fontWeightLight:S$,fontWeightRegular:E$,fontWeightMedium:C$,fontWeightBold:w$,htmlFontSize:v$,fontFamily:R$.FONT_FAMILY,button:{fontWeight:C$,fontSize:v$,textTransform:"none"},body1:{fontSize:b$,lineHeight:"24px"},body2:{fontSize:v$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:y$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:b$,fontWeight:C$,lineHeight:"16px"},h6:{fontSize:v$,fontWeight:C$,lineHeight:"16px"},caption:{color:h$.TEXT_SECONDARY},subtitle1:{fontSize:v$,color:h$.TEXT_SECONDARY},subtitle2:{fontSize:g$,color:h$.TEXT_SECONDARY}},shape:{borderRadius:x$}});const W$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=H$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),IP({...n,direction:e})}("ltr");e.render(Xs.jsx(Wn.StrictMode,{children:Xs.jsx(cA,{theme:p,children:Xs.jsx(iT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Xs.jsx(Aq,{selections:n,updatePageInfo:t.updatePageInfo,children:Xs.jsx(cT,{styleService:r,children:Xs.jsx(m$,{...t})})})})})}))},G$={darker:.15,brighter:.3,opacity:.03},V$={darker:.3,brighter:.5,opacity:.05};var U$,Y$,K$,X$;!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"}(U$||(U$={})),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"}(Y$||(Y$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(K$||(K$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(X$||(X$={}));const Q$=e=>e?`${parseInt(e,10)}px`:void 0,J$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},Z$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),eB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",tB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",nB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function rB(t,n){return e.useMemo((()=>t),n)}const oB={},iB=t=>{const n=e.useMemo((()=>({current:oB})),[]);return n.current=n.current===oB?t:n.current,n},aB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,lB=(t,n,r)=>{var o,i,a;const l=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,s=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:m}=s,h=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,v={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,g)},b=p.slice(0,d),y=e=>b.some((t=>t===e)),x=y(xT),S=new Map(p.map((e=>{var t;return[null!==(t=m[e])&&void 0!==t?t:xT,e]}))),E=f.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==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===xT?xT:m[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:v,isSnapshot:h,hasLimitedData:!h&&v.x<e.qHyperCube.qSize.qcx,hasData:v.x>0&&v.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:b,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o}})({layout:t,flags:n,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[t,l,s,u,n])},sB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=iB(e);return t.current=e,t})(lN(o));return Dk((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(yT,sN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},uB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),cB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:uB({rowsPerPage:n,totalRowCount:e,page:t})}),dB=15,pB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-dB,0),u=Math.max(l+o-dB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=lN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=sN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(yT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var fB={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 mB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(fB).forEach((t=>{e.add(fB[t])}))}}(t)),[t]),{translator:t,language:n}},hB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>XM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=iB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>xq()),[]),l=rB((e=>{r.current.add(e)}),[r]),s=rB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>Dk((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=lB(i,n,p),h=e.useSelections(),g=Ak(i,r),{translator:v,language:b}=mB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...cB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...cB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=uB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:uB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=pB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=sB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,M,I,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[U$.LineClamp])&&void 0!==i?i:oe(Y$.Grid,K$.Grid,X$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[U$.ColumnLineClamp])&&void 0!==l?l:oe(Y$.Grid,K$.Grid,X$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=J$(e,null==Q?void 0:Q[U$.Background]))&&void 0!==u?u:oe(Y$.Dimension,K$.LabelName,X$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Q$(null==Q?void 0:Q[U$.FontSize]))&&void 0!==d?d:oe(Y$.Dimension,K$.LabelName,X$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[U$.FontFamily])&&void 0!==f?f:oe(Y$.Dimension,K$.LabelName,X$.FontFamily))&&void 0!==p?p:vt,fontWeight:eB(null==Q?void 0:Q[U$.FontStyle],bt),fontStyle:tB(null==Q?void 0:Q[U$.FontStyle]),textDecoration:nB(null==Q?void 0:Q[U$.FontStyle]),color:null!==(m=null!==(h=J$(e,null==Q?void 0:Q[U$.FontColor]))&&void 0!==h?h:oe(Y$.Dimension,K$.LabelName,X$.Color))&&void 0!==m?m:EL.TEXT,background:le,hoverBackground:Ek(le,G$),activeBackground:Ek(le,V$)},dimensionValues:{fontSize:null!==(g=null!==(v=Q$(null==J?void 0:J[U$.FontSize]))&&void 0!==v?v:oe(Y$.Dimension,K$.LabelValue,X$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[U$.FontFamily])&&void 0!==y?y:oe(Y$.Dimension,K$.LabelValue,X$.FontFamily))&&void 0!==b?b:vt,fontWeight:eB(null==J?void 0:J[U$.FontStyle],void 0),fontStyle:tB(null==J?void 0:J[U$.FontStyle]),textDecoration:nB(null==J?void 0:J[U$.FontStyle]),color:null!==(x=null!==(S=J$(e,null==J?void 0:J[U$.FontColor]))&&void 0!==S?S:oe(Y$.Dimension,K$.LabelValue,X$.Color))&&void 0!==x?x:EL.TEXT,background:null!==(E=null!==(C=J$(e,null==J?void 0:J[U$.Background]))&&void 0!==C?C:oe(Y$.Dimension,K$.LabelValue,X$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Q$(null==Z?void 0:Z[U$.FontSize]))&&void 0!==R?R:oe(Y$.Measure,K$.LabelValue,X$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[U$.FontFamily])&&void 0!==k?k:oe(Y$.Measure,K$.LabelValue,X$.FontFamily))&&void 0!==L?L:vt,fontWeight:eB(null==Z?void 0:Z[U$.FontStyle],"normal"),fontStyle:tB(null==Z?void 0:Z[U$.FontStyle]),textDecoration:nB(null==Z?void 0:Z[U$.FontStyle]),color:null!==(M=null!==(I=J$(e,null==Z?void 0:Z[U$.FontColor]))&&void 0!==I?I:oe(Y$.Measure,K$.LabelValue,X$.Color))&&void 0!==M?M:Et.FontSecondary,background:null!==(_=null!==(P=J$(e,null==Z?void 0:Z[U$.Background]))&&void 0!==P?P:oe(Y$.Measure,K$.LabelValue,X$.BackgroundColor))&&void 0!==_?_:Et.Transparent},measureLabels:{fontWeight:eB(null==ee?void 0:ee[U$.FontStyle],"normal"),fontStyle:tB(null==ee?void 0:ee[U$.FontStyle]),textDecoration:nB(null==ee?void 0:ee[U$.FontStyle]),color:null!==(A=null!==(D=J$(e,null==ee?void 0:ee[U$.FontColor]))&&void 0!==D?D:oe(Y$.Measure,K$.LabelName,X$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=J$(e,null==ee?void 0:ee[U$.Background]))&&void 0!==O?O:oe(Y$.Measure,K$.LabelName,X$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:eB(null==te?void 0:te[U$.FontStyle],bt),fontStyle:tB(null==te?void 0:te[U$.FontStyle]),textDecoration:nB(null==te?void 0:te[U$.FontStyle]),color:null!==(N=null!==(q=J$(e,null==te?void 0:te[U$.FontColor]))&&void 0!==q?q:oe(Y$.Total,K$.LabelValue,X$.Color))&&void 0!==N?N:EL.TEXT,background:null!==(F=null!==(z=J$(e,null==te?void 0:te[U$.Background]))&&void 0!==z?z:oe(Y$.Total,K$.LabelValue,X$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:eB(null==ne?void 0:ne[U$.FontStyle],"normal"),fontStyle:tB(null==ne?void 0:ne[U$.FontStyle]),textDecoration:nB(null==ne?void 0:ne[U$.FontStyle]),color:null!==(j=null!==($=J$(e,null==ne?void 0:ne[U$.FontColor]))&&void 0!==$?$:oe(Y$.Null,K$.LabelValue,X$.Color))&&void 0!==j?j:EL.TEXT,background:null!==(B=null!==(H=J$(e,null==ne?void 0:ne[U$.Background]))&&void 0!==H?H:oe(Y$.Null,K$.LabelValue,X$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=J$(e,null==re?void 0:re[U$.Border]))&&void 0!==G?G:oe(Y$.Grid,K$.Grid,X$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=J$(e,null==re?void 0:re[U$.Divider]))&&void 0!==U?U:oe(Y$.Grid,K$.Divider,X$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=J$(e,null==re?void 0:re[U$.Background]))&&void 0!==K?K:oe(Y$.Grid,K$.Grid,X$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(Z$(se.header.fontSize,ae),Z$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(Z$(se.measureValues.fontSize,ie),Z$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=Z$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([aB(t.header),aB(t.dimensionValues),aB({...t.dimensionValues,...t.measureLabels}),aB({...t.dimensionValues,...t.nullValues}),aB({...t.dimensionValues,...t.totalValues}),aB(t.measureValues),aB({...t.measureValues,...t.nullValues}),aB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&rI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&W$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},gB={version:"3.8.3",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:[]},vB=e=>({...gB,qHyperCubeDef:{...gB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:vB(e)},data:Pe(e)},ext:Kt(e),component(){hB(e)}}}}));