@nebula.js/sn-pivot-table 3.3.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.3.0
3
- * Copyright (c) 2024 QlikTech International AB
2
+ * @nebula.js/sn-pivot-table v3.4.1
3
+ * Copyright (c) 2025 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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Ie});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function 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),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},L=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function _(e){return void 0===e}function P(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(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]=_(e[n||t])?i:e[t],e=e[n||t]}})),e}function M(e,t){var n=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!M(e[r],t[r]))return!1;return!0}return e===t}k.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);M(i,a)||P(t,o)||(_(a)?r.push({op:"add",path:l,value:i}):A(i)&&A(a)?r=r.concat(k.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&_(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(M(t,o))return r;if(!_(t[0])&&_(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(k.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){_(t[o])&&!P(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=I(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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(A(a)&&A(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!P(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=I(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const D=k,O=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 T="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)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===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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(T))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 G={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var 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 W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function 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===W)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(W))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),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(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",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ae=Le;function _e(e){return _e="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},_e(e)}var Pe={accumulation:z,movingAverage:G,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ie={modifiers:Pe,apply:De,applyModifiers:Oe,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[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 Me={};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;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[n.id].isFirstTime=!1,r&&"object"===_e(r))return Oe({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=Me[n.id].lastReloadTime;if(Me[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return 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 h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(n++,"object"!==_e(Pe[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=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ge(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({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"===_e(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 Te(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(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 Te(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;Ae.isValid(n)||Ae.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Pe[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)");Pe[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:Pe[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 Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Pe[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)):Te(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 Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Pe[e.type]}))}(e)?Ae.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(Pe[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||Pe[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:!Ae.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"===_e(t)&&(t.disabled||!Pe[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ge(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ge(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(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"!==_e(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[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):O(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"===_e(e)&&!e.disabled&&Pe[e.type]&&Pe[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=We(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)?(Me[t.id].masterItemSubscriber=Me[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()}))}}),Me[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 h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},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 w(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 C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const _=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},P=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},I=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},M=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:[]}},O=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=w(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=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=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=C(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=C(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,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),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 L(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var 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}}(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 A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.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 G(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,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,h=void 0===f||f,m={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,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?M():C,k=s.defaultMeasure,L=void 0===k?D():k;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:L}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),P("qMaxStackedCells",v,b),P("qNoOfLeftDims",v,b),I("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),I("qMode",v,b,"S"),I("qReductionMode",v,b,"N"),I("qSortbyYValue",v,b),I("qIndentMode",v,b),I("qShowTotalsAbove",v,b),_(g,t,r),m.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:A}),p&&G(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&G(m.qProperty,"dynamicScript"),m}};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},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?G(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):G(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 we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(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=we(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=we(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 ke="qHyperCubeDef.qMeasures",Le="conditionalColoring",Ae="measures",_e="qDef.conditionalColoring";const Pe={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Le,arrayName:Ae,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:_e,arrayName:Ae,quarantineName:Le})}};var Ie="qHyperCubeDef.qMeasures",Me="measures",De="qHyperCubeDef.qDimensions",Oe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Me,itemPath:ze}),Ce({properties:e,arrayPath:De,quarantineName:je,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Me,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Ne,itemPath:ze}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:W,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:G,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Pe,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 h(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var m=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=m.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&m.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||m.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(!m.call(e,t))return;if(b)return b(e,t).value}return e[t]};function w(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C(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 k=1/.7,L="\\s*([+-]?\\d+)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P=/^#([0-9a-f]{3,8})$/,I=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),M=new RegExp(`^rgb\\(${_},${_},${_}\\)$`),D=new RegExp(`^rgba\\(${L},${L},${L},${A}\\)$`),O=new RegExp(`^rgba\\(${_},${_},${_},${A}\\)$`),T=new RegExp(`^hsl\\(${A},${_},${_}\\)$`),N=new RegExp(`^hsla\\(${A},${_},${_},${A}\\)$`),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=P.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new W(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=I.exec(e))?new W(t[1],t[2],t[3],1):(t=M.exec(e))?new W(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=O.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=T.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 W(NaN,NaN,NaN,0):null}function $(e){return new W(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new W(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new W((e=e.rgb()).r,e.g,e.b,e.opacity):new W}function G(e,t,n,r){return 1===arguments.length?H(e):new W(e,t,n,null==r?1:r)}function W(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)}w(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}),w(W,G,C(R,{brighter(e){return e=null==e?k:Math.pow(k,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new W(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})),w(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),C(R,{brighter(e){return e=null==e?k:Math.pow(k,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 W(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 he)return me(e);e instanceof W||(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 he(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function me(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)}w(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),C(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 W(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)}})),w(he,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new he(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new he(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new he(e,t,n,null==r?1:r)}),C(R,{brighter(e){return new he(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new he(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return me(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=G(e)).r,(t=G(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,ye=["__proto__","constructor"];function xe(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!ye.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 Se(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 Ee(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ce)):void 0===t&&(t=we);for(var n,r,o,i,a,l=new Le(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 Le(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ke)}function we(e){return e.children}function Ce(e){return Array.isArray(e)?e[1]:null}function Re(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ke(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Le(e){this.data=e,this.depth=this.height=0,this.parent=null}function Ae(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")}}]}}Le.prototype=Ee.prototype={constructor:Le,count:function(){return this.eachAfter(Se)},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 Ee(this).eachBefore(Re)},[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)}},be=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,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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function 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),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},L=Array.isArray;function _(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function A(e){return void 0===e}function I(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]=A(e[n||t])?i:e[t],e=e[n||t]}})),e}function M(e,t){var n=!0;if(_(e)&&_(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!M(e[r],t[r]))return!1;return!0}return e===t}k.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);M(i,a)||I(t,o)||(A(a)?r.push({op:"add",path:l,value:i}):_(i)&&_(a)?r=r.concat(k.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&A(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(M(t,o))return r;if(!A(t[0])&&A(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(k.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){A(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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(_(a)&&_(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(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);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const D=k,O=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 T="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)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===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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(T))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 H(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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var 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,B)},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(H(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(H(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(H(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(H(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(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function 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===W)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(W))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),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(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",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const _e=Le;function Ae(e){return Ae="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},Ae(e)}var Ie={accumulation:z,movingAverage:G,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ie,apply:De,applyModifiers:Oe,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:_e.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[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 Me={};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;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[n.id].isFirstTime=!1,r&&"object"===Ae(r))return Oe({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=Me[n.id].lastReloadTime;if(Me[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return 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);He(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ge(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({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"===Ae(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 Te(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(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),He(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 Te(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;_e.isValid(n)||_e.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(l++,"object"!==Ae(Ie[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)");Ie[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:Ie[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 Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[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}),Be(n)):Te(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 Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&!Ie[e.type]}))}(e)?_e.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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(Ie[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||Ie[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 He(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:!_e.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ae(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ge(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ge(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(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"!==Ae(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[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):O(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"===Ae(e)&&!e.disabled&&Ie[e.type]&&Ie[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=We(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)?(Me[t.id].masterItemSubscriber=Me[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()}))}}),Me[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:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},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 w(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 C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;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 _(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 A=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},I=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},M=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:[]}},O=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=w(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=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=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=C(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=C(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,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),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 L(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var 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}}(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)}))}},H=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 _(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 _(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)?_(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)}))}},B=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 G(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,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,h=void 0===f||f,m={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,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?M():C,k=s.defaultMeasure,L=void 0===k?D():k;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:L}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),I("qMaxStackedCells",v,b),I("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),A(g,t,r),m.qProperty=g;var _=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:_}),p&&G(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&G(m.qProperty,"dynamicScript"),m}};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},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?G(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):G(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 we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(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=we(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=we(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 ke="qHyperCubeDef.qMeasures",Le="conditionalColoring",_e="measures",Ae="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Le,arrayName:_e,itemPath:Ae})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Ae,arrayName:_e,quarantineName:Le})}};var Pe="qHyperCubeDef.qMeasures",Me="measures",De="qHyperCubeDef.qDimensions",Oe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Me,itemPath:ze}),Ce({properties:e,arrayPath:De,quarantineName:je,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Me,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:Ne,itemPath:ze}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},He={hypercube:W,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:G,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,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 h(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var m=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=m.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&m.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||m.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(!m.call(e,t))return;if(b)return b(e,t).value}return e[t]};function w(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C(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 k=1/.7,L="\\s*([+-]?\\d+)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),M=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),D=new RegExp(`^rgba\\(${L},${L},${L},${_}\\)$`),O=new RegExp(`^rgba\\(${A},${A},${A},${_}\\)$`),T=new RegExp(`^hsl\\(${_},${A},${A}\\)$`),N=new RegExp(`^hsla\\(${_},${A},${A},${_}\\)$`),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=I.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new W(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?H(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?H(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 W(t[1],t[2],t[3],1):(t=M.exec(e))?new W(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?H(t[1],t[2],t[3],t[4]):(t=O.exec(e))?H(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=T.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 W(NaN,NaN,NaN,0):null}function $(e){return new W(e>>16&255,e>>8&255,255&e,1)}function H(e,t,n,r){return r<=0&&(e=t=n=NaN),new W(e,t,n,r)}function B(e){return e instanceof R||(e=j(e)),e?new W((e=e.rgb()).r,e.g,e.b,e.opacity):new W}function G(e,t,n,r){return 1===arguments.length?B(e):new W(e,t,n,null==r?1:r)}function W(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)}w(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}),w(W,G,C(R,{brighter(e){return e=null==e?k:Math.pow(k,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new W(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new W(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})),w(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),C(R,{brighter(e){return e=null==e?k:Math.pow(k,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 W(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 he)return me(e);e instanceof W||(e=B(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 he(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function me(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)}w(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),C(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 W(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)}})),w(he,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new he(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new he(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new he(e,t,n,null==r?1:r)}),C(R,{brighter(e){return new he(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new he(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return me(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=G(e)).r,(t=G(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,ye=["__proto__","constructor"];function xe(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!ye.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 Se(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 Ee(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ce)):void 0===t&&(t=we);for(var n,r,o,i,a,l=new Le(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 Le(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ke)}function we(e){return e.children}function Ce(e){return Array.isArray(e)?e[1]:null}function Re(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ke(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Le(e){this.data=e,this.depth=this.height=0,this.parent=null}function _e(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")}}]}}Le.prototype=Ee.prototype={constructor:Le,count:function(){return this.eachAfter(Se)},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 Ee(this).eachBefore(Re)},[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)}},be=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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},be({exports:{}});const _e="qHyperCubeDef.qDimensions",Pe="dimensions",Ie="qOtherTotalSpec.qTotalMode",Me="totalMode",De={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:_e,quarantineName:Me,arrayName:Pe,itemPath:Ie})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:_e,quarantineName:Me,arrayName:Pe,itemPath:Ie})}};function Oe(e){const t=Ae(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}),h=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,m=(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;h+m===v.length&&xe(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],xe(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=h+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]>=h&&v.splice(e,1);m>1&&v.indexOf(-1)<0?v.push(-1):m<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(h>0&&-1===E&&xe(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",h),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),De.unquarantine(f.qProperty),c(f.qProperty),f}}function Te(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 h=c.qInterColumnSortOrder;xe(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const m=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;m&&(h=m,xe(u,"properties.qHyperCubeDef.qInterColumnSortOrder",h),xe(u,"data.0.interColumnSortOrder",h),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=h.length;e<p+f;e++)h.length<=e&&h.push(e);return i.conditionalShow.quarantine(u.properties),De.quarantine(u.properties),d(u.properties),u}const Ne={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},qe="12px",Fe="nebula-table-utils-head-menu-button";let ze=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 je="nebula-table-utils-column-adjuster",$e=`${je}-border`;let Be=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),He=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Ge="CLIENT_IM_5863_PVT_TEXT_ALIGN",We="CLIENT_IM5847_PIVOT_LIMITATION",Ve="CLIENT_IM_5715_LINKS_AND_IMAGES",Ue="CLIENT_IM_5715_LINKS",Ye="CLIENT_IM_5975_INDENT_MODE";var Ke,Xe;!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"}(Ke||(Ke={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Xe||(Xe={}));var Qe,Je,Ze,et,tt=Ke;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Qe||(Qe={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Je||(Je={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ze||(Ze={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(et||(et={}));const nt=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled(Ve)&&!(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}},rt="TOTAL_OFF",ot="image",it={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Je.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Je.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.ImageUrl,tid:"ImageUrlByExpression",show:!1}]};function at(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}const lt={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:He.Auto,translation:"Common.Auto"},{value:He.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:He.Pixels,translation:"Object.Table.Column.Pixels"},{value:He.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:He.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Be.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===He.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Be.PixelsMin,Math.min(Be.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Be.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===He.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Be.PercentageMin,Math.min(Be.PercentageMax,e.qDef.columnWidth.percentage)))}}},st=({key:e,translation:t,flags:n})=>{if(!n.isEnabled(Ge))return;const r=n.isEnabled(Ve);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(!r||"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)!==ot}},[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,o;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!r||"labelTextAlign"===e||(null===(o=t.qDef)||void 0===o||null===(o=o.representation)||void 0===o?void 0:o.type)!==ot)}}}},ut=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled(Ve)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled(Ue);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:ot,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{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"}]}}}:void 0}},ct=e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:rt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:rt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&at},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!==(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)!==rt&&at(e,0,n)}},dimensionLimits:i.isEnabled(We)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(We)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(We)?{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:it,...st({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...st({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...ut(e),...lt}},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:it,...st({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...st({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...nt(e),...lt}}}}},dt="12px",pt="Source Sans Pro, sans-serif",ft="600",ht=15e3,mt=15e3,gt=4/3,vt=1;var bt,yt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(bt||(bt={})),function(e){e.Solid="solid",e.None="none"}(yt||(yt={}));const xt={display:"flex",justifyContent:"center",alignItems:"center"},St={borderStyle:"solid"},Et={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},wt={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Ct=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),Rt=(e,t)=>e>0?`${e}px ${yt.Solid} ${t}`:yt.None,kt=(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:Rt(o,n),borderBottom:Rt(i,n),borderLeft:yt.None,borderTop:yt.None}},Lt=(e,t,n,r,o,i)=>{const a=kt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Rt(2,o)),n||(a.borderLeft=Rt(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=Rt(1,n)),t&&(r.borderRight=Rt(1,n)),r},_t=(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===bt.Transparent.toString()?"none":i}}}),Pt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),It=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Pt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(Ve)?Pt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:_t("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:bt.DividerLight})),divider:_t("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:bt.DividerDark})),background:_t("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:bt.Transparent}))}}}}),Mt=(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},Dt=({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:pt,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=>Mt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...h(r).filter((e=>!s.includes(e))).map((e=>Mt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ot=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Tt=({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=>Mt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ot.filter((e=>!a.includes(e))).map((e=>Mt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Nt=(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}},qt=({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:Dt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=Nt(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:Tt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=Nt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:_t(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Nt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:_t(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=Nt(t,e,"backgroundColor"))&&void 0!==n?n:bt.Transparent}))}}}}),Ft=({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:_t(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Nt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:_t(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=Nt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:bt.Transparent}))}}}}),zt=(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:qt({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:qt({section:"dimensionValues",translator:e,flags:t}),measureValueSection:qt({section:"measureValues",translator:e,flags:t}),measureLabelSection:Ft({section:"measureLabels"}),totalValuesSection:Ft({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Ft({section:"nullValues",fallbackBackground:bt.NullValueBackground}),gridSection:It(t)}}]}),jt=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(Ye)&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}}},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)}}}}),$t=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[zt(e,t),jt(t)]}}}),Bt="auto",Ht={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:Bt,translation:"Object.Table.SortingInSearch",options:[{value:Bt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Gt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ct(e),sorting:Ht,addons:Ne,settings:$t(t,n)}}}function Wt(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:Gt(e),importProperties:Oe(e),exportProperties:Te}}function Vt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ut(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yt(){}var Kt=.7,Xt=1/Kt,Qt="\\s*([+-]?\\d+)\\s*",Jt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",en=/^#([0-9a-f]{3,8})$/,tn=new RegExp(`^rgb\\(${Qt},${Qt},${Qt}\\)$`),nn=new RegExp(`^rgb\\(${Zt},${Zt},${Zt}\\)$`),rn=new RegExp(`^rgba\\(${Qt},${Qt},${Qt},${Jt}\\)$`),on=new RegExp(`^rgba\\(${Zt},${Zt},${Zt},${Jt}\\)$`),an=new RegExp(`^hsl\\(${Jt},${Zt},${Zt}\\)$`),ln=new RegExp(`^hsla\\(${Jt},${Zt},${Zt},${Jt}\\)$`),sn={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 un(){return this.rgb().formatHex()}function cn(){return this.rgb().formatRgb()}function dn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=en.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pn(t):3===n?new gn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fn(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=tn.exec(e))?new gn(t[1],t[2],t[3],1):(t=nn.exec(e))?new gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=rn.exec(e))?fn(t[1],t[2],t[3],t[4]):(t=on.exec(e))?fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=an.exec(e))?En(t[1],t[2]/100,t[3]/100,1):(t=ln.exec(e))?En(t[1],t[2]/100,t[3]/100,t[4]):sn.hasOwnProperty(e)?pn(sn[e]):"transparent"===e?new gn(NaN,NaN,NaN,0):null}function pn(e){return new gn(e>>16&255,e>>8&255,255&e,1)}function fn(e,t,n,r){return r<=0&&(e=t=n=NaN),new gn(e,t,n,r)}function hn(e){return e instanceof Yt||(e=dn(e)),e?new gn((e=e.rgb()).r,e.g,e.b,e.opacity):new gn}function mn(e,t,n,r){return 1===arguments.length?hn(e):new gn(e,t,n,null==r?1:r)}function gn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vn(){return`#${Sn(this.r)}${Sn(this.g)}${Sn(this.b)}`}function bn(){const e=yn(this.opacity);return`${1===e?"rgb(":"rgba("}${xn(this.r)}, ${xn(this.g)}, ${xn(this.b)}${1===e?")":`, ${e})`}`}function yn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sn(e){return((e=xn(e))<16?"0":"")+e.toString(16)}function En(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cn(e,t,n,r)}function wn(e){if(e instanceof Cn)return new Cn(e.h,e.s,e.l,e.opacity);if(e instanceof Yt||(e=dn(e)),!e)return new Cn;if(e instanceof Cn)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 Cn(a,l,s,e.opacity)}function Cn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rn(e){return(e=(e||0)%360)<0?e+360:e}function kn(e){return Math.max(0,Math.min(1,e||0))}function Ln(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Vt(Yt,dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:un,formatHex:un,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wn(this).formatHsl()},formatRgb:cn,toString:cn}),Vt(gn,mn,Ut(Yt,{brighter(e){return e=null==e?Xt:Math.pow(Xt,e),new gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Kt:Math.pow(Kt,e),new gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gn(xn(this.r),xn(this.g),xn(this.b),yn(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:vn,formatHex:vn,formatHex8:function(){return`#${Sn(this.r)}${Sn(this.g)}${Sn(this.b)}${Sn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bn,toString:bn})),Vt(Cn,(function(e,t,n,r){return 1===arguments.length?wn(e):new Cn(e,t,n,null==r?1:r)}),Ut(Yt,{brighter(e){return e=null==e?Xt:Math.pow(Xt,e),new Cn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Kt:Math.pow(Kt,e),new Cn(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 gn(Ln(e>=240?e-240:e+120,o,r),Ln(e,o,r),Ln(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Cn(Rn(this.h),kn(this.s),kn(this.l),yn(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=yn(this.opacity);return`${1===e?"hsl(":"hsla("}${Rn(this.h)}, ${100*kn(this.s)}%, ${100*kn(this.l)}%${1===e?")":`, ${e})`}`}}));const An=Math.PI/180,_n=180/Math.PI,Pn=.96422,In=1,Mn=.82521,Dn=4/29,On=6/29,Tn=3*On*On,Nn=On*On*On;function qn(e){if(e instanceof Fn)return new Fn(e.l,e.a,e.b,e.opacity);if(e instanceof Gn)return Wn(e);e instanceof gn||(e=hn(e));var t,n,r=Bn(e.r),o=Bn(e.g),i=Bn(e.b),a=zn((.2225045*r+.7168786*o+.0606169*i)/In);return r===o&&o===i?t=n=a:(t=zn((.4360747*r+.3850649*o+.1430804*i)/Pn),n=zn((.0139322*r+.0971045*o+.7141733*i)/Mn)),new Fn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zn(e){return e>Nn?Math.pow(e,1/3):e/Tn+Dn}function jn(e){return e>On?e*e*e:Tn*(e-Dn)}function $n(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Gn)return new Gn(e.h,e.c,e.l,e.opacity);if(e instanceof Fn||(e=qn(e)),0===e.a&&0===e.b)return new Gn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_n;return new Gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Gn(e,t,n,null==r?1:r)}function Gn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Wn(e){if(isNaN(e.h))return new Fn(e.l,0,0,e.opacity);var t=e.h*An;return new Fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Vt(Fn,(function(e,t,n,r){return 1===arguments.length?qn(e):new Fn(e,t,n,null==r?1:r)}),Ut(Yt,{brighter(e){return new Fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Fn(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 gn($n(3.1338561*(t=Pn*jn(t))-1.6168667*(e=In*jn(e))-.4906146*(n=Mn*jn(n))),$n(-.9787684*t+1.9161415*e+.033454*n),$n(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Vt(Gn,Hn,Ut(Yt,{brighter(e){return new Gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Wn(this).rgb()}}));const Vn=e=>{if(e){const t=mn(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Un=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===mn(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Vn(d?l:c),isTransparent:d}};function Yn(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 Kn=Object.prototype.hasOwnProperty,Xn=Object.prototype.toString,Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Zn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Xn.call(e)},er=function(e){if(!e||"[object Object]"!==Xn.call(e))return!1;var t,n=Kn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Kn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Kn.call(e,t)},tr=function(e,t){Qn&&"__proto__"===t.name?Qn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},nr=function(e,t){if("__proto__"===t){if(!Kn.call(e,t))return;if(Jn)return Jn(e,t).value}return e[t]};function rr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function or(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ir(){}!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=nr(l,n),l!==(o=nr(t,n))&&(c&&o&&(er(o)||(i=Zn(o)))?(i?(i=!1,a=r&&Zn(r)?r:[]):a=r&&er(r)?r:{},tr(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&tr(l,{name:n,newValue:o}));return l}));var ar=1/.7,lr="\\s*([+-]?\\d+)\\s*",sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cr=/^#([0-9a-f]{3,8})$/,dr=new RegExp(`^rgb\\(${lr},${lr},${lr}\\)$`),pr=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),fr=new RegExp(`^rgba\\(${lr},${lr},${lr},${sr}\\)$`),hr=new RegExp(`^rgba\\(${ur},${ur},${ur},${sr}\\)$`),mr=new RegExp(`^hsl\\(${sr},${ur},${ur}\\)$`),gr=new RegExp(`^hsla\\(${sr},${ur},${ur},${sr}\\)$`),vr={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 br(){return this.rgb().formatHex()}function yr(){return this.rgb().formatRgb()}function xr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Sr(t):3===n?new Rr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Er(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Er(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=dr.exec(e))?new Rr(t[1],t[2],t[3],1):(t=pr.exec(e))?new Rr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fr.exec(e))?Er(t[1],t[2],t[3],t[4]):(t=hr.exec(e))?Er(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=mr.exec(e))?Ir(t[1],t[2]/100,t[3]/100,1):(t=gr.exec(e))?Ir(t[1],t[2]/100,t[3]/100,t[4]):vr.hasOwnProperty(e)?Sr(vr[e]):"transparent"===e?new Rr(NaN,NaN,NaN,0):null}function Sr(e){return new Rr(e>>16&255,e>>8&255,255&e,1)}function Er(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rr(e,t,n,r)}function wr(e){return e instanceof ir||(e=xr(e)),e?new Rr((e=e.rgb()).r,e.g,e.b,e.opacity):new Rr}function Cr(e,t,n,r){return 1===arguments.length?wr(e):new Rr(e,t,n,null==r?1:r)}function Rr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function kr(){return`#${Pr(this.r)}${Pr(this.g)}${Pr(this.b)}`}function Lr(){const e=Ar(this.opacity);return`${1===e?"rgb(":"rgba("}${_r(this.r)}, ${_r(this.g)}, ${_r(this.b)}${1===e?")":`, ${e})`}`}function Ar(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _r(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pr(e){return((e=_r(e))<16?"0":"")+e.toString(16)}function Ir(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dr(e,t,n,r)}function Mr(e){if(e instanceof Dr)return new Dr(e.h,e.s,e.l,e.opacity);if(e instanceof ir||(e=xr(e)),!e)return new Dr;if(e instanceof Dr)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 Dr(a,l,s,e.opacity)}function Dr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Or(e){return(e=(e||0)%360)<0?e+360:e}function Tr(e){return Math.max(0,Math.min(1,e||0))}function Nr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}rr(ir,xr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:br,formatHex:br,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Mr(this).formatHsl()},formatRgb:yr,toString:yr}),rr(Rr,Cr,or(ir,{brighter(e){return e=null==e?ar:Math.pow(ar,e),new Rr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rr(_r(this.r),_r(this.g),_r(this.b),Ar(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:kr,formatHex:kr,formatHex8:function(){return`#${Pr(this.r)}${Pr(this.g)}${Pr(this.b)}${Pr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Lr,toString:Lr})),rr(Dr,(function(e,t,n,r){return 1===arguments.length?Mr(e):new Dr(e,t,n,null==r?1:r)}),or(ir,{brighter(e){return e=null==e?ar:Math.pow(ar,e),new Dr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Dr(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 Rr(Nr(e>=240?e-240:e+120,o,r),Nr(e,o,r),Nr(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Dr(Or(this.h),Tr(this.s),Tr(this.l),Ar(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=Ar(this.opacity);return`${1===e?"hsl(":"hsla("}${Or(this.h)}, ${100*Tr(this.s)}%, ${100*Tr(this.l)}%${1===e?")":`, ${e})`}`}}));const qr=Math.PI/180,Fr=180/Math.PI,zr=4/29,jr=6/29,$r=3*jr*jr;function Br(e){if(e instanceof Hr)return new Hr(e.l,e.a,e.b,e.opacity);if(e instanceof Yr)return Kr(e);e instanceof Rr||(e=wr(e));var t,n,r=Ur(e.r),o=Ur(e.g),i=Ur(e.b),a=Gr((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Gr((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Gr((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Hr(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Hr(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Gr(e){return e>.008856451679035631?Math.pow(e,1/3):e/$r+zr}function Wr(e){return e>jr?e*e*e:$r*(e-zr)}function Vr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ur(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Kr(e){if(isNaN(e.h))return new Hr(e.l,0,0,e.opacity);var t=e.h*qr;return new Hr(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}rr(Hr,(function(e,t,n,r){return 1===arguments.length?Br(e):new Hr(e,t,n,null==r?1:r)}),or(ir,{brighter(e){return new Hr(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Hr(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 Rr(Vr(3.1338561*(t=.96422*Wr(t))-1.6168667*(e=1*Wr(e))-.4906146*(n=.82521*Wr(n))),Vr(-.9787684*t+1.9161415*e+.033454*n),Vr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),rr(Yr,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yr)return new Yr(e.h,e.c,e.l,e.opacity);if(e instanceof Hr||(e=Br(e)),0===e.a&&0===e.b)return new Yr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fr;return new Yr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Yr(e,t,n,null==r?1:r)}),or(ir,{brighter(e){return new Yr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Yr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Kr(this).rgb()}}));var Xr,Qr=e=>()=>e;function Jr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qr(isNaN(e)?t:e)}function Zr(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 eo(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 to(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ro)):void 0===t&&(t=no);for(var n,r,o,i,a,l=new ao(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 ao(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(io)}function no(e){return e.children}function ro(e){return Array.isArray(e)?e[1]:null}function oo(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function io(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ao(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Jr: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):Qr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Cr(e)).r,(t=Cr(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Jr(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),ao.prototype=to.prototype={constructor:ao,count:function(){return this.eachAfter(eo)},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 to(this).eachBefore(oo)},[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)}},Xr=function(e){
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),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(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},be({exports:{}});const Ae="qHyperCubeDef.qDimensions",Ie="dimensions",Pe="qOtherTotalSpec.qTotalMode",Me="totalMode",De={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Me,arrayName:Ie,itemPath:Pe})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Me,arrayName:Ie,itemPath:Pe})}};function Oe(e){const t=_e(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}),h=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,m=(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;h+m===v.length&&xe(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],xe(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=h+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]>=h&&v.splice(e,1);m>1&&v.indexOf(-1)<0?v.push(-1):m<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(h>0&&-1===E&&xe(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",h),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),De.unquarantine(f.qProperty),c(f.qProperty),f}}function Te(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 h=c.qInterColumnSortOrder;xe(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const m=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;m&&(h=m,xe(u,"properties.qHyperCubeDef.qInterColumnSortOrder",h),xe(u,"data.0.interColumnSortOrder",h),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=h.length;e<p+f;e++)h.length<=e&&h.push(e);return i.conditionalShow.quarantine(u.properties),De.quarantine(u.properties),d(u.properties),u}const Ne={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},qe="12px",Fe="nebula-table-utils-head-menu-button";let ze=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 je="nebula-table-utils-column-adjuster",$e=`${je}-border`;let He=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),Be=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Ge="CLIENT_IM_5863_PVT_TEXT_ALIGN",We="CLIENT_IM5847_PIVOT_LIMITATION",Ve="CLIENT_IM_5715_LINKS_AND_IMAGES",Ue="CLIENT_IM_5715_LINKS",Ye="CLIENT_IM_5975_INDENT_MODE";var Ke,Xe;!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"}(Ke||(Ke={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Xe||(Xe={}));var Qe,Je,Ze,et,tt=Ke;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Qe||(Qe={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Je||(Je={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ze||(Ze={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(et||(et={}));const nt=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled(Ve)&&!(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}},rt="TOTAL_OFF",ot="image",it={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Je.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Je.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Je.ImageUrl,tid:"ImageUrlByExpression",show:!1}]};function at(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}const lt=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled(Ye),st=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Be.Auto,translation:"Common.Auto"},{value:Be.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Be.Pixels,translation:"Object.Table.Column.Pixels"},{value:Be.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Be.Auto,show:(t,n,r)=>lt(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:He.PixelsDefault,show:(t,n,r)=>{var o;return lt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Be.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(He.PixelsMin,Math.min(He.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:He.PercentageDefault,show:(t,n,r)=>{var o;return lt(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Be.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(He.PercentageMin,Math.min(He.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ut=({key:e,translation:t,flags:n})=>{if(!n.isEnabled(Ge))return;const r=n.isEnabled(Ve);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(!r||"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)!==ot}},[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,o;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!r||"labelTextAlign"===e||(null===(o=t.qDef)||void 0===o||null===(o=o.representation)||void 0===o?void 0:o.type)!==ot)}}}},ct=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled(Ve)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled(Ue);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:ot,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{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"}]}}}:void 0}},dt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:rt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:rt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&at},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!==(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)!==rt&&at(e,0,n)}},dimensionLimits:i.isEnabled(We)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(We)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(We)?{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:it,...ut({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ut({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...ct(e),...st(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:it,...ut({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ut({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...nt(e),...st(i)}}}}},pt="12px",ft="Source Sans Pro, sans-serif",ht="600",mt=15e3,gt=15e3,vt=4/3,bt=1;var yt,xt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(yt||(yt={})),function(e){e.Solid="solid",e.None="none"}(xt||(xt={}));const St={display:"flex",justifyContent:"center",alignItems:"center"},Et={borderStyle:"solid"},wt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Ct={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Rt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),kt=(e,t)=>e>0?`${e}px ${xt.Solid} ${t}`:xt.None,Lt=(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:kt(o,n),borderBottom:kt(i,n),borderLeft:xt.None,borderTop:xt.None}},_t=(e,t,n,r,o,i)=>{const a=Lt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=kt(2,o)),n||(a.borderLeft=kt(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=kt(1,n)),t&&(r.borderRight=kt(1,n)),r},It=(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===yt.Transparent.toString()?"none":i}}}),Pt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Mt=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Pt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(Ve)?Pt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:It("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:yt.DividerLight})),divider:It("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:yt.DividerDark})),background:It("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:yt.Transparent}))}}}}),Dt=(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},Ot=({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:ft,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=>Dt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...h(r).filter((e=>!s.includes(e))).map((e=>Dt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Tt=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Nt=({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=>Dt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Tt.filter((e=>!a.includes(e))).map((e=>Dt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),qt=(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}},Ft=({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:Ot({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=qt(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:Nt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=qt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:It(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=qt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:It(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=qt(t,e,"backgroundColor"))&&void 0!==n?n:yt.Transparent}))}}}}),zt=({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:It(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=qt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:It(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=qt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:yt.Transparent}))}}}}),jt=(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:Ft({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:Ft({section:"dimensionValues",translator:e,flags:t}),measureValueSection:Ft({section:"measureValues",translator:e,flags:t}),measureLabelSection:zt({section:"measureLabels"}),totalValuesSection:zt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:zt({section:"nullValues",fallbackBackground:yt.NullValueBackground}),gridSection:Mt(t)}}]}),$t=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(Ye)&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}}},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)}}}}),Ht=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[jt(e,t),$t(t)]}}}),Bt="auto",Gt={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:Bt,translation:"Object.Table.SortingInSearch",options:[{value:Bt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Wt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:dt(e),sorting:Gt,addons:Ne,settings:Ht(t,n)}}}function Vt(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:Wt(e),importProperties:Oe(e),exportProperties:Te}}function Ut(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kt(){}var Xt=.7,Qt=1/Xt,Jt="\\s*([+-]?\\d+)\\s*",Zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",en="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tn=/^#([0-9a-f]{3,8})$/,nn=new RegExp(`^rgb\\(${Jt},${Jt},${Jt}\\)$`),rn=new RegExp(`^rgb\\(${en},${en},${en}\\)$`),on=new RegExp(`^rgba\\(${Jt},${Jt},${Jt},${Zt}\\)$`),an=new RegExp(`^rgba\\(${en},${en},${en},${Zt}\\)$`),ln=new RegExp(`^hsl\\(${Zt},${en},${en}\\)$`),sn=new RegExp(`^hsla\\(${Zt},${en},${en},${Zt}\\)$`),un={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 cn(){return this.rgb().formatHex()}function dn(){return this.rgb().formatRgb()}function pn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fn(t):3===n?new vn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?hn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?hn(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=nn.exec(e))?new vn(t[1],t[2],t[3],1):(t=rn.exec(e))?new vn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=on.exec(e))?hn(t[1],t[2],t[3],t[4]):(t=an.exec(e))?hn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ln.exec(e))?wn(t[1],t[2]/100,t[3]/100,1):(t=sn.exec(e))?wn(t[1],t[2]/100,t[3]/100,t[4]):un.hasOwnProperty(e)?fn(un[e]):"transparent"===e?new vn(NaN,NaN,NaN,0):null}function fn(e){return new vn(e>>16&255,e>>8&255,255&e,1)}function hn(e,t,n,r){return r<=0&&(e=t=n=NaN),new vn(e,t,n,r)}function mn(e){return e instanceof Kt||(e=pn(e)),e?new vn((e=e.rgb()).r,e.g,e.b,e.opacity):new vn}function gn(e,t,n,r){return 1===arguments.length?mn(e):new vn(e,t,n,null==r?1:r)}function vn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bn(){return`#${En(this.r)}${En(this.g)}${En(this.b)}`}function yn(){const e=xn(this.opacity);return`${1===e?"rgb(":"rgba("}${Sn(this.r)}, ${Sn(this.g)}, ${Sn(this.b)}${1===e?")":`, ${e})`}`}function xn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function En(e){return((e=Sn(e))<16?"0":"")+e.toString(16)}function wn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Cn(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Kt||(e=pn(e)),!e)return new Rn;if(e instanceof Rn)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 Rn(a,l,s,e.opacity)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kn(e){return(e=(e||0)%360)<0?e+360:e}function Ln(e){return Math.max(0,Math.min(1,e||0))}function _n(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ut(Kt,pn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cn,formatHex:cn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Cn(this).formatHsl()},formatRgb:dn,toString:dn}),Ut(vn,gn,Yt(Kt,{brighter(e){return e=null==e?Qt:Math.pow(Qt,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Xt:Math.pow(Xt,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(Sn(this.r),Sn(this.g),Sn(this.b),xn(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:bn,formatHex:bn,formatHex8:function(){return`#${En(this.r)}${En(this.g)}${En(this.b)}${En(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yn,toString:yn})),Ut(Rn,(function(e,t,n,r){return 1===arguments.length?Cn(e):new Rn(e,t,n,null==r?1:r)}),Yt(Kt,{brighter(e){return e=null==e?Qt:Math.pow(Qt,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Xt:Math.pow(Xt,e),new Rn(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 vn(_n(e>=240?e-240:e+120,o,r),_n(e,o,r),_n(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Rn(kn(this.h),Ln(this.s),Ln(this.l),xn(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=xn(this.opacity);return`${1===e?"hsl(":"hsla("}${kn(this.h)}, ${100*Ln(this.s)}%, ${100*Ln(this.l)}%${1===e?")":`, ${e})`}`}}));const An=Math.PI/180,In=180/Math.PI,Pn=.96422,Mn=1,Dn=.82521,On=4/29,Tn=6/29,Nn=3*Tn*Tn,qn=Tn*Tn*Tn;function Fn(e){if(e instanceof zn)return new zn(e.l,e.a,e.b,e.opacity);if(e instanceof Wn)return Vn(e);e instanceof vn||(e=mn(e));var t,n,r=Bn(e.r),o=Bn(e.g),i=Bn(e.b),a=jn((.2225045*r+.7168786*o+.0606169*i)/Mn);return r===o&&o===i?t=n=a:(t=jn((.4360747*r+.3850649*o+.1430804*i)/Pn),n=jn((.0139322*r+.0971045*o+.7141733*i)/Dn)),new zn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function zn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jn(e){return e>qn?Math.pow(e,1/3):e/Nn+On}function $n(e){return e>Tn?e*e*e:Nn*(e-On)}function Hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Gn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wn)return new Wn(e.h,e.c,e.l,e.opacity);if(e instanceof zn||(e=Fn(e)),0===e.a&&0===e.b)return new Wn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*In;return new Wn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wn(e,t,n,null==r?1:r)}function Wn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Vn(e){if(isNaN(e.h))return new zn(e.l,0,0,e.opacity);var t=e.h*An;return new zn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ut(zn,(function(e,t,n,r){return 1===arguments.length?Fn(e):new zn(e,t,n,null==r?1:r)}),Yt(Kt,{brighter(e){return new zn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new zn(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 vn(Hn(3.1338561*(t=Pn*$n(t))-1.6168667*(e=Mn*$n(e))-.4906146*(n=Dn*$n(n))),Hn(-.9787684*t+1.9161415*e+.033454*n),Hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ut(Wn,Gn,Yt(Kt,{brighter(e){return new Wn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Wn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Vn(this).rgb()}}));const Un=e=>{if(e){const t=gn(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Yn=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===gn(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Un(d?l:c),isTransparent:d}};function Kn(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 Xn=Object.prototype.hasOwnProperty,Qn=Object.prototype.toString,Jn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,er=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Qn.call(e)},tr=function(e){if(!e||"[object Object]"!==Qn.call(e))return!1;var t,n=Xn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Xn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Xn.call(e,t)},nr=function(e,t){Jn&&"__proto__"===t.name?Jn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},rr=function(e,t){if("__proto__"===t){if(!Xn.call(e,t))return;if(Zn)return Zn(e,t).value}return e[t]};function or(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ir(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ar(){}!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=rr(l,n),l!==(o=rr(t,n))&&(c&&o&&(tr(o)||(i=er(o)))?(i?(i=!1,a=r&&er(r)?r:[]):a=r&&tr(r)?r:{},nr(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&nr(l,{name:n,newValue:o}));return l}));var lr=1/.7,sr="\\s*([+-]?\\d+)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dr=/^#([0-9a-f]{3,8})$/,pr=new RegExp(`^rgb\\(${sr},${sr},${sr}\\)$`),fr=new RegExp(`^rgb\\(${cr},${cr},${cr}\\)$`),hr=new RegExp(`^rgba\\(${sr},${sr},${sr},${ur}\\)$`),mr=new RegExp(`^rgba\\(${cr},${cr},${cr},${ur}\\)$`),gr=new RegExp(`^hsl\\(${ur},${cr},${cr}\\)$`),vr=new RegExp(`^hsla\\(${ur},${cr},${cr},${ur}\\)$`),br={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 yr(){return this.rgb().formatHex()}function xr(){return this.rgb().formatRgb()}function Sr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=dr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Er(t):3===n?new kr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wr(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=pr.exec(e))?new kr(t[1],t[2],t[3],1):(t=fr.exec(e))?new kr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hr.exec(e))?wr(t[1],t[2],t[3],t[4]):(t=mr.exec(e))?wr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gr.exec(e))?Mr(t[1],t[2]/100,t[3]/100,1):(t=vr.exec(e))?Mr(t[1],t[2]/100,t[3]/100,t[4]):br.hasOwnProperty(e)?Er(br[e]):"transparent"===e?new kr(NaN,NaN,NaN,0):null}function Er(e){return new kr(e>>16&255,e>>8&255,255&e,1)}function wr(e,t,n,r){return r<=0&&(e=t=n=NaN),new kr(e,t,n,r)}function Cr(e){return e instanceof ar||(e=Sr(e)),e?new kr((e=e.rgb()).r,e.g,e.b,e.opacity):new kr}function Rr(e,t,n,r){return 1===arguments.length?Cr(e):new kr(e,t,n,null==r?1:r)}function kr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Lr(){return`#${Pr(this.r)}${Pr(this.g)}${Pr(this.b)}`}function _r(){const e=Ar(this.opacity);return`${1===e?"rgb(":"rgba("}${Ir(this.r)}, ${Ir(this.g)}, ${Ir(this.b)}${1===e?")":`, ${e})`}`}function Ar(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ir(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pr(e){return((e=Ir(e))<16?"0":"")+e.toString(16)}function Mr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Or(e,t,n,r)}function Dr(e){if(e instanceof Or)return new Or(e.h,e.s,e.l,e.opacity);if(e instanceof ar||(e=Sr(e)),!e)return new Or;if(e instanceof Or)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 Or(a,l,s,e.opacity)}function Or(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Tr(e){return(e=(e||0)%360)<0?e+360:e}function Nr(e){return Math.max(0,Math.min(1,e||0))}function qr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}or(ar,Sr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yr,formatHex:yr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Dr(this).formatHsl()},formatRgb:xr,toString:xr}),or(kr,Rr,ir(ar,{brighter(e){return e=null==e?lr:Math.pow(lr,e),new kr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new kr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kr(Ir(this.r),Ir(this.g),Ir(this.b),Ar(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:Lr,formatHex:Lr,formatHex8:function(){return`#${Pr(this.r)}${Pr(this.g)}${Pr(this.b)}${Pr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_r,toString:_r})),or(Or,(function(e,t,n,r){return 1===arguments.length?Dr(e):new Or(e,t,n,null==r?1:r)}),ir(ar,{brighter(e){return e=null==e?lr:Math.pow(lr,e),new Or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Or(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 kr(qr(e>=240?e-240:e+120,o,r),qr(e,o,r),qr(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Or(Tr(this.h),Nr(this.s),Nr(this.l),Ar(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=Ar(this.opacity);return`${1===e?"hsl(":"hsla("}${Tr(this.h)}, ${100*Nr(this.s)}%, ${100*Nr(this.l)}%${1===e?")":`, ${e})`}`}}));const Fr=Math.PI/180,zr=180/Math.PI,jr=4/29,$r=6/29,Hr=3*$r*$r;function Br(e){if(e instanceof Gr)return new Gr(e.l,e.a,e.b,e.opacity);if(e instanceof Kr)return Xr(e);e instanceof kr||(e=Cr(e));var t,n,r=Yr(e.r),o=Yr(e.g),i=Yr(e.b),a=Wr((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Wr((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Wr((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Gr(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Gr(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Wr(e){return e>.008856451679035631?Math.pow(e,1/3):e/Hr+jr}function Vr(e){return e>$r?e*e*e:Hr*(e-jr)}function Ur(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Yr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Kr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xr(e){if(isNaN(e.h))return new Gr(e.l,0,0,e.opacity);var t=e.h*Fr;return new Gr(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}or(Gr,(function(e,t,n,r){return 1===arguments.length?Br(e):new Gr(e,t,n,null==r?1:r)}),ir(ar,{brighter(e){return new Gr(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Gr(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 kr(Ur(3.1338561*(t=.96422*Vr(t))-1.6168667*(e=1*Vr(e))-.4906146*(n=.82521*Vr(n))),Ur(-.9787684*t+1.9161415*e+.033454*n),Ur(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),or(Kr,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Kr)return new Kr(e.h,e.c,e.l,e.opacity);if(e instanceof Gr||(e=Br(e)),0===e.a&&0===e.b)return new Kr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*zr;return new Kr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Kr(e,t,n,null==r?1:r)}),ir(ar,{brighter(e){return new Kr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Kr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Xr(this).rgb()}}));var Qr,Jr=e=>()=>e;function Zr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Jr(isNaN(e)?t:e)}function eo(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 to(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 no(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=oo)):void 0===t&&(t=ro);for(var n,r,o,i,a,l=new lo(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 lo(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ao)}function ro(e){return e.children}function oo(e){return Array.isArray(e)?e[1]:null}function io(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ao(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function lo(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Zr: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):Jr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Rr(e)).r,(t=Rr(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Zr(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),lo.prototype=no.prototype={constructor:lo,count:function(){return this.eachAfter(to)},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 no(this).eachBefore(io)},[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)}},Qr=function(e){
10
10
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),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(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Xr({exports:{}});var lo={exports:{}},so={},uo=Symbol.for("react.element"),co=Symbol.for("react.portal"),po=Symbol.for("react.fragment"),fo=Symbol.for("react.strict_mode"),ho=Symbol.for("react.profiler"),mo=Symbol.for("react.provider"),go=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),bo=Symbol.for("react.suspense"),yo=Symbol.for("react.memo"),xo=Symbol.for("react.lazy"),So=Symbol.iterator;var Eo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wo=Object.assign,Co={};function Ro(e,t,n){this.props=e,this.context=t,this.refs=Co,this.updater=n||Eo}function ko(){}function Lo(e,t,n){this.props=e,this.context=t,this.refs=Co,this.updater=n||Eo}Ro.prototype.isReactComponent={},Ro.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")},Ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ko.prototype=Ro.prototype;var Ao=Lo.prototype=new ko;Ao.constructor=Lo,wo(Ao,Ro.prototype),Ao.isPureReactComponent=!0;var _o=Array.isArray,Po=Object.prototype.hasOwnProperty,Io={current:null},Mo={key:!0,ref:!0,__self:!0,__source:!0};function Do(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)Po.call(t,r)&&!Mo.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:uo,type:e,key:i,ref:a,props:o,_owner:Io.current}}function Oo(e){return"object"==typeof e&&null!==e&&e.$$typeof===uo}var To=/\/+/g;function No(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 qo(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 uo:case co:a=!0}}if(a)return o=o(a=e),e=""===r?"."+No(a,0):r,_o(o)?(n="",null!=e&&(n=e.replace(To,"$&/")+"/"),qo(o,t,n,"",(function(e){return e}))):null!=o&&(Oo(o)&&(o=function(e,t){return{$$typeof:uo,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(To,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",_o(e))for(var l=0;l<e.length;l++){var s=r+No(i=e[l],l);a+=qo(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=So&&e[So]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=qo(i=i.value,t,n,s=r+No(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 Fo(e,t,n){if(null==e)return e;var r=[],o=0;return qo(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function zo(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 jo={current:null},$o={transition:null},Bo={ReactCurrentDispatcher:jo,ReactCurrentBatchConfig:$o,ReactCurrentOwner:Io};so.Children={map:Fo,forEach:function(e,t,n){Fo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return Fo(e,(function(){t++})),t},toArray:function(e){return Fo(e,(function(e){return e}))||[]},only:function(e){if(!Oo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},so.Component=Ro,so.Fragment=po,so.Profiler=ho,so.PureComponent=Lo,so.StrictMode=fo,so.Suspense=bo,so.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bo,so.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=wo({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Io.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Po.call(t,s)&&!Mo.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:uo,type:e.type,key:o,ref:i,props:r,_owner:a}},so.createContext=function(e){return(e={$$typeof:go,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mo,_context:e},e.Consumer=e},so.createElement=Do,so.createFactory=function(e){var t=Do.bind(null,e);return t.type=e,t},so.createRef=function(){return{current:null}},so.forwardRef=function(e){return{$$typeof:vo,render:e}},so.isValidElement=Oo,so.lazy=function(e){return{$$typeof:xo,_payload:{_status:-1,_result:e},_init:zo}},so.memo=function(e,t){return{$$typeof:yo,type:e,compare:void 0===t?null:t}},so.startTransition=function(e){var t=$o.transition;$o.transition={};try{e()}finally{$o.transition=t}},so.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},so.useCallback=function(e,t){return jo.current.useCallback(e,t)},so.useContext=function(e){return jo.current.useContext(e)},so.useDebugValue=function(){},so.useDeferredValue=function(e){return jo.current.useDeferredValue(e)},so.useEffect=function(e,t){return jo.current.useEffect(e,t)},so.useId=function(){return jo.current.useId()},so.useImperativeHandle=function(e,t,n){return jo.current.useImperativeHandle(e,t,n)},so.useInsertionEffect=function(e,t){return jo.current.useInsertionEffect(e,t)},so.useLayoutEffect=function(e,t){return jo.current.useLayoutEffect(e,t)},so.useMemo=function(e,t){return jo.current.useMemo(e,t)},so.useReducer=function(e,t,n){return jo.current.useReducer(e,t,n)},so.useRef=function(e){return jo.current.useRef(e)},so.useState=function(e){return jo.current.useState(e)},so.useSyncExternalStore=function(e,t,n){return jo.current.useSyncExternalStore(e,t,n)},so.useTransition=function(){return jo.current.useTransition()},so.version="18.2.0",lo.exports=so;var Ho=lo.exports,Go=n(Ho),Wo=t({__proto__:null,default:Go},[Ho]);const Vo=3,Uo="N";function Yo(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 Ko({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Vo}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Ho.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Zr(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Zr((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Yo(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(Uo).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Xo={exports:{}},Qo={},Jo={exports:{}},Zo={};
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),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(m="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Qr({exports:{}});var so={exports:{}},uo={},co=Symbol.for("react.element"),po=Symbol.for("react.portal"),fo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),mo=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),Eo=Symbol.iterator;var wo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Co=Object.assign,Ro={};function ko(e,t,n){this.props=e,this.context=t,this.refs=Ro,this.updater=n||wo}function Lo(){}function _o(e,t,n){this.props=e,this.context=t,this.refs=Ro,this.updater=n||wo}ko.prototype.isReactComponent={},ko.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")},ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Lo.prototype=ko.prototype;var Ao=_o.prototype=new Lo;Ao.constructor=_o,Co(Ao,ko.prototype),Ao.isPureReactComponent=!0;var Io=Array.isArray,Po=Object.prototype.hasOwnProperty,Mo={current:null},Do={key:!0,ref:!0,__self:!0,__source:!0};function Oo(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)Po.call(t,r)&&!Do.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:co,type:e,key:i,ref:a,props:o,_owner:Mo.current}}function To(e){return"object"==typeof e&&null!==e&&e.$$typeof===co}var No=/\/+/g;function qo(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 Fo(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 co:case po:a=!0}}if(a)return o=o(a=e),e=""===r?"."+qo(a,0):r,Io(o)?(n="",null!=e&&(n=e.replace(No,"$&/")+"/"),Fo(o,t,n,"",(function(e){return e}))):null!=o&&(To(o)&&(o=function(e,t){return{$$typeof:co,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(No,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Io(e))for(var l=0;l<e.length;l++){var s=r+qo(i=e[l],l);a+=Fo(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Eo&&e[Eo]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Fo(i=i.value,t,n,s=r+qo(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 zo(e,t,n){if(null==e)return e;var r=[],o=0;return Fo(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function jo(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 $o={current:null},Ho={transition:null},Bo={ReactCurrentDispatcher:$o,ReactCurrentBatchConfig:Ho,ReactCurrentOwner:Mo};uo.Children={map:zo,forEach:function(e,t,n){zo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return zo(e,(function(){t++})),t},toArray:function(e){return zo(e,(function(e){return e}))||[]},only:function(e){if(!To(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},uo.Component=ko,uo.Fragment=fo,uo.Profiler=mo,uo.PureComponent=_o,uo.StrictMode=ho,uo.Suspense=yo,uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bo,uo.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=Co({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Mo.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Po.call(t,s)&&!Do.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:co,type:e.type,key:o,ref:i,props:r,_owner:a}},uo.createContext=function(e){return(e={$$typeof:vo,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:go,_context:e},e.Consumer=e},uo.createElement=Oo,uo.createFactory=function(e){var t=Oo.bind(null,e);return t.type=e,t},uo.createRef=function(){return{current:null}},uo.forwardRef=function(e){return{$$typeof:bo,render:e}},uo.isValidElement=To,uo.lazy=function(e){return{$$typeof:So,_payload:{_status:-1,_result:e},_init:jo}},uo.memo=function(e,t){return{$$typeof:xo,type:e,compare:void 0===t?null:t}},uo.startTransition=function(e){var t=Ho.transition;Ho.transition={};try{e()}finally{Ho.transition=t}},uo.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},uo.useCallback=function(e,t){return $o.current.useCallback(e,t)},uo.useContext=function(e){return $o.current.useContext(e)},uo.useDebugValue=function(){},uo.useDeferredValue=function(e){return $o.current.useDeferredValue(e)},uo.useEffect=function(e,t){return $o.current.useEffect(e,t)},uo.useId=function(){return $o.current.useId()},uo.useImperativeHandle=function(e,t,n){return $o.current.useImperativeHandle(e,t,n)},uo.useInsertionEffect=function(e,t){return $o.current.useInsertionEffect(e,t)},uo.useLayoutEffect=function(e,t){return $o.current.useLayoutEffect(e,t)},uo.useMemo=function(e,t){return $o.current.useMemo(e,t)},uo.useReducer=function(e,t,n){return $o.current.useReducer(e,t,n)},uo.useRef=function(e){return $o.current.useRef(e)},uo.useState=function(e){return $o.current.useState(e)},uo.useSyncExternalStore=function(e,t,n){return $o.current.useSyncExternalStore(e,t,n)},uo.useTransition=function(){return $o.current.useTransition()},uo.version="18.2.0",so.exports=uo;var Go=so.exports,Wo=n(Go),Vo=t({__proto__:null,default:Wo},[Go]);const Uo=3,Yo="N";function Ko(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 Xo({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Uo}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Go.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=eo(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=eo((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Ko(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(Yo).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Qo={exports:{}},Jo={},Zo={exports:{}},ei={};
12
12
  /**
13
13
  * @license React
14
14
  * scheduler.production.min.js
@@ -18,7 +18,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
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- !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,h=!1,m=!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(m=!1,y(e),!h)if(null!==n(s))h=!0,M(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!A());){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,w=!1,C=null,R=-1,k=5,L=-1;function A(){return!(e.unstable_now()-L<k)}function _(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof b)E=function(){b(_)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,I=P.port2;P.port1.onmessage=_,E=function(){I.postMessage(null)}}else E=function(){g(_,0)};function M(e){C=e,w||(w=!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(){h||f||(h=!0,M(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"):k=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)&&(m?(v(R),R=-1):m=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,M(S))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Zo),Jo.exports=Zo;var ei=Jo.exports,ti=Ho,ni=ei;
21
+ !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,h=!1,m=!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(m=!1,y(e),!h)if(null!==n(s))h=!0,M(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!_());){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,w=!1,C=null,R=-1,k=5,L=-1;function _(){return!(e.unstable_now()-L<k)}function A(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof b)E=function(){b(A)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=A,E=function(){P.postMessage(null)}}else E=function(){g(A,0)};function M(e){C=e,w||(w=!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(){h||f||(h=!0,M(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"):k=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)&&(m?(v(R),R=-1):m=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,M(S))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(ei),Zo.exports=ei;var ti=Zo.exports,ni=Go,ri=ti;
22
22
  /**
23
23
  * @license React
24
24
  * react-dom.production.min.js
@@ -27,7 +27,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
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */function ri(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 oi=new Set,ii={};function ai(e,t){li(e,t),li(e+"Capture",t)}function li(e,t){for(ii[e]=t,e=0;e<t.length;e++)oi.add(t[e])}var si=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ui=Object.prototype.hasOwnProperty,ci=/^[: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]*$/,di={},pi={};function fi(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 hi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){hi[e]=new fi(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];hi[t]=new fi(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){hi[e]=new fi(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){hi[e]=new fi(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){hi[e]=new fi(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){hi[e]=new fi(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){hi[e]=new fi(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){hi[e]=new fi(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){hi[e]=new fi(e,5,!1,e.toLowerCase(),null,!1,!1)}));var mi=/[\-:]([a-z])/g;function gi(e){return e[1].toUpperCase()}function vi(e,t,n,r){var o=hi.hasOwnProperty(t)?hi[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!!ui.call(pi,e)||!ui.call(di,e)&&(ci.test(e)?pi[e]=!0:(di[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(mi,gi);hi[t]=new fi(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(mi,gi);hi[t]=new fi(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(mi,gi);hi[t]=new fi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){hi[e]=new fi(e,1,!1,e.toLowerCase(),null,!1,!1)})),hi.xlinkHref=new fi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){hi[e]=new fi(e,1,!1,e.toLowerCase(),null,!0,!0)}));var bi=ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yi=Symbol.for("react.element"),xi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ei=Symbol.for("react.strict_mode"),wi=Symbol.for("react.profiler"),Ci=Symbol.for("react.provider"),Ri=Symbol.for("react.context"),ki=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),Ai=Symbol.for("react.suspense_list"),_i=Symbol.for("react.memo"),Pi=Symbol.for("react.lazy"),Ii=Symbol.for("react.offscreen"),Mi=Symbol.iterator;function Di(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Mi&&e[Mi]||e["@@iterator"])?e:null}var Oi,Ti=Object.assign;function Ni(e){if(void 0===Oi)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oi=t&&t[1]||""}return"\n"+Oi+e}var qi=!1;function Fi(e,t){if(!e||qi)return"";qi=!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{qi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ni(e):""}function zi(e){switch(e.tag){case 5:return Ni(e.type);case 16:return Ni("Lazy");case 13:return Ni("Suspense");case 19:return Ni("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1);case 11:return e=Fi(e.type.render,!1);case 1:return e=Fi(e.type,!0);default:return""}}function ji(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 Si:return"Fragment";case xi:return"Portal";case wi:return"Profiler";case Ei:return"StrictMode";case Li:return"Suspense";case Ai:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ri:return(e.displayName||"Context")+".Consumer";case Ci:return(e._context.displayName||"Context")+".Provider";case ki:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _i:return null!==(t=e.displayName||null)?t:ji(e.type)||"Memo";case Pi:t=e._payload,e=e._init;try{return ji(e(t))}catch(e){}}return null}function $i(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 ji(t);case 8:return t===Ei?"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 Bi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Hi(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Gi(e){e._valueTracker||(e._valueTracker=function(e){var t=Hi(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 Wi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hi(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Vi(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 Ui(e,t){var n=t.checked;return Ti({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Yi(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Bi(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 Ki(e,t){null!=(t=t.checked)&&vi(e,"checked",t,!1)}function Xi(e,t){Ki(e,t);var n=Bi(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")?Ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ji(e,t.type,Bi(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Qi(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 Ji(e,t,n){"number"===t&&Vi(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zi=Array.isArray;function ea(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=""+Bi(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 ta(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ri(91));return Ti({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function na(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ri(92));if(Zi(n)){if(1<n.length)throw Error(ri(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Bi(n)}}function ra(e,t){var n=Bi(t.value),r=Bi(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 oa(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ia(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 aa(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ia(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var la,sa,ua=(sa=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((la=la||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=la.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 sa(e,t)}))}:sa);function ca(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 da={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},pa=["Webkit","ms","Moz","O"];function fa(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||da.hasOwnProperty(e)&&da[e]?(""+t).trim():t+"px"}function ha(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fa(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(da).forEach((function(e){pa.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),da[t]=da[e]}))}));var ma=Ti({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 ga(e,t){if(t){if(ma[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ri(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ri(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ri(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ri(62))}}function va(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 ba=null;function ya(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xa=null,Sa=null,Ea=null;function wa(e){if(e=gc(e)){if("function"!=typeof xa)throw Error(ri(280));var t=e.stateNode;t&&(t=bc(t),xa(e.stateNode,e.type,t))}}function Ca(e){Sa?Ea?Ea.push(e):Ea=[e]:Sa=e}function Ra(){if(Sa){var e=Sa,t=Ea;if(Ea=Sa=null,wa(e),t)for(e=0;e<t.length;e++)wa(t[e])}}function ka(e,t){return e(t)}function La(){}var Aa=!1;function _a(e,t,n){if(Aa)return e(t,n);Aa=!0;try{return ka(e,t,n)}finally{Aa=!1,(null!==Sa||null!==Ea)&&(La(),Ra())}}function Pa(e,t){var n=e.stateNode;if(null===n)return null;var r=bc(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(ri(231,t,typeof n));return n}var Ia=!1;if(si)try{var Ma={};Object.defineProperty(Ma,"passive",{get:function(){Ia=!0}}),window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch(sa){Ia=!1}function Da(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 Oa=!1,Ta=null,Na=!1,qa=null,Fa={onError:function(e){Oa=!0,Ta=e}};function za(e,t,n,r,o,i,a,l,s){Oa=!1,Ta=null,Da.apply(Fa,arguments)}function ja(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 $a(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 Ba(e){if(ja(e)!==e)throw Error(ri(188))}function Ha(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ja(e)))throw Error(ri(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 Ba(o),e;if(i===r)return Ba(o),t;i=i.sibling}throw Error(ri(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(ri(189))}}if(n.alternate!==r)throw Error(ri(190))}if(3!==n.tag)throw Error(ri(188));return n.stateNode.current===n?e:t}(e),null!==e?Ga(e):null}function Ga(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ga(e);if(null!==t)return t;e=e.sibling}return null}var Wa=ni.unstable_scheduleCallback,Va=ni.unstable_cancelCallback,Ua=ni.unstable_shouldYield,Ya=ni.unstable_requestPaint,Ka=ni.unstable_now,Xa=ni.unstable_getCurrentPriorityLevel,Qa=ni.unstable_ImmediatePriority,Ja=ni.unstable_UserBlockingPriority,Za=ni.unstable_NormalPriority,el=ni.unstable_LowPriority,tl=ni.unstable_IdlePriority,nl=null,rl=null;var ol=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(il(e)/al|0)|0},il=Math.log,al=Math.LN2;var ll=64,sl=4194304;function ul(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 cl(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=ul(l):0!==(i&=a)&&(r=ul(i))}else 0!==(a=n&~o)?r=ul(a):0!==i&&(r=ul(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-ol(t)),r|=e[n],t&=~o;return r}function dl(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 pl(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function fl(){var e=ll;return!(4194240&(ll<<=1))&&(ll=64),e}function hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ml(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ol(t)]=n}function gl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ol(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vl=0;function bl(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yl,xl,Sl,El,wl,Cl=!1,Rl=[],kl=null,Ll=null,Al=null,_l=new Map,Pl=new Map,Il=[],Ml="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 Dl(e,t){switch(e){case"focusin":case"focusout":kl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function Ol(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=gc(t))&&xl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Tl(e){var t=mc(e.target);if(null!==t){var n=ja(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$a(n)))return e.blockedOn=t,void wl(e.priority,(function(){Sl(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 Nl(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=gc(n))&&xl(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ba=r,n.target.dispatchEvent(r),ba=null,t.shift()}return!0}function ql(e,t,n){Nl(e)&&n.delete(t)}function Fl(){Cl=!1,null!==kl&&Nl(kl)&&(kl=null),null!==Ll&&Nl(Ll)&&(Ll=null),null!==Al&&Nl(Al)&&(Al=null),_l.forEach(ql),Pl.forEach(ql)}function zl(e,t){e.blockedOn===t&&(e.blockedOn=null,Cl||(Cl=!0,ni.unstable_scheduleCallback(ni.unstable_NormalPriority,Fl)))}function jl(e){function t(t){return zl(t,e)}if(0<Rl.length){zl(Rl[0],e);for(var n=1;n<Rl.length;n++){var r=Rl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kl&&zl(kl,e),null!==Ll&&zl(Ll,e),null!==Al&&zl(Al,e),_l.forEach(t),Pl.forEach(t),n=0;n<Il.length;n++)(r=Il[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Il.length&&null===(n=Il[0]).blockedOn;)Tl(n),null===n.blockedOn&&Il.shift()}var $l=bi.ReactCurrentBatchConfig,Bl=!0;function Hl(e,t,n,r){var o=vl,i=$l.transition;$l.transition=null;try{vl=1,Wl(e,t,n,r)}finally{vl=o,$l.transition=i}}function Gl(e,t,n,r){var o=vl,i=$l.transition;$l.transition=null;try{vl=4,Wl(e,t,n,r)}finally{vl=o,$l.transition=i}}function Wl(e,t,n,r){if(Bl){var o=Ul(e,t,n,r);if(null===o)$u(e,t,r,Vl,n),Dl(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return kl=Ol(kl,e,t,n,r,o),!0;case"dragenter":return Ll=Ol(Ll,e,t,n,r,o),!0;case"mouseover":return Al=Ol(Al,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _l.set(i,Ol(_l.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pl.set(i,Ol(Pl.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dl(e,r),4&t&&-1<Ml.indexOf(e)){for(;null!==o;){var i=gc(o);if(null!==i&&yl(i),null===(i=Ul(e,t,n,r))&&$u(e,t,r,Vl,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else $u(e,t,r,null,n)}}var Vl=null;function Ul(e,t,n,r){if(Vl=null,null!==(e=mc(e=ya(r))))if(null===(t=ja(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$a(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 Vl=e,null}function Yl(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(Xa()){case Qa:return 1;case Ja:return 4;case Za:case el:return 16;case tl:return 536870912;default:return 16}default:return 16}}var Kl=null,Xl=null,Ql=null;function Jl(){if(Ql)return Ql;var e,t,n=Xl,r=n.length,o="value"in Kl?Kl.value:Kl.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 Ql=o.slice(e,1<t?1-t:void 0)}function Zl(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 es(){return!0}function ts(){return!1}function ns(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)?es:ts,this.isPropagationStopped=ts,this}return Ti(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=es)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),t}var rs,os,is,as={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=ns(as),ss=Ti({},as,{view:0,detail:0}),us=ns(ss),cs=Ti({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Es,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!==is&&(is&&"mousemove"===e.type?(rs=e.screenX-is.screenX,os=e.screenY-is.screenY):os=rs=0,is=e),rs)},movementY:function(e){return"movementY"in e?e.movementY:os}}),ds=ns(cs),ps=ns(Ti({},cs,{dataTransfer:0})),fs=ns(Ti({},ss,{relatedTarget:0})),hs=ns(Ti({},as,{animationName:0,elapsedTime:0,pseudoElement:0})),ms=Ti({},as,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gs=ns(ms),vs=ns(Ti({},as,{data:0})),bs={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ys={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"},xs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ss(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xs[e])&&!!t[e]}function Es(){return Ss}var ws=Ti({},ss,{key:function(e){if(e.key){var t=bs[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zl(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ys[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Es,charCode:function(e){return"keypress"===e.type?Zl(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zl(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cs=ns(ws),Rs=ns(Ti({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ks=ns(Ti({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Es})),Ls=ns(Ti({},as,{propertyName:0,elapsedTime:0,pseudoElement:0})),As=Ti({},cs,{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}),_s=ns(As),Ps=[9,13,27,32],Is=si&&"CompositionEvent"in window,Ms=null;si&&"documentMode"in document&&(Ms=document.documentMode);var Ds=si&&"TextEvent"in window&&!Ms,Os=si&&(!Is||Ms&&8<Ms&&11>=Ms),Ts=String.fromCharCode(32),Ns=!1;function qs(e,t){switch(e){case"keyup":return-1!==Ps.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zs=!1;var js={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 $s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!js[e.type]:"textarea"===t}function Bs(e,t,n,r){Ca(r),0<(t=Hu(t,"onChange")).length&&(n=new ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hs=null,Gs=null;function Ws(e){Tu(e,0)}function Vs(e){if(Wi(vc(e)))return e}function Us(e,t){if("change"===e)return t}var Ys=!1;if(si){var Ks;if(si){var Xs="oninput"in document;if(!Xs){var Qs=document.createElement("div");Qs.setAttribute("oninput","return;"),Xs="function"==typeof Qs.oninput}Ks=Xs}else Ks=!1;Ys=Ks&&(!document.documentMode||9<document.documentMode)}function Js(){Hs&&(Hs.detachEvent("onpropertychange",Zs),Gs=Hs=null)}function Zs(e){if("value"===e.propertyName&&Vs(Gs)){var t=[];Bs(t,Gs,e,ya(e)),_a(Ws,t)}}function eu(e,t,n){"focusin"===e?(Js(),Gs=n,(Hs=t).attachEvent("onpropertychange",Zs)):"focusout"===e&&Js()}function tu(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vs(Gs)}function nu(e,t){if("click"===e)return Vs(t)}function ru(e,t){if("input"===e||"change"===e)return Vs(t)}var ou="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function iu(e,t){if(ou(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(!ui.call(t,o)||!ou(e[o],t[o]))return!1}return!0}function au(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lu(e,t){var n,r=au(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=au(r)}}function su(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?su(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function uu(){for(var e=window,t=Vi();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Vi((e=t.contentWindow).document)}return t}function cu(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 du(e){var t=uu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&su(n.ownerDocument.documentElement,n)){if(null!==r&&cu(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=lu(n,i);var a=lu(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 pu=si&&"documentMode"in document&&11>=document.documentMode,fu=null,hu=null,mu=null,gu=!1;function vu(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gu||null==fu||fu!==Vi(r)||("selectionStart"in(r=fu)&&cu(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},mu&&iu(mu,r)||(mu=r,0<(r=Hu(hu,"onSelect")).length&&(t=new ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fu)))}function bu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yu={animationend:bu("Animation","AnimationEnd"),animationiteration:bu("Animation","AnimationIteration"),animationstart:bu("Animation","AnimationStart"),transitionend:bu("Transition","TransitionEnd")},xu={},Su={};function Eu(e){if(xu[e])return xu[e];if(!yu[e])return e;var t,n=yu[e];for(t in n)if(n.hasOwnProperty(t)&&t in Su)return xu[e]=n[t];return e}si&&(Su=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);var wu=Eu("animationend"),Cu=Eu("animationiteration"),Ru=Eu("animationstart"),ku=Eu("transitionend"),Lu=new Map,Au="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 _u(e,t){Lu.set(e,t),ai(t,[e])}for(var Pu=0;Pu<Au.length;Pu++){var Iu=Au[Pu];_u(Iu.toLowerCase(),"on"+(Iu[0].toUpperCase()+Iu.slice(1)))}_u(wu,"onAnimationEnd"),_u(Cu,"onAnimationIteration"),_u(Ru,"onAnimationStart"),_u("dblclick","onDoubleClick"),_u("focusin","onFocus"),_u("focusout","onBlur"),_u(ku,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mu="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(" "),Du=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mu));function Ou(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(za.apply(this,arguments),Oa){if(!Oa)throw Error(ri(198));var u=Ta;Oa=!1,Ta=null,Na||(Na=!0,qa=u)}}(r,t,void 0,e),e.currentTarget=null}function Tu(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;Ou(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;Ou(o,l,u),i=s}}}if(Na)throw e=qa,Na=!1,qa=null,e}function Nu(e,t){var n=t[pc];void 0===n&&(n=t[pc]=new Set);var r=e+"__bubble";n.has(r)||(ju(t,e,2,!1),n.add(r))}function qu(e,t,n){var r=0;t&&(r|=4),ju(n,e,r,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function zu(e){if(!e[Fu]){e[Fu]=!0,oi.forEach((function(t){"selectionchange"!==t&&(Du.has(t)||qu(t,!1,e),qu(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fu]||(t[Fu]=!0,qu("selectionchange",!1,t))}}function ju(e,t,n,r){switch(Yl(t)){case 1:var o=Hl;break;case 4:o=Gl;break;default:o=Wl}n=o.bind(null,t,n,e),o=void 0,!Ia||"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 $u(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=mc(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}_a((function(){var r=i,o=ya(n),a=[];e:{var l=Lu.get(e);if(void 0!==l){var s=ls,u=e;switch(e){case"keypress":if(0===Zl(n))break e;case"keydown":case"keyup":s=Cs;break;case"focusin":u="focus",s=fs;break;case"focusout":u="blur",s=fs;break;case"beforeblur":case"afterblur":s=fs;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=ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=ps;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=ks;break;case wu:case Cu:case Ru:s=hs;break;case ku:s=Ls;break;case"scroll":s=us;break;case"wheel":s=_s;break;case"copy":case"cut":case"paste":s=gs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rs}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Pa(h,p))&&c.push(Bu(h,m,f)))),d)break;h=h.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===ba||!(u=n.relatedTarget||n.fromElement)||!mc(u)&&!u[dc])&&(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)?mc(u):null)&&(u!==(d=ja(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=ds,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rs,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:vc(s),f=null==u?l:vc(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,mc(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Gu(f))h++;for(f=0,m=p;m;m=Gu(m))f++;for(;0<h-f;)c=Gu(c),h--;for(;0<f-h;)p=Gu(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Gu(c),p=Gu(p)}c=null}else c=null;null!==s&&Wu(a,l,s,c,!1),null!==u&&null!==d&&Wu(a,d,u,c,!0)}if("select"===(s=(l=r?vc(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Us;else if($s(l))if(Ys)g=ru;else{g=tu;var v=eu}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=nu);switch(g&&(g=g(e,r))?Bs(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Ji(l,"number",l.value)),v=r?vc(r):window,e){case"focusin":($s(v)||"true"===v.contentEditable)&&(fu=v,hu=r,mu=null);break;case"focusout":mu=hu=fu=null;break;case"mousedown":gu=!0;break;case"contextmenu":case"mouseup":case"dragend":gu=!1,vu(a,n,o);break;case"selectionchange":if(pu)break;case"keydown":case"keyup":vu(a,n,o)}var b;if(Is)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 zs?qs(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Os&&"ko"!==n.locale&&(zs||"onCompositionStart"!==y?"onCompositionEnd"===y&&zs&&(b=Jl()):(Xl="value"in(Kl=o)?Kl.value:Kl.textContent,zs=!0)),0<(v=Hu(r,y)).length&&(y=new vs(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Fs(n))&&(y.data=b))),(b=Ds?function(e,t){switch(e){case"compositionend":return Fs(t);case"keypress":return 32!==t.which?null:(Ns=!0,Ts);case"textInput":return(e=t.data)===Ts&&Ns?null:e;default:return null}}(e,n):function(e,t){if(zs)return"compositionend"===e||!Is&&qs(e,t)?(e=Jl(),Ql=Xl=Kl=null,zs=!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 Os&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hu(r,"onBeforeInput")).length&&(o=new vs("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Tu(a,t)}))}function Bu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hu(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=Pa(e,n))&&r.unshift(Bu(e,i,o)),null!=(i=Pa(e,t))&&r.push(Bu(e,i,o))),e=e.return}return r}function Gu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wu(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=Pa(n,i))&&a.unshift(Bu(n,s,l)):o||null!=(s=Pa(n,i))&&a.push(Bu(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Vu=/\r\n?/g,Uu=/\u0000|\uFFFD/g;function Yu(e){return("string"==typeof e?e:""+e).replace(Vu,"\n").replace(Uu,"")}function Ku(e,t,n){if(t=Yu(t),Yu(e)!==t&&n)throw Error(ri(425))}function Xu(){}var Qu=null,Ju=null;function Zu(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 ec="function"==typeof setTimeout?setTimeout:void 0,tc="function"==typeof clearTimeout?clearTimeout:void 0,nc="function"==typeof Promise?Promise:void 0,rc="function"==typeof queueMicrotask?queueMicrotask:void 0!==nc?function(e){return nc.resolve(null).then(e).catch(oc)}:ec;function oc(e){setTimeout((function(){throw e}))}function ic(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 jl(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);jl(t)}function ac(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 lc(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 sc=Math.random().toString(36).slice(2),uc="__reactFiber$"+sc,cc="__reactProps$"+sc,dc="__reactContainer$"+sc,pc="__reactEvents$"+sc,fc="__reactListeners$"+sc,hc="__reactHandles$"+sc;function mc(e){var t=e[uc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dc]||n[uc]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lc(e);null!==e;){if(n=e[uc])return n;e=lc(e)}return t}n=(e=n).parentNode}return null}function gc(e){return!(e=e[uc]||e[dc])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function vc(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ri(33))}function bc(e){return e[cc]||null}var yc=[],xc=-1;function Sc(e){return{current:e}}function Ec(e){0>xc||(e.current=yc[xc],yc[xc]=null,xc--)}function wc(e,t){xc++,yc[xc]=e.current,e.current=t}var Cc={},Rc=Sc(Cc),kc=Sc(!1),Lc=Cc;function Ac(e,t){var n=e.type.contextTypes;if(!n)return Cc;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 _c(e){return null!=(e=e.childContextTypes)}function Pc(){Ec(kc),Ec(Rc)}function Ic(e,t,n){if(Rc.current!==Cc)throw Error(ri(168));wc(Rc,t),wc(kc,n)}function Mc(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(ri(108,$i(e)||"Unknown",o));return Ti({},n,r)}function Dc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cc,Lc=Rc.current,wc(Rc,e),wc(kc,kc.current),!0}function Oc(e,t,n){var r=e.stateNode;if(!r)throw Error(ri(169));n?(e=Mc(e,t,Lc),r.__reactInternalMemoizedMergedChildContext=e,Ec(kc),Ec(Rc),wc(Rc,e)):Ec(kc),wc(kc,n)}var Tc=null,Nc=!1,qc=!1;function Fc(e){null===Tc?Tc=[e]:Tc.push(e)}function zc(){if(!qc&&null!==Tc){qc=!0;var e=0,t=vl;try{var n=Tc;for(vl=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Tc=null,Nc=!1}catch(t){throw null!==Tc&&(Tc=Tc.slice(e+1)),Wa(Qa,zc),t}finally{vl=t,qc=!1}}return null}var jc=[],$c=0,Bc=null,Hc=0,Gc=[],Wc=0,Vc=null,Uc=1,Yc="";function Kc(e,t){jc[$c++]=Hc,jc[$c++]=Bc,Bc=e,Hc=t}function Xc(e,t,n){Gc[Wc++]=Uc,Gc[Wc++]=Yc,Gc[Wc++]=Vc,Vc=e;var r=Uc;e=Yc;var o=32-ol(r)-1;r&=~(1<<o),n+=1;var i=32-ol(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Uc=1<<32-ol(t)+o|n<<o|r,Yc=i+e}else Uc=1<<i|n<<o|r,Yc=e}function Qc(e){null!==e.return&&(Kc(e,1),Xc(e,1,0))}function Jc(e){for(;e===Bc;)Bc=jc[--$c],jc[$c]=null,Hc=jc[--$c],jc[$c]=null;for(;e===Vc;)Vc=Gc[--Wc],Gc[Wc]=null,Yc=Gc[--Wc],Gc[Wc]=null,Uc=Gc[--Wc],Gc[Wc]=null}var Zc=null,ed=null,td=!1,nd=null;function rd(e,t){var n=_m(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 od(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,Zc=e,ed=ac(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zc=e,ed=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Vc?{id:Uc,overflow:Yc}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=_m(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zc=e,ed=null,!0);default:return!1}}function id(e){return!(!(1&e.mode)||128&e.flags)}function ad(e){if(td){var t=ed;if(t){var n=t;if(!od(e,t)){if(id(e))throw Error(ri(418));t=ac(n.nextSibling);var r=Zc;t&&od(e,t)?rd(r,n):(e.flags=-4097&e.flags|2,td=!1,Zc=e)}}else{if(id(e))throw Error(ri(418));e.flags=-4097&e.flags|2,td=!1,Zc=e}}}function ld(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zc=e}function sd(e){if(e!==Zc)return!1;if(!td)return ld(e),td=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zu(e.type,e.memoizedProps)),t&&(t=ed)){if(id(e))throw ud(),Error(ri(418));for(;t;)rd(e,t),t=ac(t.nextSibling)}if(ld(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ri(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ed=ac(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ed=null}}else ed=Zc?ac(e.stateNode.nextSibling):null;return!0}function ud(){for(var e=ed;e;)e=ac(e.nextSibling)}function cd(){ed=Zc=null,td=!1}function dd(e){null===nd?nd=[e]:nd.push(e)}var pd=bi.ReactCurrentBatchConfig;function fd(e,t){if(e&&e.defaultProps){for(var n in t=Ti({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var hd=Sc(null),md=null,gd=null,vd=null;function bd(){vd=gd=md=null}function yd(e){var t=hd.current;Ec(hd),e._currentValue=t}function xd(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 Sd(e,t){md=e,vd=gd=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vf=!0),e.firstContext=null)}function Ed(e){var t=e._currentValue;if(vd!==e)if(e={context:e,memoizedValue:t,next:null},null===gd){if(null===md)throw Error(ri(308));gd=e,md.dependencies={lanes:0,firstContext:e}}else gd=gd.next=e;return t}var wd=null;function Cd(e){null===wd?wd=[e]:wd.push(e)}function Rd(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Cd(t)):(n.next=o.next,o.next=n),t.interleaved=n,kd(e,r)}function kd(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 Ld=!1;function Ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _d(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 Pd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Id(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&kh){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,kd(e,n)}return null===(o=r.interleaved)?(t.next=t,Cd(r)):(t.next=o.next,o.next=t),r.interleaved=t,kd(e,n)}function Md(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gl(e,n)}}function Dd(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 Od(e,t,n,r){var o=e.updateQueue;Ld=!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 h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Ti({},d,p);break e;case 2:Ld=!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);Oh|=a,e.lanes=a,e.memoizedState=d}}function Td(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(ri(191,o));o.call(r)}}}var Nd=(new ti.Component).refs;function qd(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ti({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Fd={isMounted:function(e){return!!(e=e._reactInternals)&&ja(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jh(),o=Zh(e),i=Pd(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Id(e,i,o))&&(em(t,e,o,r),Md(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jh(),o=Zh(e),i=Pd(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Id(e,i,o))&&(em(t,e,o,r),Md(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jh(),r=Zh(e),o=Pd(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Id(e,o,r))&&(em(t,e,r,n),Md(t,e,r))}};function zd(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!iu(n,r)||!iu(o,i))}function jd(e,t,n){var r=!1,o=Cc,i=t.contextType;return"object"==typeof i&&null!==i?i=Ed(i):(o=_c(t)?Lc:Rc.current,i=(r=null!=(r=t.contextTypes))?Ac(e,o):Cc),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Fd,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function $d(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&&Fd.enqueueReplaceState(t,t.state,null)}function Bd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Nd,Ad(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ed(i):(i=_c(t)?Lc:Rc.current,o.context=Ac(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(qd(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&&Fd.enqueueReplaceState(o,o.state,null),Od(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Hd(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(ri(309));var r=n.stateNode}if(!r)throw Error(ri(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;t===Nd&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(ri(284));if(!n._owner)throw Error(ri(290,e))}return e}function Gd(e,t){throw e=Object.prototype.toString.call(t),Error(ri(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wd(e){return(0,e._init)(e._payload)}function Vd(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=Im(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=Tm(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===Si?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Pi&&Wd(i)===t.type)?((r=o(t,n.props)).ref=Hd(e,t,n),r.return=e,r):((r=Mm(n.type,n.key,n.props,null,e.mode,r)).ref=Hd(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=Nm(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=Dm(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=Tm(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case yi:return(n=Mm(t.type,t.key,t.props,null,e.mode,n)).ref=Hd(e,null,t),n.return=e,n;case xi:return(t=Nm(t,e.mode,n)).return=e,t;case Pi:return d(e,(0,t._init)(t._payload),n)}if(Zi(t)||Di(t))return(t=Dm(t,e.mode,n,null)).return=e,t;Gd(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 yi:return n.key===o?s(e,t,n,r):null;case xi:return n.key===o?u(e,t,n,r):null;case Pi:return p(e,t,(o=n._init)(n._payload),r)}if(Zi(n)||Di(n))return null!==o?null:c(e,t,n,r,null);Gd(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 yi:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case xi:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Pi:return f(e,t,n,(0,r._init)(r._payload),o)}if(Zi(r)||Di(r))return c(t,e=e.get(n)||null,r,o,null);Gd(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,h=g}if(m===l.length)return n(o,h),td&&Kc(o,m),u;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return td&&Kc(o,m),u}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),td&&Kc(o,m),u}function m(o,a,l,s){var u=Di(l);if("function"!=typeof u)throw Error(ri(150));if(null==(l=u.call(l)))throw Error(ri(151));for(var c=u=null,h=a,m=a=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b,h=g}if(v.done)return n(o,h),td&&Kc(o,m),u;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return td&&Kc(o,m),u}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),td&&Kc(o,m),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Si&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case yi:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Si){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===Pi&&Wd(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Hd(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Si?((i=Dm(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Mm(l.type,l.key,l.props,null,r.mode,s)).ref=Hd(r,i,l),s.return=r,r=s)}return a(r);case xi: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=Nm(l,r.mode,s)).return=r,r=i}return a(r);case Pi:return e(r,i,(c=l._init)(l._payload),s)}if(Zi(l))return h(r,i,l,s);if(Di(l))return m(r,i,l,s);Gd(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=Tm(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Ud=Vd(!0),Yd=Vd(!1),Kd={},Xd=Sc(Kd),Qd=Sc(Kd),Jd=Sc(Kd);function Zd(e){if(e===Kd)throw Error(ri(174));return e}function ep(e,t){switch(wc(Jd,t),wc(Qd,e),wc(Xd,Kd),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:aa(null,"");break;default:t=aa(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ec(Xd),wc(Xd,t)}function tp(){Ec(Xd),Ec(Qd),Ec(Jd)}function np(e){Zd(Jd.current);var t=Zd(Xd.current),n=aa(t,e.type);t!==n&&(wc(Qd,e),wc(Xd,n))}function rp(e){Qd.current===e&&(Ec(Xd),Ec(Qd))}var op=Sc(0);function ip(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 ap=[];function lp(){for(var e=0;e<ap.length;e++)ap[e]._workInProgressVersionPrimary=null;ap.length=0}var sp=bi.ReactCurrentDispatcher,up=bi.ReactCurrentBatchConfig,cp=0,dp=null,pp=null,fp=null,hp=!1,mp=!1,gp=0,vp=0;function bp(){throw Error(ri(321))}function yp(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ou(e[n],t[n]))return!1;return!0}function xp(e,t,n,r,o,i){if(cp=i,dp=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sp.current=null===e||null===e.memoizedState?rf:of,e=n(r,o),mp){i=0;do{if(mp=!1,gp=0,25<=i)throw Error(ri(301));i+=1,fp=pp=null,t.updateQueue=null,sp.current=af,e=n(r,o)}while(mp)}if(sp.current=nf,t=null!==pp&&null!==pp.next,cp=0,fp=pp=dp=null,hp=!1,t)throw Error(ri(300));return e}function Sp(){var e=0!==gp;return gp=0,e}function Ep(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===fp?dp.memoizedState=fp=e:fp=fp.next=e,fp}function wp(){if(null===pp){var e=dp.alternate;e=null!==e?e.memoizedState:null}else e=pp.next;var t=null===fp?dp.memoizedState:fp.next;if(null!==t)fp=t,pp=e;else{if(null===e)throw Error(ri(310));e={memoizedState:(pp=e).memoizedState,baseState:pp.baseState,baseQueue:pp.baseQueue,queue:pp.queue,next:null},null===fp?dp.memoizedState=fp=e:fp=fp.next=e}return fp}function Cp(e,t){return"function"==typeof t?t(e):t}function Rp(e){var t=wp(),n=t.queue;if(null===n)throw Error(ri(311));n.lastRenderedReducer=e;var r=pp,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((cp&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,dp.lanes|=c,Oh|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,ou(r,t.memoizedState)||(vf=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,dp.lanes|=i,Oh|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function kp(e){var t=wp(),n=t.queue;if(null===n)throw Error(ri(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);ou(i,t.memoizedState)||(vf=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Lp(){}function Ap(e,t){var n=dp,r=wp(),o=t(),i=!ou(r.memoizedState,o);if(i&&(r.memoizedState=o,vf=!0),r=r.queue,jp(Ip.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==fp&&1&fp.memoizedState.tag){if(n.flags|=2048,Tp(9,Pp.bind(null,n,r,o,t),void 0,null),null===Lh)throw Error(ri(349));30&cp||_p(n,t,o)}return o}function _p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=dp.updateQueue)?(t={lastEffect:null,stores:null},dp.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pp(e,t,n,r){t.value=n,t.getSnapshot=r,Mp(t)&&Dp(e)}function Ip(e,t,n){return n((function(){Mp(t)&&Dp(e)}))}function Mp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ou(e,n)}catch(e){return!0}}function Dp(e){var t=kd(e,1);null!==t&&em(t,e,1,-1)}function Op(e){var t=Ep();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cp,lastRenderedState:e},t.queue=e,e=e.dispatch=Jp.bind(null,dp,e),[t.memoizedState,e]}function Tp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=dp.updateQueue)?(t={lastEffect:null,stores:null},dp.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 Np(){return wp().memoizedState}function qp(e,t,n,r){var o=Ep();dp.flags|=e,o.memoizedState=Tp(1|t,n,void 0,void 0===r?null:r)}function Fp(e,t,n,r){var o=wp();r=void 0===r?null:r;var i=void 0;if(null!==pp){var a=pp.memoizedState;if(i=a.destroy,null!==r&&yp(r,a.deps))return void(o.memoizedState=Tp(t,n,i,r))}dp.flags|=e,o.memoizedState=Tp(1|t,n,i,r)}function zp(e,t){return qp(8390656,8,e,t)}function jp(e,t){return Fp(2048,8,e,t)}function $p(e,t){return Fp(4,2,e,t)}function Bp(e,t){return Fp(4,4,e,t)}function Hp(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 Gp(e,t,n){return n=null!=n?n.concat([e]):null,Fp(4,4,Hp.bind(null,t,e),n)}function Wp(){}function Vp(e,t){var n=wp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Up(e,t){var n=wp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yp(e,t,n){return 21&cp?(ou(n,t)||(n=fl(),dp.lanes|=n,Oh|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vf=!0),e.memoizedState=n)}function Kp(e,t){var n=vl;vl=0!==n&&4>n?n:4,e(!0);var r=up.transition;up.transition={};try{e(!1),t()}finally{vl=n,up.transition=r}}function Xp(){return wp().memoizedState}function Qp(e,t,n){var r=Zh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zp(e))ef(t,n);else if(null!==(n=Rd(e,t,n,r))){em(n,e,r,Jh()),tf(n,t,r)}}function Jp(e,t,n){var r=Zh(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zp(e))ef(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,ou(l,a)){var s=t.interleaved;return null===s?(o.next=o,Cd(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rd(e,t,o,r))&&(em(n,e,r,o=Jh()),tf(n,t,r))}}function Zp(e){var t=e.alternate;return e===dp||null!==t&&t===dp}function ef(e,t){mp=hp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tf(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gl(e,n)}}var nf={readContext:Ed,useCallback:bp,useContext:bp,useEffect:bp,useImperativeHandle:bp,useInsertionEffect:bp,useLayoutEffect:bp,useMemo:bp,useReducer:bp,useRef:bp,useState:bp,useDebugValue:bp,useDeferredValue:bp,useTransition:bp,useMutableSource:bp,useSyncExternalStore:bp,useId:bp,unstable_isNewReconciler:!1},rf={readContext:Ed,useCallback:function(e,t){return Ep().memoizedState=[e,void 0===t?null:t],e},useContext:Ed,useEffect:zp,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qp(4194308,4,Hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qp(4194308,4,e,t)},useInsertionEffect:function(e,t){return qp(4,2,e,t)},useMemo:function(e,t){var n=Ep();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ep();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=Qp.bind(null,dp,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ep().memoizedState=e},useState:Op,useDebugValue:Wp,useDeferredValue:function(e){return Ep().memoizedState=e},useTransition:function(){var e=Op(!1),t=e[0];return e=Kp.bind(null,e[1]),Ep().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dp,o=Ep();if(td){if(void 0===n)throw Error(ri(407));n=n()}else{if(n=t(),null===Lh)throw Error(ri(349));30&cp||_p(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zp(Ip.bind(null,r,i,e),[e]),r.flags|=2048,Tp(9,Pp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ep(),t=Lh.identifierPrefix;if(td){var n=Yc;t=":"+t+"R"+(n=(Uc&~(1<<32-ol(Uc)-1)).toString(32)+n),0<(n=gp++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=vp++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},of={readContext:Ed,useCallback:Vp,useContext:Ed,useEffect:jp,useImperativeHandle:Gp,useInsertionEffect:$p,useLayoutEffect:Bp,useMemo:Up,useReducer:Rp,useRef:Np,useState:function(){return Rp(Cp)},useDebugValue:Wp,useDeferredValue:function(e){return Yp(wp(),pp.memoizedState,e)},useTransition:function(){return[Rp(Cp)[0],wp().memoizedState]},useMutableSource:Lp,useSyncExternalStore:Ap,useId:Xp,unstable_isNewReconciler:!1},af={readContext:Ed,useCallback:Vp,useContext:Ed,useEffect:jp,useImperativeHandle:Gp,useInsertionEffect:$p,useLayoutEffect:Bp,useMemo:Up,useReducer:kp,useRef:Np,useState:function(){return kp(Cp)},useDebugValue:Wp,useDeferredValue:function(e){var t=wp();return null===pp?t.memoizedState=e:Yp(t,pp.memoizedState,e)},useTransition:function(){return[kp(Cp)[0],wp().memoizedState]},useMutableSource:Lp,useSyncExternalStore:Ap,useId:Xp,unstable_isNewReconciler:!1};function lf(e,t){try{var n="",r=t;do{n+=zi(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 sf(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function uf(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var cf="function"==typeof WeakMap?WeakMap:Map;function df(e,t,n){(n=Pd(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bh||(Bh=!0,Hh=r),uf(0,t)},n}function pf(e,t,n){(n=Pd(-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(){uf(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){uf(0,t),"function"!=typeof r&&(null===Gh?Gh=new Set([this]):Gh.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ff(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cf;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=wm.bind(null,e,t,n),t.then(e,e))}function hf(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 mf(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=Pd(-1,1)).tag=2,Id(n,t,1))),n.lanes|=1),e)}var gf=bi.ReactCurrentOwner,vf=!1;function bf(e,t,n,r){t.child=null===e?Yd(t,null,n,r):Ud(t,e.child,n,r)}function yf(e,t,n,r,o){n=n.render;var i=t.ref;return Sd(t,o),r=xp(e,t,n,r,i,o),n=Sp(),null===e||vf?(td&&n&&Qc(t),t.flags|=1,bf(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bf(e,t,o))}function xf(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pm(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mm(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sf(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:iu)(a,r)&&e.ref===t.ref)return Bf(e,t,o)}return t.flags|=1,(e=Im(i,r)).ref=t.ref,e.return=t,t.child=e}function Sf(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(iu(i,r)&&e.ref===t.ref){if(vf=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Bf(e,t,o);131072&e.flags&&(vf=!0)}}return Cf(e,t,n,r,o)}function Ef(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,wc(Ih,Ph),Ph|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,wc(Ih,Ph),Ph|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wc(Ih,Ph),Ph|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,wc(Ih,Ph),Ph|=r;return bf(e,t,o,n),t.child}function wf(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cf(e,t,n,r,o){var i=_c(n)?Lc:Rc.current;return i=Ac(t,i),Sd(t,o),n=xp(e,t,n,r,i,o),r=Sp(),null===e||vf?(td&&r&&Qc(t),t.flags|=1,bf(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bf(e,t,o))}function Rf(e,t,n,r,o){if(_c(n)){var i=!0;Dc(t)}else i=!1;if(Sd(t,o),null===t.stateNode)$f(e,t),jd(t,n,r),Bd(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=Ed(u):u=Ac(t,u=_c(n)?Lc:Rc.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)&&$d(t,a,r,u),Ld=!1;var p=t.memoizedState;a.state=p,Od(t,r,a,o),s=t.memoizedState,l!==r||p!==s||kc.current||Ld?("function"==typeof c&&(qd(t,n,c,r),s=t.memoizedState),(l=Ld||zd(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,_d(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:fd(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ed(s):s=Ac(t,s=_c(n)?Lc:Rc.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)&&$d(t,a,r,s),Ld=!1,p=t.memoizedState,a.state=p,Od(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||kc.current||Ld?("function"==typeof f&&(qd(t,n,f,r),h=t.memoizedState),(u=Ld||zd(t,n,u,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,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=h),a.props=r,a.state=h,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 kf(e,t,n,r,i,o)}function kf(e,t,n,r,o,i){wf(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Oc(t,n,!1),Bf(e,t,i);r=t.stateNode,gf.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ud(t,e.child,null,i),t.child=Ud(t,null,l,i)):bf(e,t,l,i),t.memoizedState=r.state,o&&Oc(t,n,!0),t.child}function Lf(e){var t=e.stateNode;t.pendingContext?Ic(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ic(0,t.context,!1),ep(e,t.containerInfo)}function Af(e,t,n,r,o){return cd(),dd(o),t.flags|=256,bf(e,t,n,r),t.child}var _f,Pf,If,Mf,Df={dehydrated:null,treeContext:null,retryLane:0};function Of(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tf(e,t,n){var r,o=t.pendingProps,i=op.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),wc(op,1&i),null===e)return ad(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=Om(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Dm(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Of(n),t.memoizedState=Df,e):Nf(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,qf(e,t,a,r=sf(Error(ri(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Om({mode:"visible",children:r.children},o,0,null),(i=Dm(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ud(t,e.child,null,a),t.child.memoizedState=Of(a),t.memoizedState=Df,i);if(!(1&t.mode))return qf(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,qf(e,t,a,r=sf(i=Error(ri(419)),r,void 0))}if(l=!!(a&e.childLanes),vf||l){if(null!==(r=Lh)){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,kd(e,o),em(r,e,o,-1))}return fm(),qf(e,t,a,r=sf(Error(ri(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Rm.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ed=ac(o.nextSibling),Zc=t,td=!0,nd=null,null!==e&&(Gc[Wc++]=Uc,Gc[Wc++]=Yc,Gc[Wc++]=Vc,Uc=e.id,Yc=e.overflow,Vc=t),t=Nf(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=Im(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=Im(r,a):(a=Dm(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)?Of(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Df,o}return e=(a=e.child).sibling,o=Im(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 Nf(e,t){return(t=Om({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qf(e,t,n,r){return null!==r&&dd(r),Ud(t,e.child,null,n),(e=Nf(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ff(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xd(e.return,t,n)}function zf(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 jf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bf(e,t,r.children,n),2&(r=op.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&&Ff(e,n,t);else if(19===e.tag)Ff(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(wc(op,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ip(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zf(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===ip(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zf(t,!0,n,null,i);break;case"together":zf(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $f(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bf(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Oh|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ri(153));if(null!==t.child){for(n=Im(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Im(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hf(e,t){if(!td)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 Gf(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 Wf(e,t,n){var r=t.pendingProps;switch(Jc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gf(t),null;case 1:case 17:return _c(t.type)&&Pc(),Gf(t),null;case 3:return r=t.stateNode,tp(),Ec(kc),Ec(Rc),lp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(sd(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==nd&&(om(nd),nd=null))),Pf(e,t),Gf(t),null;case 5:rp(t);var o=Zd(Jd.current);if(n=t.type,null!==e&&null!=t.stateNode)If(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ri(166));return Gf(t),null}if(e=Zd(Xd.current),sd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[uc]=t,r[cc]=i,e=!!(1&t.mode),n){case"dialog":Nu("cancel",r),Nu("close",r);break;case"iframe":case"object":case"embed":Nu("load",r);break;case"video":case"audio":for(o=0;o<Mu.length;o++)Nu(Mu[o],r);break;case"source":Nu("error",r);break;case"img":case"image":case"link":Nu("error",r),Nu("load",r);break;case"details":Nu("toggle",r);break;case"input":Yi(r,i),Nu("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Nu("invalid",r);break;case"textarea":na(r,i),Nu("invalid",r)}for(var a in ga(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Ku(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Ku(r.textContent,l,e),o=["children",""+l]):ii.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Nu("scroll",r)}switch(n){case"input":Gi(r),Qi(r,i,!0);break;case"textarea":Gi(r),oa(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Xu)}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=ia(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[uc]=t,e[cc]=r,_f(e,t,!1,!1),t.stateNode=e;e:{switch(a=va(n,r),n){case"dialog":Nu("cancel",e),Nu("close",e),o=r;break;case"iframe":case"object":case"embed":Nu("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mu.length;o++)Nu(Mu[o],e);o=r;break;case"source":Nu("error",e),o=r;break;case"img":case"image":case"link":Nu("error",e),Nu("load",e),o=r;break;case"details":Nu("toggle",e),o=r;break;case"input":Yi(e,r),o=Ui(e,r),Nu("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ti({},r,{value:void 0}),Nu("invalid",e);break;case"textarea":na(e,r),o=ta(e,r),Nu("invalid",e)}for(i in ga(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?ha(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&ua(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&ca(e,s):"number"==typeof s&&ca(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ii.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Nu("scroll",e):null!=s&&vi(e,i,s,a))}switch(n){case"input":Gi(e),Qi(e,r,!1);break;case"textarea":Gi(e),oa(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Bi(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ea(e,!!r.multiple,i,!1):null!=r.defaultValue&&ea(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Xu)}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 Gf(t),null;case 6:if(e&&null!=t.stateNode)Mf(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ri(166));if(n=Zd(Jd.current),Zd(Xd.current),sd(t)){if(r=t.stateNode,n=t.memoizedProps,r[uc]=t,(i=r.nodeValue!==n)&&null!==(e=Zc))switch(e.tag){case 3:Ku(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ku(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[uc]=t,t.stateNode=r}return Gf(t),null;case 13:if(Ec(op),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(td&&null!==ed&&1&t.mode&&!(128&t.flags))ud(),cd(),t.flags|=98560,i=!1;else if(i=sd(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ri(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ri(317));i[uc]=t}else cd(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gf(t),i=!1}else null!==nd&&(om(nd),nd=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&op.current?0===Mh&&(Mh=3):fm())),null!==t.updateQueue&&(t.flags|=4),Gf(t),null);case 4:return tp(),Pf(e,t),null===e&&zu(t.stateNode.containerInfo),Gf(t),null;case 10:return yd(t.type._context),Gf(t),null;case 19:if(Ec(op),null===(i=t.memoizedState))return Gf(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Hf(i,!1);else{if(0!==Mh||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ip(e))){for(t.flags|=128,Hf(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 wc(op,1&op.current|2),t.child}e=e.sibling}null!==i.tail&&Ka()>jh&&(t.flags|=128,r=!0,Hf(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ip(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hf(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!td)return Gf(t),null}else 2*Ka()-i.renderingStartTime>jh&&1073741824!==n&&(t.flags|=128,r=!0,Hf(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=Ka(),t.sibling=null,n=op.current,wc(op,r?1&n|2:1&n),t):(Gf(t),null);case 22:case 23:return um(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ph)&&(Gf(t),6&t.subtreeFlags&&(t.flags|=8192)):Gf(t),null;case 24:case 25:return null}throw Error(ri(156,t.tag))}function Vf(e,t){switch(Jc(t),t.tag){case 1:return _c(t.type)&&Pc(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return tp(),Ec(kc),Ec(Rc),lp(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return rp(t),null;case 13:if(Ec(op),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ri(340));cd()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ec(op),null;case 4:return tp(),null;case 10:return yd(t.type._context),null;case 22:case 23:return um(),null;default:return null}}_f=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}},Pf=function(){},If=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zd(Xd.current);var i,a=null;switch(n){case"input":o=Ui(e,o),r=Ui(e,r),a=[];break;case"select":o=Ti({},o,{value:void 0}),r=Ti({},r,{value:void 0}),a=[];break;case"textarea":o=ta(e,o),r=ta(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xu)}for(u in ga(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&&(ii.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&&(ii.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Nu("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)}},Mf=function(e,t,n,r){n!==r&&(t.flags|=4)};var Uf=!1,Yf=!1,Kf="function"==typeof WeakSet?WeakSet:Set,Xf=null;function Qf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Em(e,t,n)}else n.current=null}function Jf(e,t,n){try{n()}catch(n){Em(e,t,n)}}var Zf=!1;function eh(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&&Jf(t,n,i)}o=o.next}while(o!==r)}}function th(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 nh(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 rh(e){var t=e.alternate;null!==t&&(e.alternate=null,rh(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[uc],delete t[cc],delete t[pc],delete t[fc],delete t[hc])),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 oh(e){return 5===e.tag||3===e.tag||4===e.tag}function ih(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oh(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 ah(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=Xu));else if(4!==r&&null!==(e=e.child))for(ah(e,t,n),e=e.sibling;null!==e;)ah(e,t,n),e=e.sibling}function lh(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(lh(e,t,n),e=e.sibling;null!==e;)lh(e,t,n),e=e.sibling}var sh=null,uh=!1;function ch(e,t,n){for(n=n.child;null!==n;)dh(e,t,n),n=n.sibling}function dh(e,t,n){if(rl&&"function"==typeof rl.onCommitFiberUnmount)try{rl.onCommitFiberUnmount(nl,n)}catch(e){}switch(n.tag){case 5:Yf||Qf(n,t);case 6:var r=sh,o=uh;sh=null,ch(e,t,n),uh=o,null!==(sh=r)&&(uh?(e=sh,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sh.removeChild(n.stateNode));break;case 18:null!==sh&&(uh?(e=sh,n=n.stateNode,8===e.nodeType?ic(e.parentNode,n):1===e.nodeType&&ic(e,n),jl(e)):ic(sh,n.stateNode));break;case 4:r=sh,o=uh,sh=n.stateNode.containerInfo,uh=!0,ch(e,t,n),sh=r,uh=o;break;case 0:case 11:case 14:case 15:if(!Yf&&(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)&&Jf(n,t,a),o=o.next}while(o!==r)}ch(e,t,n);break;case 1:if(!Yf&&(Qf(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Em(n,t,e)}ch(e,t,n);break;case 21:ch(e,t,n);break;case 22:1&n.mode?(Yf=(r=Yf)||null!==n.memoizedState,ch(e,t,n),Yf=r):ch(e,t,n);break;default:ch(e,t,n)}}function ph(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kf),t.forEach((function(t){var r=km.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function fh(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:sh=l.stateNode,uh=!1;break e;case 3:case 4:sh=l.stateNode.containerInfo,uh=!0;break e}l=l.return}if(null===sh)throw Error(ri(160));dh(i,a,o),sh=null,uh=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Em(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hh(t,e),t=t.sibling}function hh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fh(t,e),mh(e),4&r){try{eh(3,e,e.return),th(3,e)}catch(t){Em(e,e.return,t)}try{eh(5,e,e.return)}catch(t){Em(e,e.return,t)}}break;case 1:fh(t,e),mh(e),512&r&&null!==n&&Qf(n,n.return);break;case 5:if(fh(t,e),mh(e),512&r&&null!==n&&Qf(n,n.return),32&e.flags){var o=e.stateNode;try{ca(o,"")}catch(t){Em(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&&Ki(o,i),va(l,a);var u=va(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?ha(o,d):"dangerouslySetInnerHTML"===c?ua(o,d):"children"===c?ca(o,d):vi(o,c,d,u)}switch(l){case"input":Xi(o,i);break;case"textarea":ra(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?ea(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?ea(o,!!i.multiple,i.defaultValue,!0):ea(o,!!i.multiple,i.multiple?[]:"",!1))}o[cc]=i}catch(t){Em(e,e.return,t)}}break;case 6:if(fh(t,e),mh(e),4&r){if(null===e.stateNode)throw Error(ri(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Em(e,e.return,t)}}break;case 3:if(fh(t,e),mh(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(t){Em(e,e.return,t)}break;case 4:default:fh(t,e),mh(e);break;case 13:fh(t,e),mh(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(zh=Ka())),4&r&&ph(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Yf=(u=Yf)||c,fh(t,e),Yf=u):fh(t,e),mh(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Xf=e,c=e.child;null!==c;){for(d=Xf=c;null!==Xf;){switch(f=(p=Xf).child,p.tag){case 0:case 11:case 14:case 15:eh(4,p,p.return);break;case 1:Qf(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Em(r,n,e)}}break;case 5:Qf(p,p.return);break;case 22:if(null!==p.memoizedState){yh(d);continue}}null!==f?(f.return=p,Xf=f):yh(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=fa("display",a))}catch(t){Em(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Em(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:fh(t,e),mh(e),4&r&&ph(e);case 21:}}function mh(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(oh(n)){var r=n;break e}n=n.return}throw Error(ri(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ca(o,""),r.flags&=-33),lh(e,ih(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ah(e,ih(e),i);break;default:throw Error(ri(161))}}catch(t){Em(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gh(e,t,n){Xf=e,vh(e)}function vh(e,t,n){for(var r=!!(1&e.mode);null!==Xf;){var o=Xf,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Uf;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yf;l=Uf;var u=Yf;if(Uf=a,(Yf=s)&&!u)for(Xf=o;null!==Xf;)s=(a=Xf).child,22===a.tag&&null!==a.memoizedState?xh(o):null!==s?(s.return=a,Xf=s):xh(o);for(;null!==i;)Xf=i,vh(i),i=i.sibling;Xf=o,Uf=l,Yf=u}bh(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xf=i):bh(e)}}function bh(e){for(;null!==Xf;){var t=Xf;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yf||th(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yf)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:fd(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Td(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}Td(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&&jl(d)}}}break;default:throw Error(ri(163))}Yf||512&t.flags&&nh(t)}catch(e){Em(t,t.return,e)}}if(t===e){Xf=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xf=n;break}Xf=t.return}}function yh(e){for(;null!==Xf;){var t=Xf;if(t===e){Xf=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xf=n;break}Xf=t.return}}function xh(e){for(;null!==Xf;){var t=Xf;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{th(4,t)}catch(e){Em(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Em(t,o,e)}}var i=t.return;try{nh(t)}catch(e){Em(t,i,e)}break;case 5:var a=t.return;try{nh(t)}catch(e){Em(t,a,e)}}}catch(e){Em(t,t.return,e)}if(t===e){Xf=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Xf=l;break}Xf=t.return}}var Sh,Eh=Math.ceil,wh=bi.ReactCurrentDispatcher,Ch=bi.ReactCurrentOwner,Rh=bi.ReactCurrentBatchConfig,kh=0,Lh=null,Ah=null,_h=0,Ph=0,Ih=Sc(0),Mh=0,Dh=null,Oh=0,Th=0,Nh=0,qh=null,Fh=null,zh=0,jh=1/0,$h=null,Bh=!1,Hh=null,Gh=null,Wh=!1,Vh=null,Uh=0,Yh=0,Kh=null,Xh=-1,Qh=0;function Jh(){return 6&kh?Ka():-1!==Xh?Xh:Xh=Ka()}function Zh(e){return 1&e.mode?2&kh&&0!==_h?_h&-_h:null!==pd.transition?(0===Qh&&(Qh=fl()),Qh):0!==(e=vl)?e:e=void 0===(e=window.event)?16:Yl(e.type):1}function em(e,t,n,r){if(50<Yh)throw Yh=0,Kh=null,Error(ri(185));ml(e,n,r),2&kh&&e===Lh||(e===Lh&&(!(2&kh)&&(Th|=n),4===Mh&&im(e,_h)),tm(e,r),1===n&&0===kh&&!(1&t.mode)&&(jh=Ka()+500,Nc&&zc()))}function tm(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-ol(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=dl(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=cl(e,e===Lh?_h:0);if(0===r)null!==n&&Va(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Va(n),1===t)0===e.tag?function(e){Nc=!0,Fc(e)}(am.bind(null,e)):Fc(am.bind(null,e)),rc((function(){!(6&kh)&&zc()})),n=null;else{switch(bl(r)){case 1:n=Qa;break;case 4:n=Ja;break;case 16:default:n=Za;break;case 536870912:n=tl}n=Lm(n,nm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nm(e,t){if(Xh=-1,Qh=0,6&kh)throw Error(ri(327));var n=e.callbackNode;if(xm()&&e.callbackNode!==n)return null;var r=cl(e,e===Lh?_h:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=hm(e,r);else{t=r;var o=kh;kh|=2;var i=pm();for(Lh===e&&_h===t||($h=null,jh=Ka()+500,cm(e,t));;)try{gm();break}catch(t){dm(e,t)}bd(),wh.current=i,kh=o,null!==Ah?t=0:(Lh=null,_h=0,t=Mh)}if(0!==t){if(2===t&&(0!==(o=pl(e))&&(r=o,t=rm(e,o))),1===t)throw n=Dh,cm(e,0),im(e,r),tm(e,Ka()),n;if(6===t)im(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(!ou(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=hm(e,r),2===t&&(i=pl(e),0!==i&&(r=i,t=rm(e,i))),1!==t)))throw n=Dh,cm(e,0),im(e,r),tm(e,Ka()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ri(345));case 2:case 5:ym(e,Fh,$h);break;case 3:if(im(e,r),(130023424&r)===r&&10<(t=zh+500-Ka())){if(0!==cl(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Jh(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ec(ym.bind(null,e,Fh,$h),t);break}ym(e,Fh,$h);break;case 4:if(im(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-ol(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Ka()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r)){e.timeoutHandle=ec(ym.bind(null,e,Fh,$h),r);break}ym(e,Fh,$h);break;default:throw Error(ri(329))}}}return tm(e,Ka()),e.callbackNode===n?nm.bind(null,e):null}function rm(e,t){var n=qh;return e.current.memoizedState.isDehydrated&&(cm(e,t).flags|=256),2!==(e=hm(e,t))&&(t=Fh,Fh=n,null!==t&&om(t)),e}function om(e){null===Fh?Fh=e:Fh.push.apply(Fh,e)}function im(e,t){for(t&=~Nh,t&=~Th,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ol(t),r=1<<n;e[n]=-1,t&=~r}}function am(e){if(6&kh)throw Error(ri(327));xm();var t=cl(e,0);if(!(1&t))return tm(e,Ka()),null;var n=hm(e,t);if(0!==e.tag&&2===n){var r=pl(e);0!==r&&(t=r,n=rm(e,r))}if(1===n)throw n=Dh,cm(e,0),im(e,t),tm(e,Ka()),n;if(6===n)throw Error(ri(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ym(e,Fh,$h),tm(e,Ka()),null}function lm(e,t){var n=kh;kh|=1;try{return e(t)}finally{0===(kh=n)&&(jh=Ka()+500,Nc&&zc())}}function sm(e){null!==Vh&&0===Vh.tag&&!(6&kh)&&xm();var t=kh;kh|=1;var n=Rh.transition,r=vl;try{if(Rh.transition=null,vl=1,e)return e()}finally{vl=r,Rh.transition=n,!(6&(kh=t))&&zc()}}function um(){Ph=Ih.current,Ec(Ih)}function cm(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,tc(n)),null!==Ah)for(n=Ah.return;null!==n;){var r=n;switch(Jc(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Pc();break;case 3:tp(),Ec(kc),Ec(Rc),lp();break;case 5:rp(r);break;case 4:tp();break;case 13:case 19:Ec(op);break;case 10:yd(r.type._context);break;case 22:case 23:um()}n=n.return}if(Lh=e,Ah=e=Im(e.current,null),_h=Ph=t,Mh=0,Dh=null,Nh=Th=Oh=0,Fh=qh=null,null!==wd){for(t=0;t<wd.length;t++)if(null!==(r=(n=wd[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}wd=null}return e}function dm(e,t){for(;;){var n=Ah;try{if(bd(),sp.current=nf,hp){for(var r=dp.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}hp=!1}if(cp=0,fp=pp=dp=null,mp=!1,gp=0,Ch.current=null,null===n||null===n.return){Mh=1,Dh=t,Ah=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=_h,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=hf(a);if(null!==f){f.flags&=-257,mf(f,a,l,0,t),1&f.mode&&ff(i,u,t),s=u;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(!(1&t)){ff(i,u,t),fm();break e}s=Error(ri(426))}else if(td&&1&l.mode){var g=hf(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),mf(g,a,l,0,t),dd(lf(s,l));break e}}i=s=lf(s,l),4!==Mh&&(Mh=2),null===qh?qh=[i]:qh.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Dd(i,df(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!==Gh&&Gh.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Dd(i,pf(i,l,t));break e}}i=i.return}while(null!==i)}bm(n)}catch(e){t=e,Ah===n&&null!==n&&(Ah=n=n.return);continue}break}}function pm(){var e=wh.current;return wh.current=nf,null===e?nf:e}function fm(){0!==Mh&&3!==Mh&&2!==Mh||(Mh=4),null===Lh||!(268435455&Oh)&&!(268435455&Th)||im(Lh,_h)}function hm(e,t){var n=kh;kh|=2;var r=pm();for(Lh===e&&_h===t||($h=null,cm(e,t));;)try{mm();break}catch(t){dm(e,t)}if(bd(),kh=n,wh.current=r,null!==Ah)throw Error(ri(261));return Lh=null,_h=0,Mh}function mm(){for(;null!==Ah;)vm(Ah)}function gm(){for(;null!==Ah&&!Ua();)vm(Ah)}function vm(e){var t=Sh(e.alternate,e,Ph);e.memoizedProps=e.pendingProps,null===t?bm(e):Ah=t,Ch.current=null}function bm(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vf(n,t)))return n.flags&=32767,void(Ah=n);if(null===e)return Mh=6,void(Ah=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Wf(n,t,Ph)))return void(Ah=n);if(null!==(t=t.sibling))return void(Ah=t);Ah=t=e}while(null!==t);0===Mh&&(Mh=5)}function ym(e,t,n){var r=vl,o=Rh.transition;try{Rh.transition=null,vl=1,function(e,t,n,r){do{xm()}while(null!==Vh);if(6&kh)throw Error(ri(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(ri(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-ol(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Lh&&(Ah=Lh=null,_h=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Wh||(Wh=!0,Lm(Za,(function(){return xm(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Rh.transition,Rh.transition=null;var a=vl;vl=1;var l=kh;kh|=4,Ch.current=null,function(e,t){if(Qu=Bl,cu(e=uu())){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(Ju={focusedElem:e,selectionRange:n},Bl=!1,Xf=t;null!==Xf;)if(e=(t=Xf).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xf=e;else for(;null!==Xf;){t=Xf;try{var h=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!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:fd(t.type,m),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(ri(163))}}catch(e){Em(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xf=e;break}Xf=t.return}h=Zf,Zf=!1}(e,n),hh(n,e),du(Ju),Bl=!!Qu,Ju=Qu=null,e.current=n,gh(n),Ya(),kh=l,vl=a,Rh.transition=i}else e.current=n;if(Wh&&(Wh=!1,Vh=e,Uh=o),i=e.pendingLanes,0===i&&(Gh=null),function(e){if(rl&&"function"==typeof rl.onCommitFiberRoot)try{rl.onCommitFiberRoot(nl,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),tm(e,Ka()),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(Bh)throw Bh=!1,e=Hh,Hh=null,e;!!(1&Uh)&&0!==e.tag&&xm(),i=e.pendingLanes,1&i?e===Kh?Yh++:(Yh=0,Kh=e):Yh=0,zc()}(e,t,n,r)}finally{Rh.transition=o,vl=r}return null}function xm(){if(null!==Vh){var e=bl(Uh),t=Rh.transition,n=vl;try{if(Rh.transition=null,vl=16>e?16:e,null===Vh)var r=!1;else{if(e=Vh,Vh=null,Uh=0,6&kh)throw Error(ri(331));var o=kh;for(kh|=4,Xf=e.current;null!==Xf;){var i=Xf,a=i.child;if(16&Xf.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Xf=u;null!==Xf;){var c=Xf;switch(c.tag){case 0:case 11:case 15:eh(8,c,i)}var d=c.child;if(null!==d)d.return=c,Xf=d;else for(;null!==Xf;){var p=(c=Xf).sibling,f=c.return;if(rh(c),c===u){Xf=null;break}if(null!==p){p.return=f,Xf=p;break}Xf=f}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Xf=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Xf=a;else e:for(;null!==Xf;){if(2048&(i=Xf).flags)switch(i.tag){case 0:case 11:case 15:eh(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Xf=v;break e}Xf=i.return}}var b=e.current;for(Xf=b;null!==Xf;){var y=(a=Xf).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Xf=y;else e:for(a=b;null!==Xf;){if(2048&(l=Xf).flags)try{switch(l.tag){case 0:case 11:case 15:th(9,l)}}catch(e){Em(l,l.return,e)}if(l===a){Xf=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xf=x;break e}Xf=l.return}}if(kh=o,zc(),rl&&"function"==typeof rl.onPostCommitFiberRoot)try{rl.onPostCommitFiberRoot(nl,e)}catch(e){}r=!0}return r}finally{vl=n,Rh.transition=t}}return!1}function Sm(e,t,n){e=Id(e,t=df(0,t=lf(n,t),1),1),t=Jh(),null!==e&&(ml(e,1,t),tm(e,t))}function Em(e,t,n){if(3===e.tag)Sm(e,e,n);else for(;null!==t;){if(3===t.tag){Sm(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gh||!Gh.has(r))){t=Id(t,e=pf(t,e=lf(n,e),1),1),e=Jh(),null!==t&&(ml(t,1,e),tm(t,e));break}}t=t.return}}function wm(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Jh(),e.pingedLanes|=e.suspendedLanes&n,Lh===e&&(_h&n)===n&&(4===Mh||3===Mh&&(130023424&_h)===_h&&500>Ka()-zh?cm(e,0):Nh|=n),tm(e,t)}function Cm(e,t){0===t&&(1&e.mode?(t=sl,!(130023424&(sl<<=1))&&(sl=4194304)):t=1);var n=Jh();null!==(e=kd(e,t))&&(ml(e,t,n),tm(e,n))}function Rm(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cm(e,n)}function km(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(ri(314))}null!==r&&r.delete(t),Cm(e,n)}function Lm(e,t){return Wa(e,t)}function Am(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 _m(e,t,n,r){return new Am(e,t,n,r)}function Pm(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Im(e,t){var n=e.alternate;return null===n?((n=_m(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 Mm(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Pm(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Si:return Dm(n.children,o,i,t);case Ei:a=8,o|=8;break;case wi:return(e=_m(12,n,t,2|o)).elementType=wi,e.lanes=i,e;case Li:return(e=_m(13,n,t,o)).elementType=Li,e.lanes=i,e;case Ai:return(e=_m(19,n,t,o)).elementType=Ai,e.lanes=i,e;case Ii:return Om(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ci:a=10;break e;case Ri:a=9;break e;case ki:a=11;break e;case _i:a=14;break e;case Pi:a=16,r=null;break e}throw Error(ri(130,null==e?e:typeof e,""))}return(t=_m(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Dm(e,t,n,r){return(e=_m(7,e,r,t)).lanes=n,e}function Om(e,t,n,r){return(e=_m(22,e,r,t)).elementType=Ii,e.lanes=n,e.stateNode={isHidden:!1},e}function Tm(e,t,n){return(e=_m(6,e,null,t)).lanes=n,e}function Nm(e,t,n){return(t=_m(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qm(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=hl(0),this.expirationTimes=hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fm(e,t,n,r,o,i,a,l,s){return e=new qm(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_m(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(i),e}function zm(e){if(!e)return Cc;e:{if(ja(e=e._reactInternals)!==e||1!==e.tag)throw Error(ri(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_c(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ri(171))}if(1===e.tag){var n=e.type;if(_c(n))return Mc(e,n,t)}return t}function jm(e,t,n,r,o,i,a,l,s){return(e=Fm(n,r,!0,e,0,i,0,l,s)).context=zm(null),n=e.current,(i=Pd(r=Jh(),o=Zh(n))).callback=null!=t?t:null,Id(n,i,o),e.current.lanes=o,ml(e,o,r),tm(e,r),e}function $m(e,t,n,r){var o=t.current,i=Jh(),a=Zh(o);return n=zm(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pd(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Id(o,t,a))&&(em(e,o,a,i),Md(e,o,a)),a}function Bm(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hm(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gm(e,t){Hm(e,t),(e=e.alternate)&&Hm(e,t)}Sh=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||kc.current)vf=!0;else{if(!(e.lanes&n||128&t.flags))return vf=!1,function(e,t,n){switch(t.tag){case 3:Lf(t),cd();break;case 5:np(t);break;case 1:_c(t.type)&&Dc(t);break;case 4:ep(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;wc(hd,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(wc(op,1&op.current),t.flags|=128,null):n&t.child.childLanes?Tf(e,t,n):(wc(op,1&op.current),null!==(e=Bf(e,t,n))?e.sibling:null);wc(op,1&op.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return jf(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),wc(op,op.current),r)break;return null;case 22:case 23:return t.lanes=0,Ef(e,t,n)}return Bf(e,t,n)}(e,t,n);vf=!!(131072&e.flags)}else vf=!1,td&&1048576&t.flags&&Xc(t,Hc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$f(e,t),e=t.pendingProps;var o=Ac(t,Rc.current);Sd(t,n),o=xp(null,t,r,e,o,n);var i=Sp();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,_c(r)?(i=!0,Dc(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ad(t),o.updater=Fd,t.stateNode=o,o._reactInternals=t,Bd(t,r,e,n),t=kf(null,t,r,!0,i,n)):(t.tag=0,td&&i&&Qc(t),bf(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($f(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pm(e)?1:0;if(null!=e){if((e=e.$$typeof)===ki)return 11;if(e===_i)return 14}return 2}(r),e=fd(r,e),o){case 0:t=Cf(null,t,r,e,n);break e;case 1:t=Rf(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=xf(null,t,r,fd(r.type,e),n);break e}throw Error(ri(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cf(e,t,r,o=t.elementType===r?o:fd(r,o),n);case 1:return r=t.type,o=t.pendingProps,Rf(e,t,r,o=t.elementType===r?o:fd(r,o),n);case 3:e:{if(Lf(t),null===e)throw Error(ri(387));r=t.pendingProps,o=(i=t.memoizedState).element,_d(e,t),Od(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=Af(e,t,r,n,o=lf(Error(ri(423)),t));break e}if(r!==o){t=Af(e,t,r,n,o=lf(Error(ri(424)),t));break e}for(ed=ac(t.stateNode.containerInfo.firstChild),Zc=t,td=!0,nd=null,n=Yd(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(cd(),r===o){t=Bf(e,t,n);break e}bf(e,t,r,n)}t=t.child}return t;case 5:return np(t),null===e&&ad(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Zu(r,o)?a=null:null!==i&&Zu(r,i)&&(t.flags|=32),wf(e,t),bf(e,t,a,n),t.child;case 6:return null===e&&ad(t),null;case 13:return Tf(e,t,n);case 4:return ep(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ud(t,null,r,n):bf(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,yf(e,t,r,o=t.elementType===r?o:fd(r,o),n);case 7:return bf(e,t,t.pendingProps,n),t.child;case 8:case 12:return bf(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,wc(hd,r._currentValue),r._currentValue=a,null!==i)if(ou(i.value,a)){if(i.children===o.children&&!kc.current){t=Bf(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=Pd(-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),xd(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(ri(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xd(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}bf(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sd(t,n),r=r(o=Ed(o)),t.flags|=1,bf(e,t,r,n),t.child;case 14:return o=fd(r=t.type,t.pendingProps),xf(e,t,r,o=fd(r.type,o),n);case 15:return Sf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fd(r,o),$f(e,t),t.tag=1,_c(r)?(e=!0,Dc(t)):e=!1,Sd(t,n),jd(t,r,o),Bd(t,r,o,n),kf(null,t,r,!0,e,n);case 19:return jf(e,t,n);case 22:return Ef(e,t,n)}throw Error(ri(156,t.tag))};var Wm="function"==typeof reportError?reportError:function(e){console.error(e)};function Vm(e){this._internalRoot=e}function Um(e){this._internalRoot=e}function Ym(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Km(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xm(){}function Qm(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=Bm(a);l.call(e)}}$m(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=Bm(a);i.call(e)}}var a=jm(t,r,e,0,null,!1,0,"",Xm);return e._reactRootContainer=a,e[dc]=a.current,zu(8===e.nodeType?e.parentNode:e),sm(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Bm(s);l.call(e)}}var s=Fm(e,0,!1,null,0,!1,0,"",Xm);return e._reactRootContainer=s,e[dc]=s.current,zu(8===e.nodeType?e.parentNode:e),sm((function(){$m(t,s,n,r)})),s}(n,t,e,o,r);return Bm(a)}Um.prototype.render=Vm.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ri(409));$m(e,t,null,null)},Um.prototype.unmount=Vm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;sm((function(){$m(null,e,null,null)})),t[dc]=null}},Um.prototype.unstable_scheduleHydration=function(e){if(e){var t=El();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Il.length&&0!==t&&t<Il[n].priority;n++);Il.splice(n,0,e),0===n&&Tl(e)}},yl=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ul(t.pendingLanes);0!==n&&(gl(t,1|n),tm(t,Ka()),!(6&kh)&&(jh=Ka()+500,zc()))}break;case 13:sm((function(){var t=kd(e,1);if(null!==t){var n=Jh();em(t,e,1,n)}})),Gm(e,1)}},xl=function(e){if(13===e.tag){var t=kd(e,134217728);if(null!==t)em(t,e,134217728,Jh());Gm(e,134217728)}},Sl=function(e){if(13===e.tag){var t=Zh(e),n=kd(e,t);if(null!==n)em(n,e,t,Jh());Gm(e,t)}},El=function(){return vl},wl=function(e,t){var n=vl;try{return vl=e,t()}finally{vl=n}},xa=function(e,t,n){switch(t){case"input":if(Xi(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=bc(r);if(!o)throw Error(ri(90));Wi(r),Xi(r,o)}}}break;case"textarea":ra(e,n);break;case"select":null!=(t=n.value)&&ea(e,!!n.multiple,t,!1)}},ka=lm,La=sm;var Jm={usingClientEntryPoint:!1,Events:[gc,vc,bc,Ca,Ra,lm]},Zm={findFiberByHostInstance:mc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},eg={bundleType:Zm.bundleType,version:Zm.version,rendererPackageName:Zm.rendererPackageName,rendererConfig:Zm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ha(e))?null:e.stateNode},findFiberByHostInstance:Zm.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tg.isDisabled&&tg.supportsFiber)try{nl=tg.inject(eg),rl=tg}catch(sa){}}Qo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jm,Qo.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ym(t))throw Error(ri(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:xi,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Qo.createRoot=function(e,t){if(!Ym(e))throw Error(ri(299));var n=!1,r="",o=Wm;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fm(e,1,!1,null,0,n,0,r,o),e[dc]=t.current,zu(8===e.nodeType?e.parentNode:e),new Vm(t)},Qo.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(ri(188));throw e=Object.keys(e).join(","),Error(ri(268,e))}return e=null===(e=Ha(t))?null:e.stateNode},Qo.flushSync=function(e){return sm(e)},Qo.hydrate=function(e,t,n){if(!Km(t))throw Error(ri(200));return Qm(null,e,t,!0,n)},Qo.hydrateRoot=function(e,t,n){if(!Ym(e))throw Error(ri(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Wm;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=jm(t,null,e,1,null!=n?n:null,o,0,i,a),e[dc]=t.current,zu(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 Um(t)},Qo.render=function(e,t,n){if(!Km(t))throw Error(ri(200));return Qm(null,e,t,!1,n)},Qo.unmountComponentAtNode=function(e){if(!Km(e))throw Error(ri(40));return!!e._reactRootContainer&&(sm((function(){Qm(null,null,e,!1,(function(){e._reactRootContainer=null,e[dc]=null}))})),!0)},Qo.unstable_batchedUpdates=lm,Qo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Km(n))throw Error(ri(200));if(null==e||void 0===e._reactInternals)throw Error(ri(38));return Qm(e,t,n,!1,r)},Qo.version="18.2.0-next-9e3b772b8-20220608",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)}}(),Xo.exports=Qo;var ng,rg=Xo.exports,og=n(rg),ig=rg;ng=ig.createRoot,ig.hydrateRoot;function ag(e,t){const[n,r]=Ho.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var lg={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 sg=({translator:e})=>(Ho.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(lg).forEach((t=>{e.add(lg[t])}))}}(e)),[e]),e);var ug={exports:{}},cg={},dg=Ho,pg=Symbol.for("react.element"),fg=Symbol.for("react.fragment"),hg=Object.prototype.hasOwnProperty,mg=dg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gg={key:!0,ref:!0,__self:!0,__source:!0};function vg(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)hg.call(t,r)&&!gg.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:pg,type:e,key:i,ref:a,props:o,_owner:mg.current}}cg.Fragment=fg,cg.jsx=vg,cg.jsxs=vg,ug.exports=cg;var bg=ug.exports;function yg(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 xg=Object.freeze({__proto__:null,default:yg}),Sg="$$material";function Eg(){return Eg=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},Eg.apply(this,arguments)}function wg(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 Cg=function(){return Cg=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},Cg.apply(this,arguments)};function Rg(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 kg="-ms-",Lg="-moz-",Ag="-webkit-",_g="comm",Pg="rule",Ig="decl",Mg="@import",Dg="@keyframes",Og="@layer",Tg=Math.abs,Ng=String.fromCharCode,qg=Object.assign;function Fg(e){return e.trim()}function zg(e,t){return(e=t.exec(e))?e[0]:e}function jg(e,t,n){return e.replace(t,n)}function $g(e,t,n){return e.indexOf(t,n)}function Bg(e,t){return 0|e.charCodeAt(t)}function Hg(e,t,n){return e.slice(t,n)}function Gg(e){return e.length}function Wg(e){return e.length}function Vg(e,t){return t.push(e),e}function Ug(e,t){return e.filter((function(e){return!zg(e,t)}))}var Yg=1,Kg=1,Xg=0,Qg=0,Jg=0,Zg="";function ev(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Yg,column:Kg,length:a,return:"",siblings:l}}function tv(e,t){return qg(ev("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function nv(e){for(;e.root;)e=tv(e.root,{children:[e]});Vg(e,e.siblings)}function rv(){return Jg=Qg>0?Bg(Zg,--Qg):0,Kg--,10===Jg&&(Kg=1,Yg--),Jg}function ov(){return Jg=Qg<Xg?Bg(Zg,Qg++):0,Kg++,10===Jg&&(Kg=1,Yg++),Jg}function iv(){return Bg(Zg,Qg)}function av(){return Qg}function lv(e,t){return Hg(Zg,e,t)}function sv(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 uv(e){return Fg(lv(Qg-1,pv(91===e?e+2:40===e?e+1:e)))}function cv(e){for(;(Jg=iv())&&Jg<33;)ov();return sv(e)>2||sv(Jg)>3?"":" "}function dv(e,t){for(;--t&&ov()&&!(Jg<48||Jg>102||Jg>57&&Jg<65||Jg>70&&Jg<97););return lv(e,av()+(t<6&&32==iv()&&32==ov()))}function pv(e){for(;ov();)switch(Jg){case e:return Qg;case 34:case 39:34!==e&&39!==e&&pv(Jg);break;case 40:41===e&&pv(e);break;case 92:ov()}return Qg}function fv(e,t){for(;ov()&&e+Jg!==57&&(e+Jg!==84||47!==iv()););return"/*"+lv(t,Qg-1)+"*"+Ng(47===e?e:ov())}function hv(e){for(;!sv(iv());)ov();return lv(e,Qg)}function mv(e){return function(e){return Zg="",e}(gv("",null,null,null,[""],e=function(e){return Yg=Kg=1,Xg=Gg(Zg=e),Qg=0,[]}(e),0,[0],e))}function gv(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,w=y;g;)switch(h=b,b=ov()){case 40:if(108!=h&&58==Bg(w,d-1)){-1!=$g(w+=jg(uv(b),"&","&\f"),"&\f",Tg(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:w+=uv(b);break;case 9:case 10:case 13:case 32:w+=cv(h);break;case 92:w+=dv(av()-1,7);continue;case 47:switch(iv()){case 42:case 47:Vg(bv(fv(ov(),av()),t,n,s),s);break;default:w+="/"}break;case 123*m:l[u++]=Gg(w)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(w=jg(w,/\f/g,"")),f>0&&Gg(w)-d&&Vg(f>32?yv(w+";",r,n,d-1,s):yv(jg(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Vg(E=vv(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)gv(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===Bg(w,3)?100:p){case 100:case 108:case 109:case 115:gv(e,E,E,r&&Vg(vv(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:gv(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=v=1,y=w="",d=a;break;case 58:d=1+Gg(w),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==rv())continue;switch(w+=Ng(b),b*m){case 38:v=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Gg(w)-1)*v,v=1;break;case 64:45===iv()&&(w+=uv(ov())),p=iv(),c=d=Gg(y=w+=hv(av())),b++;break;case 45:45===h&&2==Gg(w)&&(m=0)}}return i}function vv(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Wg(f),m=0,g=0,v=0;m<r;++m)for(var b=0,y=Hg(e,p+1,p=Tg(g=a[m])),x=e;b<h;++b)(x=Fg(g>0?f[b]+" "+y:jg(y,/&\f/g,f[b])))&&(s[v++]=x);return ev(e,t,n,0===o?Pg:l,s,u,c,d)}function bv(e,t,n,r){return ev(e,t,n,_g,Ng(Jg),Hg(e,2,-2),0,r)}function yv(e,t,n,r,o){return ev(e,t,n,Ig,Hg(e,0,r),Hg(e,r+1,-1),r,o)}function xv(e,t,n){switch(function(e,t){return 45^Bg(e,0)?(((t<<2^Bg(e,0))<<2^Bg(e,1))<<2^Bg(e,2))<<2^Bg(e,3):0}(e,t)){case 5103:return Ag+"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 Ag+e+e;case 4789:return Lg+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ag+e+Lg+e+kg+e+e;case 5936:switch(Bg(e,t+11)){case 114:return Ag+e+kg+jg(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ag+e+kg+jg(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ag+e+kg+jg(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ag+e+kg+e+e;case 6165:return Ag+e+kg+"flex-"+e+e;case 5187:return Ag+e+jg(e,/(\w+).+(:[^]+)/,Ag+"box-$1$2"+kg+"flex-$1$2")+e;case 5443:return Ag+e+kg+"flex-item-"+jg(e,/flex-|-self/g,"")+(zg(e,/flex-|baseline/)?"":kg+"grid-row-"+jg(e,/flex-|-self/g,""))+e;case 4675:return Ag+e+kg+"flex-line-pack"+jg(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ag+e+kg+jg(e,"shrink","negative")+e;case 5292:return Ag+e+kg+jg(e,"basis","preferred-size")+e;case 6060:return Ag+"box-"+jg(e,"-grow","")+Ag+e+kg+jg(e,"grow","positive")+e;case 4554:return Ag+jg(e,/([^-])(transform)/g,"$1"+Ag+"$2")+e;case 6187:return jg(jg(jg(e,/(zoom-|grab)/,Ag+"$1"),/(image-set)/,Ag+"$1"),e,"")+e;case 5495:case 3959:return jg(e,/(image-set\([^]*)/,Ag+"$1$`$1");case 4968:return jg(jg(e,/(.+:)(flex-)?(.*)/,Ag+"box-pack:$3"+kg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ag+e+e;case 4200:if(!zg(e,/flex-|baseline/))return kg+"grid-column-align"+Hg(e,t)+e;break;case 2592:case 3360:return kg+jg(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,zg(e.props,/grid-\w+-end/)}))?~$g(e+(n=n[t].value),"span",0)?e:kg+jg(e,"-start","")+e+kg+"grid-row-span:"+(~$g(n,"span",0)?zg(n,/\d+/):+zg(n,/\d+/)-+zg(e,/\d+/))+";":kg+jg(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return zg(e.props,/grid-\w+-start/)}))?e:kg+jg(jg(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return jg(e,/(.+)-inline(.+)/,Ag+"$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(Gg(e)-1-t>6)switch(Bg(e,t+1)){case 109:if(45!==Bg(e,t+4))break;case 102:return jg(e,/(.+:)(.+)-([^]+)/,"$1"+Ag+"$2-$3$1"+Lg+(108==Bg(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$g(e,"stretch",0)?xv(jg(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return jg(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return kg+n+":"+r+l+(o?kg+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Bg(e,t+6))return jg(e,":",":"+Ag)+e;break;case 6444:switch(Bg(e,45===Bg(e,14)?18:11)){case 120:return jg(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ag+(45===Bg(e,14)?"inline-":"")+"box$3$1"+Ag+"$2$3$1"+kg+"$2box$3")+e;case 100:return jg(e,":",":"+kg)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return jg(e,"scroll-","scroll-snap-")+e}return e}function Sv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ev(e,t,n,r){switch(e.type){case Og:if(e.children.length)break;case Mg:case Ig:return e.return=e.return||e.value;case _g:return"";case Dg:return e.return=e.value+"{"+Sv(e.children,r)+"}";case Pg:if(!Gg(e.value=e.props.join(",")))return""}return Gg(n=Sv(e.children,r))?e.return=e.value+"{"+n+"}":""}function wv(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ig:return void(e.return=xv(e.value,e.length,n));case Dg:return Sv([tv(e,{value:jg(e.value,"@","@"+Ag)})],r);case Pg:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(zg(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":nv(tv(e,{props:[jg(t,/:(read-\w+)/,":"+Lg+"$1")]})),nv(tv(e,{props:[t]})),qg(e,{props:Ug(n,r)});break;case"::placeholder":nv(tv(e,{props:[jg(t,/:(plac\w+)/,":"+Ag+"input-$1")]})),nv(tv(e,{props:[jg(t,/:(plac\w+)/,":"+Lg+"$1")]})),nv(tv(e,{props:[jg(t,/:(plac\w+)/,kg+"input-$1")]})),nv(tv(e,{props:[t]})),qg(e,{props:Ug(n,r)})}return""}))}}var Cv={animationIterationCount: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},Rv="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",kv="active",Lv="data-styled-version",Av="6.1.8",_v="/*!sc*/\n",Pv="undefined"!=typeof window&&"HTMLElement"in window,Iv=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)),Mv={},Dv=Object.freeze([]),Ov=Object.freeze({});function Tv(e,t,n){return void 0===n&&(n=Ov),e.theme!==n.theme&&e.theme||t||n.theme}var Nv=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"]),qv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fv=/(^-|-$)/g;function zv(e){return e.replace(qv,"-").replace(Fv,"")}var jv=/(a)(d)/gi,$v=52,Bv=function(e){return String.fromCharCode(e+(e>25?39:97))};function Hv(e){var t,n="";for(t=Math.abs(e);t>$v;t=t/$v|0)n=Bv(t%$v)+n;return(Bv(t%$v)+n).replace(jv,"$1-$2")}var Gv,Wv=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Vv=function(e){return Wv(5381,e)};function Uv(e){return Hv(Vv(e)>>>0)}function Yv(e){return"string"==typeof e&&!0}var Kv="function"==typeof Symbol&&Symbol.for,Xv=Kv?Symbol.for("react.memo"):60115,Qv=Kv?Symbol.for("react.forward_ref"):60112,Jv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tb=((Gv={})[Qv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gv[Xv]=eb,Gv);function nb(e){return("type"in(t=e)&&t.type.$$typeof)===Xv?eb:"$$typeof"in e?tb[e.$$typeof]:Jv;var t}var rb=Object.defineProperty,ob=Object.getOwnPropertyNames,ib=Object.getOwnPropertySymbols,ab=Object.getOwnPropertyDescriptor,lb=Object.getPrototypeOf,sb=Object.prototype;function ub(e,t,n){if("string"!=typeof t){if(sb){var r=lb(t);r&&r!==sb&&ub(e,r,n)}var o=ob(t);ib&&(o=o.concat(ib(t)));for(var i=nb(e),a=nb(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Zv||n&&n[s]||a&&s in a||i&&s in i)){var u=ab(t,s);try{rb(e,s,u)}catch(e){}}}}return e}function cb(e){return"function"==typeof e}function db(e){return"object"==typeof e&&"styledComponentId"in e}function pb(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function fb(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 hb(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function mb(e,t,n){if(void 0===n&&(n=!1),!n&&!hb(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=mb(e[r],t[r]);else if(hb(t))for(var r in t)e[r]=mb(e[r],t[r]);return e}function gb(e,t){Object.defineProperty(e,"toString",{value:t})}function vb(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 bb=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 vb(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(_v);return t},e}(),yb=new Map,xb=new Map,Sb=1,Eb=function(e){if(yb.has(e))return yb.get(e);for(;xb.has(Sb);)Sb++;var t=Sb++;return yb.set(e,t),xb.set(t,e),t},wb=function(e,t){Sb=t+1,yb.set(e,t),xb.set(t,e)},Cb="style[".concat(Rv,"][").concat(Lv,'="').concat(Av,'"]'),Rb=new RegExp("^".concat(Rv,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),kb=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)},Lb=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(_v),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Rb);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(wb(c,u),kb(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Ab=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Rv,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Rv,kv),r.setAttribute(Lv,Av);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},_b=function(){function e(e){this.element=Ab(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 vb(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}(),Pb=function(){function e(e){this.element=Ab(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}(),Ib=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}(),Mb=Pv,Db={isServer:!Pv,useCSSOMInjection:!Iv},Ob=function(){function e(e,t,n){void 0===e&&(e=Ov),void 0===t&&(t={});var r=this;this.options=Cg(Cg({},Db),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Pv&&Mb&&(Mb=!1,function(e){for(var t=document.querySelectorAll(Cb),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Rv)!==kv&&(Lb(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),gb(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return xb.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(Rv,".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(_v)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Eb(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Cg(Cg({},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 Ib(n):t?new _b(n):new Pb(n)}(this.options),new bb(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(Eb(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(Eb(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Eb(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Tb=/&/g,Nb=/^\s*\/\/.*$/gm;function qb(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=qb(e.children,t)),e}))}var Fb=new Ob,zb=function(e){var t,n,r,o=void 0===e?Ov:e,i=o.options,a=void 0===i?Ov:i,l=o.plugins,s=void 0===l?Dv: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===Pg&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Tb,n).replace(r,u))})),a.prefix&&c.push(wv),c.push(Ev);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(Nb,""),u=mv(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=qb(u,a.namespace));var d,p=[];return Sv(u,function(e){var t=Wg(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||vb(15),Wv(e,t.name)}),5381).toString():"",d}(),jb=Go.createContext({shouldForwardProp:void 0,styleSheet:Fb,stylis:zb});function $b(){return Ho.useContext(jb)}jb.Consumer;var Bb=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=zb);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,gb(this,(function(){throw vb(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=zb),this.name+e.hash},e}(),Hb=function(e){return e>="A"&&e<="Z"};function Gb(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Hb(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Wb=function(e){return null==e||!1===e||""===e},Vb=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Wb(i)&&(Array.isArray(i)&&i.isCss||cb(i)?r.push("".concat(Gb(o),":"),i,";"):hb(i)?r.push.apply(r,Rg(Rg(["".concat(o," {")],Vb(i),!1),["}"],!1)):r.push("".concat(Gb(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Cv||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ub(e,t,n,r){return Wb(e)?[]:db(e)?[".".concat(e.styledComponentId)]:cb(e)?!cb(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ub(e(t),t,n,r):e instanceof Bb?n?(e.inject(n,r),[e.getName(r)]):[e]:hb(e)?Vb(e):Array.isArray(e)?Array.prototype.concat.apply(Dv,e.map((function(e){return Ub(e,t,n,r)}))):[e.toString()];var o}function Yb(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(cb(n)&&!db(n))return!1}return!0}var Kb=Vv(Av),Xb=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Yb(e),this.componentId=t,this.baseHash=Wv(Kb,t),this.baseStyle=n,Ob.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=pb(r,this.staticRulesId);else{var o=fb(Ub(this.rules,e,t,n)),i=Hv(Wv(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=pb(r,i),this.staticRulesId=i}else{for(var l=Wv(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=fb(Ub(c,e,t,n));l=Wv(l,d+u),s+=d}}if(s){var p=Hv(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=pb(r,p)}}return r},e}(),Qb=Go.createContext(void 0);Qb.Consumer;var Jb={};new Set;function Zb(e,t,n){var r=db(e),o=e,i=!Yv(e),a=t.attrs,l=void 0===a?Dv:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":zv(e);Jb[n]=(Jb[n]||0)+1;var r="".concat(n,"-").concat(Uv(Av+n+Jb[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Yv(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(zv(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new Xb(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=Go.useContext(Qb),c=$b(),d=e.shouldForwardProp||c.shouldForwardProp,p=Tv(t,u,i)||Ov,f=function(e,t,n){for(var r,o=Cg(Cg({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=cb(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?pb(o[l],a[l]):"style"===l?Cg(Cg({},o[l]),a[l]):a[l]}return t.className&&(o.className=pb(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var n=$b();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=pb(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),m[Yv(h)&&!Nv.has(h)?"class":"className"]=b,m.ref=n,Ho.createElement(h,m)}(y,e,t)}b.displayName=d;var y=Go.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?pb(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++)mb(e,o[r],!0);return e}({},o.defaultProps,e):e}}),gb(y,(function(){return".".concat(y.styledComponentId)})),i&&ub(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ey(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 ty=function(e){return Object.assign(e,{isCss:!0})};function ny(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(cb(e)||hb(e))return ty(Ub(ey(Dv,Rg([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ub(r):ty(Ub(ey(r,t)))}function ry(e,t,n){if(void 0===n&&(n=Ov),!t)throw vb(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ny.apply(void 0,Rg([r],o,!1)))};return r.attrs=function(r){return ry(e,t,Cg(Cg({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ry(e,t,Cg(Cg({},n),r))},r}var oy=function(e){return ry(Zb,e)},iy=oy;Nv.forEach((function(e){iy[e]=oy(e)}));var ay=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Yb(e),Ob.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(fb(Ub(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&&Ob.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ly(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ny.apply(void 0,Rg([e],t,!1)),o="sc-global-".concat(Uv(JSON.stringify(r))),i=new ay(r,o),a=function(e){var t=$b(),n=Go.useContext(Qb),r=Go.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Mv,n,o);else{var l=Cg(Cg({},t),{theme:Tv(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Go.memo(a)}function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=fb(ny.apply(void 0,Rg([e],t,!1))),o=Uv(r);return new Bb(o,r)}var uy={exports:{}};function cy(){}function dy(){}dy.resetWarningCache=cy;uy.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:dy,resetWarningCache:cy};return n.PropTypes=n,n}();var py=n(uy.exports);function fy(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}fy.propTypes={children:py.node,injectFirst:py.bool};const hy=ly((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 my=hy;
30
+ */function oi(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 ii=new Set,ai={};function li(e,t){si(e,t),si(e+"Capture",t)}function si(e,t){for(ai[e]=t,e=0;e<t.length;e++)ii.add(t[e])}var ui=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ci=Object.prototype.hasOwnProperty,di=/^[: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]*$/,pi={},fi={};function hi(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 mi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){mi[e]=new hi(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];mi[t]=new hi(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){mi[e]=new hi(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){mi[e]=new hi(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){mi[e]=new hi(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){mi[e]=new hi(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){mi[e]=new hi(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){mi[e]=new hi(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){mi[e]=new hi(e,5,!1,e.toLowerCase(),null,!1,!1)}));var gi=/[\-:]([a-z])/g;function vi(e){return e[1].toUpperCase()}function bi(e,t,n,r){var o=mi.hasOwnProperty(t)?mi[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!!ci.call(fi,e)||!ci.call(pi,e)&&(di.test(e)?fi[e]=!0:(pi[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(gi,vi);mi[t]=new hi(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(gi,vi);mi[t]=new hi(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(gi,vi);mi[t]=new hi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){mi[e]=new hi(e,1,!1,e.toLowerCase(),null,!1,!1)})),mi.xlinkHref=new hi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){mi[e]=new hi(e,1,!1,e.toLowerCase(),null,!0,!0)}));var yi=ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xi=Symbol.for("react.element"),Si=Symbol.for("react.portal"),Ei=Symbol.for("react.fragment"),wi=Symbol.for("react.strict_mode"),Ci=Symbol.for("react.profiler"),Ri=Symbol.for("react.provider"),ki=Symbol.for("react.context"),Li=Symbol.for("react.forward_ref"),_i=Symbol.for("react.suspense"),Ai=Symbol.for("react.suspense_list"),Ii=Symbol.for("react.memo"),Pi=Symbol.for("react.lazy"),Mi=Symbol.for("react.offscreen"),Di=Symbol.iterator;function Oi(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Di&&e[Di]||e["@@iterator"])?e:null}var Ti,Ni=Object.assign;function qi(e){if(void 0===Ti)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ti=t&&t[1]||""}return"\n"+Ti+e}var Fi=!1;function zi(e,t){if(!e||Fi)return"";Fi=!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{Fi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qi(e):""}function ji(e){switch(e.tag){case 5:return qi(e.type);case 16:return qi("Lazy");case 13:return qi("Suspense");case 19:return qi("SuspenseList");case 0:case 2:case 15:return e=zi(e.type,!1);case 11:return e=zi(e.type.render,!1);case 1:return e=zi(e.type,!0);default:return""}}function $i(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 Ei:return"Fragment";case Si:return"Portal";case Ci:return"Profiler";case wi:return"StrictMode";case _i:return"Suspense";case Ai:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ki:return(e.displayName||"Context")+".Consumer";case Ri:return(e._context.displayName||"Context")+".Provider";case Li:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ii:return null!==(t=e.displayName||null)?t:$i(e.type)||"Memo";case Pi:t=e._payload,e=e._init;try{return $i(e(t))}catch(e){}}return null}function Hi(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 $i(t);case 8:return t===wi?"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 Bi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Gi(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Wi(e){e._valueTracker||(e._valueTracker=function(e){var t=Gi(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 Vi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gi(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ui(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 Yi(e,t){var n=t.checked;return Ni({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ki(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Bi(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 Xi(e,t){null!=(t=t.checked)&&bi(e,"checked",t,!1)}function Qi(e,t){Xi(e,t);var n=Bi(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")?Zi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zi(e,t.type,Bi(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ji(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 Zi(e,t,n){"number"===t&&Ui(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ea=Array.isArray;function ta(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=""+Bi(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 na(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(oi(91));return Ni({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ra(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(oi(92));if(ea(n)){if(1<n.length)throw Error(oi(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Bi(n)}}function oa(e,t){var n=Bi(t.value),r=Bi(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 ia(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function aa(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 la(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?aa(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var sa,ua,ca=(ua=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((sa=sa||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=sa.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 ua(e,t)}))}:ua);function da(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 pa={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},fa=["Webkit","ms","Moz","O"];function ha(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pa.hasOwnProperty(e)&&pa[e]?(""+t).trim():t+"px"}function ma(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ha(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pa).forEach((function(e){fa.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pa[t]=pa[e]}))}));var ga=Ni({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 va(e,t){if(t){if(ga[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(oi(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(oi(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(oi(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(oi(62))}}function ba(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 ya=null;function xa(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Sa=null,Ea=null,wa=null;function Ca(e){if(e=vc(e)){if("function"!=typeof Sa)throw Error(oi(280));var t=e.stateNode;t&&(t=yc(t),Sa(e.stateNode,e.type,t))}}function Ra(e){Ea?wa?wa.push(e):wa=[e]:Ea=e}function ka(){if(Ea){var e=Ea,t=wa;if(wa=Ea=null,Ca(e),t)for(e=0;e<t.length;e++)Ca(t[e])}}function La(e,t){return e(t)}function _a(){}var Aa=!1;function Ia(e,t,n){if(Aa)return e(t,n);Aa=!0;try{return La(e,t,n)}finally{Aa=!1,(null!==Ea||null!==wa)&&(_a(),ka())}}function Pa(e,t){var n=e.stateNode;if(null===n)return null;var r=yc(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(oi(231,t,typeof n));return n}var Ma=!1;if(ui)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){Ma=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch(ua){Ma=!1}function Oa(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 Ta=!1,Na=null,qa=!1,Fa=null,za={onError:function(e){Ta=!0,Na=e}};function ja(e,t,n,r,o,i,a,l,s){Ta=!1,Na=null,Oa.apply(za,arguments)}function $a(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 Ha(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 Ba(e){if($a(e)!==e)throw Error(oi(188))}function Ga(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=$a(e)))throw Error(oi(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 Ba(o),e;if(i===r)return Ba(o),t;i=i.sibling}throw Error(oi(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(oi(189))}}if(n.alternate!==r)throw Error(oi(190))}if(3!==n.tag)throw Error(oi(188));return n.stateNode.current===n?e:t}(e),null!==e?Wa(e):null}function Wa(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Wa(e);if(null!==t)return t;e=e.sibling}return null}var Va=ri.unstable_scheduleCallback,Ua=ri.unstable_cancelCallback,Ya=ri.unstable_shouldYield,Ka=ri.unstable_requestPaint,Xa=ri.unstable_now,Qa=ri.unstable_getCurrentPriorityLevel,Ja=ri.unstable_ImmediatePriority,Za=ri.unstable_UserBlockingPriority,el=ri.unstable_NormalPriority,tl=ri.unstable_LowPriority,nl=ri.unstable_IdlePriority,rl=null,ol=null;var il=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(al(e)/ll|0)|0},al=Math.log,ll=Math.LN2;var sl=64,ul=4194304;function cl(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 dl(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=cl(l):0!==(i&=a)&&(r=cl(i))}else 0!==(a=n&~o)?r=cl(a):0!==i&&(r=cl(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-il(t)),r|=e[n],t&=~o;return r}function pl(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 fl(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function hl(){var e=sl;return!(4194240&(sl<<=1))&&(sl=64),e}function ml(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gl(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-il(t)]=n}function vl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-il(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bl=0;function yl(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xl,Sl,El,wl,Cl,Rl=!1,kl=[],Ll=null,_l=null,Al=null,Il=new Map,Pl=new Map,Ml=[],Dl="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 Ol(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":Il.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function Tl(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=vc(t))&&Sl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Nl(e){var t=gc(e.target);if(null!==t){var n=$a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ha(n)))return e.blockedOn=t,void Cl(e.priority,(function(){El(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 ql(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vc(n))&&Sl(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ya=r,n.target.dispatchEvent(r),ya=null,t.shift()}return!0}function Fl(e,t,n){ql(e)&&n.delete(t)}function zl(){Rl=!1,null!==Ll&&ql(Ll)&&(Ll=null),null!==_l&&ql(_l)&&(_l=null),null!==Al&&ql(Al)&&(Al=null),Il.forEach(Fl),Pl.forEach(Fl)}function jl(e,t){e.blockedOn===t&&(e.blockedOn=null,Rl||(Rl=!0,ri.unstable_scheduleCallback(ri.unstable_NormalPriority,zl)))}function $l(e){function t(t){return jl(t,e)}if(0<kl.length){jl(kl[0],e);for(var n=1;n<kl.length;n++){var r=kl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ll&&jl(Ll,e),null!==_l&&jl(_l,e),null!==Al&&jl(Al,e),Il.forEach(t),Pl.forEach(t),n=0;n<Ml.length;n++)(r=Ml[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ml.length&&null===(n=Ml[0]).blockedOn;)Nl(n),null===n.blockedOn&&Ml.shift()}var Hl=yi.ReactCurrentBatchConfig,Bl=!0;function Gl(e,t,n,r){var o=bl,i=Hl.transition;Hl.transition=null;try{bl=1,Vl(e,t,n,r)}finally{bl=o,Hl.transition=i}}function Wl(e,t,n,r){var o=bl,i=Hl.transition;Hl.transition=null;try{bl=4,Vl(e,t,n,r)}finally{bl=o,Hl.transition=i}}function Vl(e,t,n,r){if(Bl){var o=Yl(e,t,n,r);if(null===o)Hu(e,t,r,Ul,n),Ol(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ll=Tl(Ll,e,t,n,r,o),!0;case"dragenter":return _l=Tl(_l,e,t,n,r,o),!0;case"mouseover":return Al=Tl(Al,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Il.set(i,Tl(Il.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pl.set(i,Tl(Pl.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ol(e,r),4&t&&-1<Dl.indexOf(e)){for(;null!==o;){var i=vc(o);if(null!==i&&xl(i),null===(i=Yl(e,t,n,r))&&Hu(e,t,r,Ul,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hu(e,t,r,null,n)}}var Ul=null;function Yl(e,t,n,r){if(Ul=null,null!==(e=gc(e=xa(r))))if(null===(t=$a(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ha(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 Ul=e,null}function Kl(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(Qa()){case Ja:return 1;case Za:return 4;case el:case tl:return 16;case nl:return 536870912;default:return 16}default:return 16}}var Xl=null,Ql=null,Jl=null;function Zl(){if(Jl)return Jl;var e,t,n=Ql,r=n.length,o="value"in Xl?Xl.value:Xl.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 Jl=o.slice(e,1<t?1-t:void 0)}function es(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 ts(){return!0}function ns(){return!1}function rs(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)?ts:ns,this.isPropagationStopped=ns,this}return Ni(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=ts)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),t}var os,is,as,ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ss=rs(ls),us=Ni({},ls,{view:0,detail:0}),cs=rs(us),ds=Ni({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ws,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!==as&&(as&&"mousemove"===e.type?(os=e.screenX-as.screenX,is=e.screenY-as.screenY):is=os=0,as=e),os)},movementY:function(e){return"movementY"in e?e.movementY:is}}),ps=rs(ds),fs=rs(Ni({},ds,{dataTransfer:0})),hs=rs(Ni({},us,{relatedTarget:0})),ms=rs(Ni({},ls,{animationName:0,elapsedTime:0,pseudoElement:0})),gs=Ni({},ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vs=rs(gs),bs=rs(Ni({},ls,{data:0})),ys={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xs={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"},Ss={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Es(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ss[e])&&!!t[e]}function ws(){return Es}var Cs=Ni({},us,{key:function(e){if(e.key){var t=ys[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=es(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xs[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ws,charCode:function(e){return"keypress"===e.type?es(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?es(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rs=rs(Cs),ks=rs(Ni({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ls=rs(Ni({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ws})),_s=rs(Ni({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0})),As=Ni({},ds,{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}),Is=rs(As),Ps=[9,13,27,32],Ms=ui&&"CompositionEvent"in window,Ds=null;ui&&"documentMode"in document&&(Ds=document.documentMode);var Os=ui&&"TextEvent"in window&&!Ds,Ts=ui&&(!Ms||Ds&&8<Ds&&11>=Ds),Ns=String.fromCharCode(32),qs=!1;function Fs(e,t){switch(e){case"keyup":return-1!==Ps.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zs(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var js=!1;var $s={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 Hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$s[e.type]:"textarea"===t}function Bs(e,t,n,r){Ra(r),0<(t=Gu(t,"onChange")).length&&(n=new ss("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gs=null,Ws=null;function Vs(e){Nu(e,0)}function Us(e){if(Vi(bc(e)))return e}function Ys(e,t){if("change"===e)return t}var Ks=!1;if(ui){var Xs;if(ui){var Qs="oninput"in document;if(!Qs){var Js=document.createElement("div");Js.setAttribute("oninput","return;"),Qs="function"==typeof Js.oninput}Xs=Qs}else Xs=!1;Ks=Xs&&(!document.documentMode||9<document.documentMode)}function Zs(){Gs&&(Gs.detachEvent("onpropertychange",eu),Ws=Gs=null)}function eu(e){if("value"===e.propertyName&&Us(Ws)){var t=[];Bs(t,Ws,e,xa(e)),Ia(Vs,t)}}function tu(e,t,n){"focusin"===e?(Zs(),Ws=n,(Gs=t).attachEvent("onpropertychange",eu)):"focusout"===e&&Zs()}function nu(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Us(Ws)}function ru(e,t){if("click"===e)return Us(t)}function ou(e,t){if("input"===e||"change"===e)return Us(t)}var iu="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function au(e,t){if(iu(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(!ci.call(t,o)||!iu(e[o],t[o]))return!1}return!0}function lu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function su(e,t){var n,r=lu(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=lu(r)}}function uu(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?uu(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cu(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ui((e=t.contentWindow).document)}return t}function du(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 pu(e){var t=cu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uu(n.ownerDocument.documentElement,n)){if(null!==r&&du(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=su(n,i);var a=su(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 fu=ui&&"documentMode"in document&&11>=document.documentMode,hu=null,mu=null,gu=null,vu=!1;function bu(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vu||null==hu||hu!==Ui(r)||("selectionStart"in(r=hu)&&du(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},gu&&au(gu,r)||(gu=r,0<(r=Gu(mu,"onSelect")).length&&(t=new ss("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hu)))}function yu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xu={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionend:yu("Transition","TransitionEnd")},Su={},Eu={};function wu(e){if(Su[e])return Su[e];if(!xu[e])return e;var t,n=xu[e];for(t in n)if(n.hasOwnProperty(t)&&t in Eu)return Su[e]=n[t];return e}ui&&(Eu=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);var Cu=wu("animationend"),Ru=wu("animationiteration"),ku=wu("animationstart"),Lu=wu("transitionend"),_u=new Map,Au="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 Iu(e,t){_u.set(e,t),li(t,[e])}for(var Pu=0;Pu<Au.length;Pu++){var Mu=Au[Pu];Iu(Mu.toLowerCase(),"on"+(Mu[0].toUpperCase()+Mu.slice(1)))}Iu(Cu,"onAnimationEnd"),Iu(Ru,"onAnimationIteration"),Iu(ku,"onAnimationStart"),Iu("dblclick","onDoubleClick"),Iu("focusin","onFocus"),Iu("focusout","onBlur"),Iu(Lu,"onTransitionEnd"),si("onMouseEnter",["mouseout","mouseover"]),si("onMouseLeave",["mouseout","mouseover"]),si("onPointerEnter",["pointerout","pointerover"]),si("onPointerLeave",["pointerout","pointerover"]),li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),li("onBeforeInput",["compositionend","keypress","textInput","paste"]),li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Du="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(" "),Ou=new Set("cancel close invalid load scroll toggle".split(" ").concat(Du));function Tu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(ja.apply(this,arguments),Ta){if(!Ta)throw Error(oi(198));var u=Na;Ta=!1,Na=null,qa||(qa=!0,Fa=u)}}(r,t,void 0,e),e.currentTarget=null}function Nu(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;Tu(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;Tu(o,l,u),i=s}}}if(qa)throw e=Fa,qa=!1,Fa=null,e}function qu(e,t){var n=t[fc];void 0===n&&(n=t[fc]=new Set);var r=e+"__bubble";n.has(r)||($u(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),$u(n,e,r,t)}var zu="_reactListening"+Math.random().toString(36).slice(2);function ju(e){if(!e[zu]){e[zu]=!0,ii.forEach((function(t){"selectionchange"!==t&&(Ou.has(t)||Fu(t,!1,e),Fu(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zu]||(t[zu]=!0,Fu("selectionchange",!1,t))}}function $u(e,t,n,r){switch(Kl(t)){case 1:var o=Gl;break;case 4:o=Wl;break;default:o=Vl}n=o.bind(null,t,n,e),o=void 0,!Ma||"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 Hu(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=gc(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Ia((function(){var r=i,o=xa(n),a=[];e:{var l=_u.get(e);if(void 0!==l){var s=ss,u=e;switch(e){case"keypress":if(0===es(n))break e;case"keydown":case"keyup":s=Rs;break;case"focusin":u="focus",s=hs;break;case"focusout":u="blur",s=hs;break;case"beforeblur":case"afterblur":s=hs;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=ps;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=fs;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ls;break;case Cu:case Ru:case ku:s=ms;break;case Lu:s=_s;break;case"scroll":s=cs;break;case"wheel":s=Is;break;case"copy":case"cut":case"paste":s=vs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=ks}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Pa(h,p))&&c.push(Bu(h,m,f)))),d)break;h=h.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===ya||!(u=n.relatedTarget||n.fromElement)||!gc(u)&&!u[pc])&&(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)?gc(u):null)&&(u!==(d=$a(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=ps,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=ks,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:bc(s),f=null==u?l:bc(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,gc(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Wu(f))h++;for(f=0,m=p;m;m=Wu(m))f++;for(;0<h-f;)c=Wu(c),h--;for(;0<f-h;)p=Wu(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Wu(c),p=Wu(p)}c=null}else c=null;null!==s&&Vu(a,l,s,c,!1),null!==u&&null!==d&&Vu(a,d,u,c,!0)}if("select"===(s=(l=r?bc(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Ys;else if(Hs(l))if(Ks)g=ou;else{g=nu;var v=tu}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ru);switch(g&&(g=g(e,r))?Bs(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Zi(l,"number",l.value)),v=r?bc(r):window,e){case"focusin":(Hs(v)||"true"===v.contentEditable)&&(hu=v,mu=r,gu=null);break;case"focusout":gu=mu=hu=null;break;case"mousedown":vu=!0;break;case"contextmenu":case"mouseup":case"dragend":vu=!1,bu(a,n,o);break;case"selectionchange":if(fu)break;case"keydown":case"keyup":bu(a,n,o)}var b;if(Ms)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 js?Fs(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ts&&"ko"!==n.locale&&(js||"onCompositionStart"!==y?"onCompositionEnd"===y&&js&&(b=Zl()):(Ql="value"in(Xl=o)?Xl.value:Xl.textContent,js=!0)),0<(v=Gu(r,y)).length&&(y=new bs(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=zs(n))&&(y.data=b))),(b=Os?function(e,t){switch(e){case"compositionend":return zs(t);case"keypress":return 32!==t.which?null:(qs=!0,Ns);case"textInput":return(e=t.data)===Ns&&qs?null:e;default:return null}}(e,n):function(e,t){if(js)return"compositionend"===e||!Ms&&Fs(e,t)?(e=Zl(),Jl=Ql=Xl=null,js=!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 Ts&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gu(r,"onBeforeInput")).length&&(o=new bs("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Nu(a,t)}))}function Bu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(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=Pa(e,n))&&r.unshift(Bu(e,i,o)),null!=(i=Pa(e,t))&&r.push(Bu(e,i,o))),e=e.return}return r}function Wu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vu(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=Pa(n,i))&&a.unshift(Bu(n,s,l)):o||null!=(s=Pa(n,i))&&a.push(Bu(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Uu=/\r\n?/g,Yu=/\u0000|\uFFFD/g;function Ku(e){return("string"==typeof e?e:""+e).replace(Uu,"\n").replace(Yu,"")}function Xu(e,t,n){if(t=Ku(t),Ku(e)!==t&&n)throw Error(oi(425))}function Qu(){}var Ju=null,Zu=null;function ec(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 tc="function"==typeof setTimeout?setTimeout:void 0,nc="function"==typeof clearTimeout?clearTimeout:void 0,rc="function"==typeof Promise?Promise:void 0,oc="function"==typeof queueMicrotask?queueMicrotask:void 0!==rc?function(e){return rc.resolve(null).then(e).catch(ic)}:tc;function ic(e){setTimeout((function(){throw e}))}function ac(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 $l(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$l(t)}function lc(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 sc(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 uc=Math.random().toString(36).slice(2),cc="__reactFiber$"+uc,dc="__reactProps$"+uc,pc="__reactContainer$"+uc,fc="__reactEvents$"+uc,hc="__reactListeners$"+uc,mc="__reactHandles$"+uc;function gc(e){var t=e[cc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pc]||n[cc]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=sc(e);null!==e;){if(n=e[cc])return n;e=sc(e)}return t}n=(e=n).parentNode}return null}function vc(e){return!(e=e[cc]||e[pc])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bc(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(oi(33))}function yc(e){return e[dc]||null}var xc=[],Sc=-1;function Ec(e){return{current:e}}function wc(e){0>Sc||(e.current=xc[Sc],xc[Sc]=null,Sc--)}function Cc(e,t){Sc++,xc[Sc]=e.current,e.current=t}var Rc={},kc=Ec(Rc),Lc=Ec(!1),_c=Rc;function Ac(e,t){var n=e.type.contextTypes;if(!n)return Rc;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 Ic(e){return null!=(e=e.childContextTypes)}function Pc(){wc(Lc),wc(kc)}function Mc(e,t,n){if(kc.current!==Rc)throw Error(oi(168));Cc(kc,t),Cc(Lc,n)}function Dc(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(oi(108,Hi(e)||"Unknown",o));return Ni({},n,r)}function Oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rc,_c=kc.current,Cc(kc,e),Cc(Lc,Lc.current),!0}function Tc(e,t,n){var r=e.stateNode;if(!r)throw Error(oi(169));n?(e=Dc(e,t,_c),r.__reactInternalMemoizedMergedChildContext=e,wc(Lc),wc(kc),Cc(kc,e)):wc(Lc),Cc(Lc,n)}var Nc=null,qc=!1,Fc=!1;function zc(e){null===Nc?Nc=[e]:Nc.push(e)}function jc(){if(!Fc&&null!==Nc){Fc=!0;var e=0,t=bl;try{var n=Nc;for(bl=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Nc=null,qc=!1}catch(t){throw null!==Nc&&(Nc=Nc.slice(e+1)),Va(Ja,jc),t}finally{bl=t,Fc=!1}}return null}var $c=[],Hc=0,Bc=null,Gc=0,Wc=[],Vc=0,Uc=null,Yc=1,Kc="";function Xc(e,t){$c[Hc++]=Gc,$c[Hc++]=Bc,Bc=e,Gc=t}function Qc(e,t,n){Wc[Vc++]=Yc,Wc[Vc++]=Kc,Wc[Vc++]=Uc,Uc=e;var r=Yc;e=Kc;var o=32-il(r)-1;r&=~(1<<o),n+=1;var i=32-il(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yc=1<<32-il(t)+o|n<<o|r,Kc=i+e}else Yc=1<<i|n<<o|r,Kc=e}function Jc(e){null!==e.return&&(Xc(e,1),Qc(e,1,0))}function Zc(e){for(;e===Bc;)Bc=$c[--Hc],$c[Hc]=null,Gc=$c[--Hc],$c[Hc]=null;for(;e===Uc;)Uc=Wc[--Vc],Wc[Vc]=null,Kc=Wc[--Vc],Wc[Vc]=null,Yc=Wc[--Vc],Wc[Vc]=null}var ed=null,td=null,nd=!1,rd=null;function od(e,t){var n=Im(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 id(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,ed=e,td=lc(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ed=e,td=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Uc?{id:Yc,overflow:Kc}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Im(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ed=e,td=null,!0);default:return!1}}function ad(e){return!(!(1&e.mode)||128&e.flags)}function ld(e){if(nd){var t=td;if(t){var n=t;if(!id(e,t)){if(ad(e))throw Error(oi(418));t=lc(n.nextSibling);var r=ed;t&&id(e,t)?od(r,n):(e.flags=-4097&e.flags|2,nd=!1,ed=e)}}else{if(ad(e))throw Error(oi(418));e.flags=-4097&e.flags|2,nd=!1,ed=e}}}function sd(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ed=e}function ud(e){if(e!==ed)return!1;if(!nd)return sd(e),nd=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ec(e.type,e.memoizedProps)),t&&(t=td)){if(ad(e))throw cd(),Error(oi(418));for(;t;)od(e,t),t=lc(t.nextSibling)}if(sd(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(oi(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){td=lc(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}td=null}}else td=ed?lc(e.stateNode.nextSibling):null;return!0}function cd(){for(var e=td;e;)e=lc(e.nextSibling)}function dd(){td=ed=null,nd=!1}function pd(e){null===rd?rd=[e]:rd.push(e)}var fd=yi.ReactCurrentBatchConfig;function hd(e,t){if(e&&e.defaultProps){for(var n in t=Ni({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var md=Ec(null),gd=null,vd=null,bd=null;function yd(){bd=vd=gd=null}function xd(e){var t=md.current;wc(md),e._currentValue=t}function Sd(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 Ed(e,t){gd=e,bd=vd=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bf=!0),e.firstContext=null)}function wd(e){var t=e._currentValue;if(bd!==e)if(e={context:e,memoizedValue:t,next:null},null===vd){if(null===gd)throw Error(oi(308));vd=e,gd.dependencies={lanes:0,firstContext:e}}else vd=vd.next=e;return t}var Cd=null;function Rd(e){null===Cd?Cd=[e]:Cd.push(e)}function kd(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Rd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ld(e,r)}function Ld(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 _d=!1;function Ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Id(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 Pd(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Md(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Lh){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ld(e,n)}return null===(o=r.interleaved)?(t.next=t,Rd(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ld(e,n)}function Dd(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vl(e,n)}}function Od(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 Td(e,t,n,r){var o=e.updateQueue;_d=!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 h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Ni({},d,p);break e;case 2:_d=!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);Th|=a,e.lanes=a,e.memoizedState=d}}function Nd(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(oi(191,o));o.call(r)}}}var qd=(new ni.Component).refs;function Fd(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ni({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zd={isMounted:function(e){return!!(e=e._reactInternals)&&$a(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zh(),o=em(e),i=Pd(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Md(e,i,o))&&(tm(t,e,o,r),Dd(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zh(),o=em(e),i=Pd(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Md(e,i,o))&&(tm(t,e,o,r),Dd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zh(),r=em(e),o=Pd(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Md(e,o,r))&&(tm(t,e,r,n),Dd(t,e,r))}};function jd(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!au(n,r)||!au(o,i))}function $d(e,t,n){var r=!1,o=Rc,i=t.contextType;return"object"==typeof i&&null!==i?i=wd(i):(o=Ic(t)?_c:kc.current,i=(r=null!=(r=t.contextTypes))?Ac(e,o):Rc),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zd,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hd(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&&zd.enqueueReplaceState(t,t.state,null)}function Bd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=qd,Ad(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=wd(i):(i=Ic(t)?_c:kc.current,o.context=Ac(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fd(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&&zd.enqueueReplaceState(o,o.state,null),Td(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gd(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(oi(309));var r=n.stateNode}if(!r)throw Error(oi(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;t===qd&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(oi(284));if(!n._owner)throw Error(oi(290,e))}return e}function Wd(e,t){throw e=Object.prototype.toString.call(t),Error(oi(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vd(e){return(0,e._init)(e._payload)}function Ud(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=Mm(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=Nm(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===Ei?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Pi&&Vd(i)===t.type)?((r=o(t,n.props)).ref=Gd(e,t,n),r.return=e,r):((r=Dm(n.type,n.key,n.props,null,e.mode,r)).ref=Gd(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=qm(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=Om(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=Nm(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case xi:return(n=Dm(t.type,t.key,t.props,null,e.mode,n)).ref=Gd(e,null,t),n.return=e,n;case Si:return(t=qm(t,e.mode,n)).return=e,t;case Pi:return d(e,(0,t._init)(t._payload),n)}if(ea(t)||Oi(t))return(t=Om(t,e.mode,n,null)).return=e,t;Wd(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 xi:return n.key===o?s(e,t,n,r):null;case Si:return n.key===o?u(e,t,n,r):null;case Pi:return p(e,t,(o=n._init)(n._payload),r)}if(ea(n)||Oi(n))return null!==o?null:c(e,t,n,r,null);Wd(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 xi:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Si:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Pi:return f(e,t,n,(0,r._init)(r._payload),o)}if(ea(r)||Oi(r))return c(t,e=e.get(n)||null,r,o,null);Wd(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,h=g}if(m===l.length)return n(o,h),nd&&Xc(o,m),u;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return nd&&Xc(o,m),u}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),nd&&Xc(o,m),u}function m(o,a,l,s){var u=Oi(l);if("function"!=typeof u)throw Error(oi(150));if(null==(l=u.call(l)))throw Error(oi(151));for(var c=u=null,h=a,m=a=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b,h=g}if(v.done)return n(o,h),nd&&Xc(o,m),u;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return nd&&Xc(o,m),u}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),nd&&Xc(o,m),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Ei&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case xi:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Ei){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===Pi&&Vd(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Gd(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Ei?((i=Om(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Dm(l.type,l.key,l.props,null,r.mode,s)).ref=Gd(r,i,l),s.return=r,r=s)}return a(r);case Si: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=qm(l,r.mode,s)).return=r,r=i}return a(r);case Pi:return e(r,i,(c=l._init)(l._payload),s)}if(ea(l))return h(r,i,l,s);if(Oi(l))return m(r,i,l,s);Wd(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=Nm(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Yd=Ud(!0),Kd=Ud(!1),Xd={},Qd=Ec(Xd),Jd=Ec(Xd),Zd=Ec(Xd);function ep(e){if(e===Xd)throw Error(oi(174));return e}function tp(e,t){switch(Cc(Zd,t),Cc(Jd,e),Cc(Qd,Xd),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:la(null,"");break;default:t=la(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wc(Qd),Cc(Qd,t)}function np(){wc(Qd),wc(Jd),wc(Zd)}function rp(e){ep(Zd.current);var t=ep(Qd.current),n=la(t,e.type);t!==n&&(Cc(Jd,e),Cc(Qd,n))}function op(e){Jd.current===e&&(wc(Qd),wc(Jd))}var ip=Ec(0);function ap(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 lp=[];function sp(){for(var e=0;e<lp.length;e++)lp[e]._workInProgressVersionPrimary=null;lp.length=0}var up=yi.ReactCurrentDispatcher,cp=yi.ReactCurrentBatchConfig,dp=0,pp=null,fp=null,hp=null,mp=!1,gp=!1,vp=0,bp=0;function yp(){throw Error(oi(321))}function xp(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!iu(e[n],t[n]))return!1;return!0}function Sp(e,t,n,r,o,i){if(dp=i,pp=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,up.current=null===e||null===e.memoizedState?of:af,e=n(r,o),gp){i=0;do{if(gp=!1,vp=0,25<=i)throw Error(oi(301));i+=1,hp=fp=null,t.updateQueue=null,up.current=lf,e=n(r,o)}while(gp)}if(up.current=rf,t=null!==fp&&null!==fp.next,dp=0,hp=fp=pp=null,mp=!1,t)throw Error(oi(300));return e}function Ep(){var e=0!==vp;return vp=0,e}function wp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hp?pp.memoizedState=hp=e:hp=hp.next=e,hp}function Cp(){if(null===fp){var e=pp.alternate;e=null!==e?e.memoizedState:null}else e=fp.next;var t=null===hp?pp.memoizedState:hp.next;if(null!==t)hp=t,fp=e;else{if(null===e)throw Error(oi(310));e={memoizedState:(fp=e).memoizedState,baseState:fp.baseState,baseQueue:fp.baseQueue,queue:fp.queue,next:null},null===hp?pp.memoizedState=hp=e:hp=hp.next=e}return hp}function Rp(e,t){return"function"==typeof t?t(e):t}function kp(e){var t=Cp(),n=t.queue;if(null===n)throw Error(oi(311));n.lastRenderedReducer=e;var r=fp,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((dp&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,pp.lanes|=c,Th|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,iu(r,t.memoizedState)||(bf=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,pp.lanes|=i,Th|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lp(e){var t=Cp(),n=t.queue;if(null===n)throw Error(oi(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);iu(i,t.memoizedState)||(bf=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function _p(){}function Ap(e,t){var n=pp,r=Cp(),o=t(),i=!iu(r.memoizedState,o);if(i&&(r.memoizedState=o,bf=!0),r=r.queue,$p(Mp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==hp&&1&hp.memoizedState.tag){if(n.flags|=2048,Np(9,Pp.bind(null,n,r,o,t),void 0,null),null===_h)throw Error(oi(349));30&dp||Ip(n,t,o)}return o}function Ip(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=pp.updateQueue)?(t={lastEffect:null,stores:null},pp.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pp(e,t,n,r){t.value=n,t.getSnapshot=r,Dp(t)&&Op(e)}function Mp(e,t,n){return n((function(){Dp(t)&&Op(e)}))}function Dp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iu(e,n)}catch(e){return!0}}function Op(e){var t=Ld(e,1);null!==t&&tm(t,e,1,-1)}function Tp(e){var t=wp();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:e},t.queue=e,e=e.dispatch=Zp.bind(null,pp,e),[t.memoizedState,e]}function Np(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=pp.updateQueue)?(t={lastEffect:null,stores:null},pp.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 qp(){return Cp().memoizedState}function Fp(e,t,n,r){var o=wp();pp.flags|=e,o.memoizedState=Np(1|t,n,void 0,void 0===r?null:r)}function zp(e,t,n,r){var o=Cp();r=void 0===r?null:r;var i=void 0;if(null!==fp){var a=fp.memoizedState;if(i=a.destroy,null!==r&&xp(r,a.deps))return void(o.memoizedState=Np(t,n,i,r))}pp.flags|=e,o.memoizedState=Np(1|t,n,i,r)}function jp(e,t){return Fp(8390656,8,e,t)}function $p(e,t){return zp(2048,8,e,t)}function Hp(e,t){return zp(4,2,e,t)}function Bp(e,t){return zp(4,4,e,t)}function Gp(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 Wp(e,t,n){return n=null!=n?n.concat([e]):null,zp(4,4,Gp.bind(null,t,e),n)}function Vp(){}function Up(e,t){var n=Cp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yp(e,t){var n=Cp();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kp(e,t,n){return 21&dp?(iu(n,t)||(n=hl(),pp.lanes|=n,Th|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bf=!0),e.memoizedState=n)}function Xp(e,t){var n=bl;bl=0!==n&&4>n?n:4,e(!0);var r=cp.transition;cp.transition={};try{e(!1),t()}finally{bl=n,cp.transition=r}}function Qp(){return Cp().memoizedState}function Jp(e,t,n){var r=em(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ef(e))tf(t,n);else if(null!==(n=kd(e,t,n,r))){tm(n,e,r,Zh()),nf(n,t,r)}}function Zp(e,t,n){var r=em(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ef(e))tf(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,iu(l,a)){var s=t.interleaved;return null===s?(o.next=o,Rd(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=kd(e,t,o,r))&&(tm(n,e,r,o=Zh()),nf(n,t,r))}}function ef(e){var t=e.alternate;return e===pp||null!==t&&t===pp}function tf(e,t){gp=mp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nf(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vl(e,n)}}var rf={readContext:wd,useCallback:yp,useContext:yp,useEffect:yp,useImperativeHandle:yp,useInsertionEffect:yp,useLayoutEffect:yp,useMemo:yp,useReducer:yp,useRef:yp,useState:yp,useDebugValue:yp,useDeferredValue:yp,useTransition:yp,useMutableSource:yp,useSyncExternalStore:yp,useId:yp,unstable_isNewReconciler:!1},of={readContext:wd,useCallback:function(e,t){return wp().memoizedState=[e,void 0===t?null:t],e},useContext:wd,useEffect:jp,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fp(4194308,4,Gp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fp(4,2,e,t)},useMemo:function(e,t){var n=wp();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wp();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=Jp.bind(null,pp,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},wp().memoizedState=e},useState:Tp,useDebugValue:Vp,useDeferredValue:function(e){return wp().memoizedState=e},useTransition:function(){var e=Tp(!1),t=e[0];return e=Xp.bind(null,e[1]),wp().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pp,o=wp();if(nd){if(void 0===n)throw Error(oi(407));n=n()}else{if(n=t(),null===_h)throw Error(oi(349));30&dp||Ip(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,jp(Mp.bind(null,r,i,e),[e]),r.flags|=2048,Np(9,Pp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wp(),t=_h.identifierPrefix;if(nd){var n=Kc;t=":"+t+"R"+(n=(Yc&~(1<<32-il(Yc)-1)).toString(32)+n),0<(n=vp++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bp++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},af={readContext:wd,useCallback:Up,useContext:wd,useEffect:$p,useImperativeHandle:Wp,useInsertionEffect:Hp,useLayoutEffect:Bp,useMemo:Yp,useReducer:kp,useRef:qp,useState:function(){return kp(Rp)},useDebugValue:Vp,useDeferredValue:function(e){return Kp(Cp(),fp.memoizedState,e)},useTransition:function(){return[kp(Rp)[0],Cp().memoizedState]},useMutableSource:_p,useSyncExternalStore:Ap,useId:Qp,unstable_isNewReconciler:!1},lf={readContext:wd,useCallback:Up,useContext:wd,useEffect:$p,useImperativeHandle:Wp,useInsertionEffect:Hp,useLayoutEffect:Bp,useMemo:Yp,useReducer:Lp,useRef:qp,useState:function(){return Lp(Rp)},useDebugValue:Vp,useDeferredValue:function(e){var t=Cp();return null===fp?t.memoizedState=e:Kp(t,fp.memoizedState,e)},useTransition:function(){return[Lp(Rp)[0],Cp().memoizedState]},useMutableSource:_p,useSyncExternalStore:Ap,useId:Qp,unstable_isNewReconciler:!1};function sf(e,t){try{var n="",r=t;do{n+=ji(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 uf(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function cf(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var df="function"==typeof WeakMap?WeakMap:Map;function pf(e,t,n){(n=Pd(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bh||(Bh=!0,Gh=r),cf(0,t)},n}function ff(e,t,n){(n=Pd(-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(){cf(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cf(0,t),"function"!=typeof r&&(null===Wh?Wh=new Set([this]):Wh.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hf(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new df;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=Cm.bind(null,e,t,n),t.then(e,e))}function mf(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 gf(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=Pd(-1,1)).tag=2,Md(n,t,1))),n.lanes|=1),e)}var vf=yi.ReactCurrentOwner,bf=!1;function yf(e,t,n,r){t.child=null===e?Kd(t,null,n,r):Yd(t,e.child,n,r)}function xf(e,t,n,r,o){n=n.render;var i=t.ref;return Ed(t,o),r=Sp(e,t,n,r,i,o),n=Ep(),null===e||bf?(nd&&n&&Jc(t),t.flags|=1,yf(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bf(e,t,o))}function Sf(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pm(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dm(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ef(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:au)(a,r)&&e.ref===t.ref)return Bf(e,t,o)}return t.flags|=1,(e=Mm(i,r)).ref=t.ref,e.return=t,t.child=e}function Ef(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(au(i,r)&&e.ref===t.ref){if(bf=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Bf(e,t,o);131072&e.flags&&(bf=!0)}}return Rf(e,t,n,r,o)}function wf(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,Cc(Mh,Ph),Ph|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Cc(Mh,Ph),Ph|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cc(Mh,Ph),Ph|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Cc(Mh,Ph),Ph|=r;return yf(e,t,o,n),t.child}function Cf(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rf(e,t,n,r,o){var i=Ic(n)?_c:kc.current;return i=Ac(t,i),Ed(t,o),n=Sp(e,t,n,r,i,o),r=Ep(),null===e||bf?(nd&&r&&Jc(t),t.flags|=1,yf(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bf(e,t,o))}function kf(e,t,n,r,o){if(Ic(n)){var i=!0;Oc(t)}else i=!1;if(Ed(t,o),null===t.stateNode)Hf(e,t),$d(t,n,r),Bd(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=wd(u):u=Ac(t,u=Ic(n)?_c:kc.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)&&Hd(t,a,r,u),_d=!1;var p=t.memoizedState;a.state=p,Td(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Lc.current||_d?("function"==typeof c&&(Fd(t,n,c,r),s=t.memoizedState),(l=_d||jd(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,Id(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:hd(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=wd(s):s=Ac(t,s=Ic(n)?_c:kc.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)&&Hd(t,a,r,s),_d=!1,p=t.memoizedState,a.state=p,Td(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Lc.current||_d?("function"==typeof f&&(Fd(t,n,f,r),h=t.memoizedState),(u=_d||jd(t,n,u,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,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=h),a.props=r,a.state=h,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 Lf(e,t,n,r,i,o)}function Lf(e,t,n,r,o,i){Cf(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Tc(t,n,!1),Bf(e,t,i);r=t.stateNode,vf.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yd(t,e.child,null,i),t.child=Yd(t,null,l,i)):yf(e,t,l,i),t.memoizedState=r.state,o&&Tc(t,n,!0),t.child}function _f(e){var t=e.stateNode;t.pendingContext?Mc(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mc(0,t.context,!1),tp(e,t.containerInfo)}function Af(e,t,n,r,o){return dd(),pd(o),t.flags|=256,yf(e,t,n,r),t.child}var If,Pf,Mf,Df,Of={dehydrated:null,treeContext:null,retryLane:0};function Tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nf(e,t,n){var r,o=t.pendingProps,i=ip.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),Cc(ip,1&i),null===e)return ld(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=Tm(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Om(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Tf(n),t.memoizedState=Of,e):qf(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,Ff(e,t,a,r=uf(Error(oi(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Tm({mode:"visible",children:r.children},o,0,null),(i=Om(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Yd(t,e.child,null,a),t.child.memoizedState=Tf(a),t.memoizedState=Of,i);if(!(1&t.mode))return Ff(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ff(e,t,a,r=uf(i=Error(oi(419)),r,void 0))}if(l=!!(a&e.childLanes),bf||l){if(null!==(r=_h)){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,Ld(e,o),tm(r,e,o,-1))}return hm(),Ff(e,t,a,r=uf(Error(oi(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=km.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,td=lc(o.nextSibling),ed=t,nd=!0,rd=null,null!==e&&(Wc[Vc++]=Yc,Wc[Vc++]=Kc,Wc[Vc++]=Uc,Yc=e.id,Kc=e.overflow,Uc=t),t=qf(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=Mm(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=Mm(r,a):(a=Om(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)?Tf(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Of,o}return e=(a=e.child).sibling,o=Mm(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 qf(e,t){return(t=Tm({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ff(e,t,n,r){return null!==r&&pd(r),Yd(t,e.child,null,n),(e=qf(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zf(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sd(e.return,t,n)}function jf(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 $f(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yf(e,t,r.children,n),2&(r=ip.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&&zf(e,n,t);else if(19===e.tag)zf(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(Cc(ip,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ap(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jf(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===ap(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jf(t,!0,n,null,i);break;case"together":jf(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hf(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bf(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Th|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(oi(153));if(null!==t.child){for(n=Mm(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mm(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gf(e,t){if(!nd)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 Wf(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 Vf(e,t,n){var r=t.pendingProps;switch(Zc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wf(t),null;case 1:case 17:return Ic(t.type)&&Pc(),Wf(t),null;case 3:return r=t.stateNode,np(),wc(Lc),wc(kc),sp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ud(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==rd&&(im(rd),rd=null))),Pf(e,t),Wf(t),null;case 5:op(t);var o=ep(Zd.current);if(n=t.type,null!==e&&null!=t.stateNode)Mf(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(oi(166));return Wf(t),null}if(e=ep(Qd.current),ud(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[cc]=t,r[dc]=i,e=!!(1&t.mode),n){case"dialog":qu("cancel",r),qu("close",r);break;case"iframe":case"object":case"embed":qu("load",r);break;case"video":case"audio":for(o=0;o<Du.length;o++)qu(Du[o],r);break;case"source":qu("error",r);break;case"img":case"image":case"link":qu("error",r),qu("load",r);break;case"details":qu("toggle",r);break;case"input":Ki(r,i),qu("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},qu("invalid",r);break;case"textarea":ra(r,i),qu("invalid",r)}for(var a in va(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Xu(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Xu(r.textContent,l,e),o=["children",""+l]):ai.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&qu("scroll",r)}switch(n){case"input":Wi(r),Ji(r,i,!0);break;case"textarea":Wi(r),ia(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Qu)}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=aa(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[cc]=t,e[dc]=r,If(e,t,!1,!1),t.stateNode=e;e:{switch(a=ba(n,r),n){case"dialog":qu("cancel",e),qu("close",e),o=r;break;case"iframe":case"object":case"embed":qu("load",e),o=r;break;case"video":case"audio":for(o=0;o<Du.length;o++)qu(Du[o],e);o=r;break;case"source":qu("error",e),o=r;break;case"img":case"image":case"link":qu("error",e),qu("load",e),o=r;break;case"details":qu("toggle",e),o=r;break;case"input":Ki(e,r),o=Yi(e,r),qu("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ni({},r,{value:void 0}),qu("invalid",e);break;case"textarea":ra(e,r),o=na(e,r),qu("invalid",e)}for(i in va(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?ma(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&ca(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&da(e,s):"number"==typeof s&&da(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ai.hasOwnProperty(i)?null!=s&&"onScroll"===i&&qu("scroll",e):null!=s&&bi(e,i,s,a))}switch(n){case"input":Wi(e),Ji(e,r,!1);break;case"textarea":Wi(e),ia(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Bi(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ta(e,!!r.multiple,i,!1):null!=r.defaultValue&&ta(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Qu)}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 Wf(t),null;case 6:if(e&&null!=t.stateNode)Df(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(oi(166));if(n=ep(Zd.current),ep(Qd.current),ud(t)){if(r=t.stateNode,n=t.memoizedProps,r[cc]=t,(i=r.nodeValue!==n)&&null!==(e=ed))switch(e.tag){case 3:Xu(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xu(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[cc]=t,t.stateNode=r}return Wf(t),null;case 13:if(wc(ip),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(nd&&null!==td&&1&t.mode&&!(128&t.flags))cd(),dd(),t.flags|=98560,i=!1;else if(i=ud(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(oi(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(oi(317));i[cc]=t}else dd(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wf(t),i=!1}else null!==rd&&(im(rd),rd=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&ip.current?0===Dh&&(Dh=3):hm())),null!==t.updateQueue&&(t.flags|=4),Wf(t),null);case 4:return np(),Pf(e,t),null===e&&ju(t.stateNode.containerInfo),Wf(t),null;case 10:return xd(t.type._context),Wf(t),null;case 19:if(wc(ip),null===(i=t.memoizedState))return Wf(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Gf(i,!1);else{if(0!==Dh||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ap(e))){for(t.flags|=128,Gf(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 Cc(ip,1&ip.current|2),t.child}e=e.sibling}null!==i.tail&&Xa()>$h&&(t.flags|=128,r=!0,Gf(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ap(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gf(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!nd)return Wf(t),null}else 2*Xa()-i.renderingStartTime>$h&&1073741824!==n&&(t.flags|=128,r=!0,Gf(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=Xa(),t.sibling=null,n=ip.current,Cc(ip,r?1&n|2:1&n),t):(Wf(t),null);case 22:case 23:return cm(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ph)&&(Wf(t),6&t.subtreeFlags&&(t.flags|=8192)):Wf(t),null;case 24:case 25:return null}throw Error(oi(156,t.tag))}function Uf(e,t){switch(Zc(t),t.tag){case 1:return Ic(t.type)&&Pc(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return np(),wc(Lc),wc(kc),sp(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return op(t),null;case 13:if(wc(ip),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(oi(340));dd()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wc(ip),null;case 4:return np(),null;case 10:return xd(t.type._context),null;case 22:case 23:return cm(),null;default:return null}}If=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}},Pf=function(){},Mf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ep(Qd.current);var i,a=null;switch(n){case"input":o=Yi(e,o),r=Yi(e,r),a=[];break;case"select":o=Ni({},o,{value:void 0}),r=Ni({},r,{value:void 0}),a=[];break;case"textarea":o=na(e,o),r=na(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Qu)}for(u in va(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&&(ai.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&&(ai.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&qu("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)}},Df=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yf=!1,Kf=!1,Xf="function"==typeof WeakSet?WeakSet:Set,Qf=null;function Jf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){wm(e,t,n)}else n.current=null}function Zf(e,t,n){try{n()}catch(n){wm(e,t,n)}}var eh=!1;function th(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&&Zf(t,n,i)}o=o.next}while(o!==r)}}function nh(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 rh(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 oh(e){var t=e.alternate;null!==t&&(e.alternate=null,oh(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[cc],delete t[dc],delete t[fc],delete t[hc],delete t[mc])),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 ih(e){return 5===e.tag||3===e.tag||4===e.tag}function ah(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ih(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 lh(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=Qu));else if(4!==r&&null!==(e=e.child))for(lh(e,t,n),e=e.sibling;null!==e;)lh(e,t,n),e=e.sibling}function sh(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(sh(e,t,n),e=e.sibling;null!==e;)sh(e,t,n),e=e.sibling}var uh=null,ch=!1;function dh(e,t,n){for(n=n.child;null!==n;)ph(e,t,n),n=n.sibling}function ph(e,t,n){if(ol&&"function"==typeof ol.onCommitFiberUnmount)try{ol.onCommitFiberUnmount(rl,n)}catch(e){}switch(n.tag){case 5:Kf||Jf(n,t);case 6:var r=uh,o=ch;uh=null,dh(e,t,n),ch=o,null!==(uh=r)&&(ch?(e=uh,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uh.removeChild(n.stateNode));break;case 18:null!==uh&&(ch?(e=uh,n=n.stateNode,8===e.nodeType?ac(e.parentNode,n):1===e.nodeType&&ac(e,n),$l(e)):ac(uh,n.stateNode));break;case 4:r=uh,o=ch,uh=n.stateNode.containerInfo,ch=!0,dh(e,t,n),uh=r,ch=o;break;case 0:case 11:case 14:case 15:if(!Kf&&(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)&&Zf(n,t,a),o=o.next}while(o!==r)}dh(e,t,n);break;case 1:if(!Kf&&(Jf(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){wm(n,t,e)}dh(e,t,n);break;case 21:dh(e,t,n);break;case 22:1&n.mode?(Kf=(r=Kf)||null!==n.memoizedState,dh(e,t,n),Kf=r):dh(e,t,n);break;default:dh(e,t,n)}}function fh(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xf),t.forEach((function(t){var r=Lm.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hh(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:uh=l.stateNode,ch=!1;break e;case 3:case 4:uh=l.stateNode.containerInfo,ch=!0;break e}l=l.return}if(null===uh)throw Error(oi(160));ph(i,a,o),uh=null,ch=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){wm(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mh(t,e),t=t.sibling}function mh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hh(t,e),gh(e),4&r){try{th(3,e,e.return),nh(3,e)}catch(t){wm(e,e.return,t)}try{th(5,e,e.return)}catch(t){wm(e,e.return,t)}}break;case 1:hh(t,e),gh(e),512&r&&null!==n&&Jf(n,n.return);break;case 5:if(hh(t,e),gh(e),512&r&&null!==n&&Jf(n,n.return),32&e.flags){var o=e.stateNode;try{da(o,"")}catch(t){wm(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&&Xi(o,i),ba(l,a);var u=ba(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?ma(o,d):"dangerouslySetInnerHTML"===c?ca(o,d):"children"===c?da(o,d):bi(o,c,d,u)}switch(l){case"input":Qi(o,i);break;case"textarea":oa(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?ta(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?ta(o,!!i.multiple,i.defaultValue,!0):ta(o,!!i.multiple,i.multiple?[]:"",!1))}o[dc]=i}catch(t){wm(e,e.return,t)}}break;case 6:if(hh(t,e),gh(e),4&r){if(null===e.stateNode)throw Error(oi(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){wm(e,e.return,t)}}break;case 3:if(hh(t,e),gh(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$l(t.containerInfo)}catch(t){wm(e,e.return,t)}break;case 4:default:hh(t,e),gh(e);break;case 13:hh(t,e),gh(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(jh=Xa())),4&r&&fh(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Kf=(u=Kf)||c,hh(t,e),Kf=u):hh(t,e),gh(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Qf=e,c=e.child;null!==c;){for(d=Qf=c;null!==Qf;){switch(f=(p=Qf).child,p.tag){case 0:case 11:case 14:case 15:th(4,p,p.return);break;case 1:Jf(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){wm(r,n,e)}}break;case 5:Jf(p,p.return);break;case 22:if(null!==p.memoizedState){xh(d);continue}}null!==f?(f.return=p,Qf=f):xh(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=ha("display",a))}catch(t){wm(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){wm(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:hh(t,e),gh(e),4&r&&fh(e);case 21:}}function gh(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ih(n)){var r=n;break e}n=n.return}throw Error(oi(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(da(o,""),r.flags&=-33),sh(e,ah(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;lh(e,ah(e),i);break;default:throw Error(oi(161))}}catch(t){wm(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vh(e,t,n){Qf=e,bh(e)}function bh(e,t,n){for(var r=!!(1&e.mode);null!==Qf;){var o=Qf,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Yf;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Kf;l=Yf;var u=Kf;if(Yf=a,(Kf=s)&&!u)for(Qf=o;null!==Qf;)s=(a=Qf).child,22===a.tag&&null!==a.memoizedState?Sh(o):null!==s?(s.return=a,Qf=s):Sh(o);for(;null!==i;)Qf=i,bh(i),i=i.sibling;Qf=o,Yf=l,Kf=u}yh(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Qf=i):yh(e)}}function yh(e){for(;null!==Qf;){var t=Qf;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Kf||nh(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Kf)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:hd(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Nd(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}Nd(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&&$l(d)}}}break;default:throw Error(oi(163))}Kf||512&t.flags&&rh(t)}catch(e){wm(t,t.return,e)}}if(t===e){Qf=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qf=n;break}Qf=t.return}}function xh(e){for(;null!==Qf;){var t=Qf;if(t===e){Qf=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qf=n;break}Qf=t.return}}function Sh(e){for(;null!==Qf;){var t=Qf;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nh(4,t)}catch(e){wm(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){wm(t,o,e)}}var i=t.return;try{rh(t)}catch(e){wm(t,i,e)}break;case 5:var a=t.return;try{rh(t)}catch(e){wm(t,a,e)}}}catch(e){wm(t,t.return,e)}if(t===e){Qf=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Qf=l;break}Qf=t.return}}var Eh,wh=Math.ceil,Ch=yi.ReactCurrentDispatcher,Rh=yi.ReactCurrentOwner,kh=yi.ReactCurrentBatchConfig,Lh=0,_h=null,Ah=null,Ih=0,Ph=0,Mh=Ec(0),Dh=0,Oh=null,Th=0,Nh=0,qh=0,Fh=null,zh=null,jh=0,$h=1/0,Hh=null,Bh=!1,Gh=null,Wh=null,Vh=!1,Uh=null,Yh=0,Kh=0,Xh=null,Qh=-1,Jh=0;function Zh(){return 6&Lh?Xa():-1!==Qh?Qh:Qh=Xa()}function em(e){return 1&e.mode?2&Lh&&0!==Ih?Ih&-Ih:null!==fd.transition?(0===Jh&&(Jh=hl()),Jh):0!==(e=bl)?e:e=void 0===(e=window.event)?16:Kl(e.type):1}function tm(e,t,n,r){if(50<Kh)throw Kh=0,Xh=null,Error(oi(185));gl(e,n,r),2&Lh&&e===_h||(e===_h&&(!(2&Lh)&&(Nh|=n),4===Dh&&am(e,Ih)),nm(e,r),1===n&&0===Lh&&!(1&t.mode)&&($h=Xa()+500,qc&&jc()))}function nm(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-il(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=pl(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dl(e,e===_h?Ih:0);if(0===r)null!==n&&Ua(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ua(n),1===t)0===e.tag?function(e){qc=!0,zc(e)}(lm.bind(null,e)):zc(lm.bind(null,e)),oc((function(){!(6&Lh)&&jc()})),n=null;else{switch(yl(r)){case 1:n=Ja;break;case 4:n=Za;break;case 16:default:n=el;break;case 536870912:n=nl}n=_m(n,rm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rm(e,t){if(Qh=-1,Jh=0,6&Lh)throw Error(oi(327));var n=e.callbackNode;if(Sm()&&e.callbackNode!==n)return null;var r=dl(e,e===_h?Ih:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=mm(e,r);else{t=r;var o=Lh;Lh|=2;var i=fm();for(_h===e&&Ih===t||(Hh=null,$h=Xa()+500,dm(e,t));;)try{vm();break}catch(t){pm(e,t)}yd(),Ch.current=i,Lh=o,null!==Ah?t=0:(_h=null,Ih=0,t=Dh)}if(0!==t){if(2===t&&(0!==(o=fl(e))&&(r=o,t=om(e,o))),1===t)throw n=Oh,dm(e,0),am(e,r),nm(e,Xa()),n;if(6===t)am(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(!iu(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=mm(e,r),2===t&&(i=fl(e),0!==i&&(r=i,t=om(e,i))),1!==t)))throw n=Oh,dm(e,0),am(e,r),nm(e,Xa()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(oi(345));case 2:case 5:xm(e,zh,Hh);break;case 3:if(am(e,r),(130023424&r)===r&&10<(t=jh+500-Xa())){if(0!==dl(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Zh(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=tc(xm.bind(null,e,zh,Hh),t);break}xm(e,zh,Hh);break;case 4:if(am(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-il(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Xa()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wh(r/1960))-r)){e.timeoutHandle=tc(xm.bind(null,e,zh,Hh),r);break}xm(e,zh,Hh);break;default:throw Error(oi(329))}}}return nm(e,Xa()),e.callbackNode===n?rm.bind(null,e):null}function om(e,t){var n=Fh;return e.current.memoizedState.isDehydrated&&(dm(e,t).flags|=256),2!==(e=mm(e,t))&&(t=zh,zh=n,null!==t&&im(t)),e}function im(e){null===zh?zh=e:zh.push.apply(zh,e)}function am(e,t){for(t&=~qh,t&=~Nh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-il(t),r=1<<n;e[n]=-1,t&=~r}}function lm(e){if(6&Lh)throw Error(oi(327));Sm();var t=dl(e,0);if(!(1&t))return nm(e,Xa()),null;var n=mm(e,t);if(0!==e.tag&&2===n){var r=fl(e);0!==r&&(t=r,n=om(e,r))}if(1===n)throw n=Oh,dm(e,0),am(e,t),nm(e,Xa()),n;if(6===n)throw Error(oi(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xm(e,zh,Hh),nm(e,Xa()),null}function sm(e,t){var n=Lh;Lh|=1;try{return e(t)}finally{0===(Lh=n)&&($h=Xa()+500,qc&&jc())}}function um(e){null!==Uh&&0===Uh.tag&&!(6&Lh)&&Sm();var t=Lh;Lh|=1;var n=kh.transition,r=bl;try{if(kh.transition=null,bl=1,e)return e()}finally{bl=r,kh.transition=n,!(6&(Lh=t))&&jc()}}function cm(){Ph=Mh.current,wc(Mh)}function dm(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,nc(n)),null!==Ah)for(n=Ah.return;null!==n;){var r=n;switch(Zc(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Pc();break;case 3:np(),wc(Lc),wc(kc),sp();break;case 5:op(r);break;case 4:np();break;case 13:case 19:wc(ip);break;case 10:xd(r.type._context);break;case 22:case 23:cm()}n=n.return}if(_h=e,Ah=e=Mm(e.current,null),Ih=Ph=t,Dh=0,Oh=null,qh=Nh=Th=0,zh=Fh=null,null!==Cd){for(t=0;t<Cd.length;t++)if(null!==(r=(n=Cd[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}Cd=null}return e}function pm(e,t){for(;;){var n=Ah;try{if(yd(),up.current=rf,mp){for(var r=pp.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}mp=!1}if(dp=0,hp=fp=pp=null,gp=!1,vp=0,Rh.current=null,null===n||null===n.return){Dh=1,Oh=t,Ah=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ih,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=mf(a);if(null!==f){f.flags&=-257,gf(f,a,l,0,t),1&f.mode&&hf(i,u,t),s=u;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(!(1&t)){hf(i,u,t),hm();break e}s=Error(oi(426))}else if(nd&&1&l.mode){var g=mf(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gf(g,a,l,0,t),pd(sf(s,l));break e}}i=s=sf(s,l),4!==Dh&&(Dh=2),null===Fh?Fh=[i]:Fh.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Od(i,pf(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!==Wh&&Wh.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Od(i,ff(i,l,t));break e}}i=i.return}while(null!==i)}ym(n)}catch(e){t=e,Ah===n&&null!==n&&(Ah=n=n.return);continue}break}}function fm(){var e=Ch.current;return Ch.current=rf,null===e?rf:e}function hm(){0!==Dh&&3!==Dh&&2!==Dh||(Dh=4),null===_h||!(268435455&Th)&&!(268435455&Nh)||am(_h,Ih)}function mm(e,t){var n=Lh;Lh|=2;var r=fm();for(_h===e&&Ih===t||(Hh=null,dm(e,t));;)try{gm();break}catch(t){pm(e,t)}if(yd(),Lh=n,Ch.current=r,null!==Ah)throw Error(oi(261));return _h=null,Ih=0,Dh}function gm(){for(;null!==Ah;)bm(Ah)}function vm(){for(;null!==Ah&&!Ya();)bm(Ah)}function bm(e){var t=Eh(e.alternate,e,Ph);e.memoizedProps=e.pendingProps,null===t?ym(e):Ah=t,Rh.current=null}function ym(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Uf(n,t)))return n.flags&=32767,void(Ah=n);if(null===e)return Dh=6,void(Ah=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vf(n,t,Ph)))return void(Ah=n);if(null!==(t=t.sibling))return void(Ah=t);Ah=t=e}while(null!==t);0===Dh&&(Dh=5)}function xm(e,t,n){var r=bl,o=kh.transition;try{kh.transition=null,bl=1,function(e,t,n,r){do{Sm()}while(null!==Uh);if(6&Lh)throw Error(oi(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(oi(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-il(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===_h&&(Ah=_h=null,Ih=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vh||(Vh=!0,_m(el,(function(){return Sm(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=kh.transition,kh.transition=null;var a=bl;bl=1;var l=Lh;Lh|=4,Rh.current=null,function(e,t){if(Ju=Bl,du(e=cu())){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(Zu={focusedElem:e,selectionRange:n},Bl=!1,Qf=t;null!==Qf;)if(e=(t=Qf).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qf=e;else for(;null!==Qf;){t=Qf;try{var h=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!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:hd(t.type,m),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(oi(163))}}catch(e){wm(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qf=e;break}Qf=t.return}h=eh,eh=!1}(e,n),mh(n,e),pu(Zu),Bl=!!Ju,Zu=Ju=null,e.current=n,vh(n),Ka(),Lh=l,bl=a,kh.transition=i}else e.current=n;if(Vh&&(Vh=!1,Uh=e,Yh=o),i=e.pendingLanes,0===i&&(Wh=null),function(e){if(ol&&"function"==typeof ol.onCommitFiberRoot)try{ol.onCommitFiberRoot(rl,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nm(e,Xa()),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(Bh)throw Bh=!1,e=Gh,Gh=null,e;!!(1&Yh)&&0!==e.tag&&Sm(),i=e.pendingLanes,1&i?e===Xh?Kh++:(Kh=0,Xh=e):Kh=0,jc()}(e,t,n,r)}finally{kh.transition=o,bl=r}return null}function Sm(){if(null!==Uh){var e=yl(Yh),t=kh.transition,n=bl;try{if(kh.transition=null,bl=16>e?16:e,null===Uh)var r=!1;else{if(e=Uh,Uh=null,Yh=0,6&Lh)throw Error(oi(331));var o=Lh;for(Lh|=4,Qf=e.current;null!==Qf;){var i=Qf,a=i.child;if(16&Qf.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Qf=u;null!==Qf;){var c=Qf;switch(c.tag){case 0:case 11:case 15:th(8,c,i)}var d=c.child;if(null!==d)d.return=c,Qf=d;else for(;null!==Qf;){var p=(c=Qf).sibling,f=c.return;if(oh(c),c===u){Qf=null;break}if(null!==p){p.return=f,Qf=p;break}Qf=f}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Qf=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Qf=a;else e:for(;null!==Qf;){if(2048&(i=Qf).flags)switch(i.tag){case 0:case 11:case 15:th(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Qf=v;break e}Qf=i.return}}var b=e.current;for(Qf=b;null!==Qf;){var y=(a=Qf).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Qf=y;else e:for(a=b;null!==Qf;){if(2048&(l=Qf).flags)try{switch(l.tag){case 0:case 11:case 15:nh(9,l)}}catch(e){wm(l,l.return,e)}if(l===a){Qf=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Qf=x;break e}Qf=l.return}}if(Lh=o,jc(),ol&&"function"==typeof ol.onPostCommitFiberRoot)try{ol.onPostCommitFiberRoot(rl,e)}catch(e){}r=!0}return r}finally{bl=n,kh.transition=t}}return!1}function Em(e,t,n){e=Md(e,t=pf(0,t=sf(n,t),1),1),t=Zh(),null!==e&&(gl(e,1,t),nm(e,t))}function wm(e,t,n){if(3===e.tag)Em(e,e,n);else for(;null!==t;){if(3===t.tag){Em(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wh||!Wh.has(r))){t=Md(t,e=ff(t,e=sf(n,e),1),1),e=Zh(),null!==t&&(gl(t,1,e),nm(t,e));break}}t=t.return}}function Cm(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zh(),e.pingedLanes|=e.suspendedLanes&n,_h===e&&(Ih&n)===n&&(4===Dh||3===Dh&&(130023424&Ih)===Ih&&500>Xa()-jh?dm(e,0):qh|=n),nm(e,t)}function Rm(e,t){0===t&&(1&e.mode?(t=ul,!(130023424&(ul<<=1))&&(ul=4194304)):t=1);var n=Zh();null!==(e=Ld(e,t))&&(gl(e,t,n),nm(e,n))}function km(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rm(e,n)}function Lm(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(oi(314))}null!==r&&r.delete(t),Rm(e,n)}function _m(e,t){return Va(e,t)}function Am(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 Im(e,t,n,r){return new Am(e,t,n,r)}function Pm(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mm(e,t){var n=e.alternate;return null===n?((n=Im(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 Dm(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Pm(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ei:return Om(n.children,o,i,t);case wi:a=8,o|=8;break;case Ci:return(e=Im(12,n,t,2|o)).elementType=Ci,e.lanes=i,e;case _i:return(e=Im(13,n,t,o)).elementType=_i,e.lanes=i,e;case Ai:return(e=Im(19,n,t,o)).elementType=Ai,e.lanes=i,e;case Mi:return Tm(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ri:a=10;break e;case ki:a=9;break e;case Li:a=11;break e;case Ii:a=14;break e;case Pi:a=16,r=null;break e}throw Error(oi(130,null==e?e:typeof e,""))}return(t=Im(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Om(e,t,n,r){return(e=Im(7,e,r,t)).lanes=n,e}function Tm(e,t,n,r){return(e=Im(22,e,r,t)).elementType=Mi,e.lanes=n,e.stateNode={isHidden:!1},e}function Nm(e,t,n){return(e=Im(6,e,null,t)).lanes=n,e}function qm(e,t,n){return(t=Im(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fm(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=ml(0),this.expirationTimes=ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ml(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zm(e,t,n,r,o,i,a,l,s){return e=new Fm(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Im(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(i),e}function jm(e){if(!e)return Rc;e:{if($a(e=e._reactInternals)!==e||1!==e.tag)throw Error(oi(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ic(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(oi(171))}if(1===e.tag){var n=e.type;if(Ic(n))return Dc(e,n,t)}return t}function $m(e,t,n,r,o,i,a,l,s){return(e=zm(n,r,!0,e,0,i,0,l,s)).context=jm(null),n=e.current,(i=Pd(r=Zh(),o=em(n))).callback=null!=t?t:null,Md(n,i,o),e.current.lanes=o,gl(e,o,r),nm(e,r),e}function Hm(e,t,n,r){var o=t.current,i=Zh(),a=em(o);return n=jm(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pd(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Md(o,t,a))&&(tm(e,o,a,i),Dd(e,o,a)),a}function Bm(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gm(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wm(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}Eh=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lc.current)bf=!0;else{if(!(e.lanes&n||128&t.flags))return bf=!1,function(e,t,n){switch(t.tag){case 3:_f(t),dd();break;case 5:rp(t);break;case 1:Ic(t.type)&&Oc(t);break;case 4:tp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Cc(md,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Cc(ip,1&ip.current),t.flags|=128,null):n&t.child.childLanes?Nf(e,t,n):(Cc(ip,1&ip.current),null!==(e=Bf(e,t,n))?e.sibling:null);Cc(ip,1&ip.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return $f(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Cc(ip,ip.current),r)break;return null;case 22:case 23:return t.lanes=0,wf(e,t,n)}return Bf(e,t,n)}(e,t,n);bf=!!(131072&e.flags)}else bf=!1,nd&&1048576&t.flags&&Qc(t,Gc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hf(e,t),e=t.pendingProps;var o=Ac(t,kc.current);Ed(t,n),o=Sp(null,t,r,e,o,n);var i=Ep();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,Ic(r)?(i=!0,Oc(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ad(t),o.updater=zd,t.stateNode=o,o._reactInternals=t,Bd(t,r,e,n),t=Lf(null,t,r,!0,i,n)):(t.tag=0,nd&&i&&Jc(t),yf(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hf(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pm(e)?1:0;if(null!=e){if((e=e.$$typeof)===Li)return 11;if(e===Ii)return 14}return 2}(r),e=hd(r,e),o){case 0:t=Rf(null,t,r,e,n);break e;case 1:t=kf(null,t,r,e,n);break e;case 11:t=xf(null,t,r,e,n);break e;case 14:t=Sf(null,t,r,hd(r.type,e),n);break e}throw Error(oi(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Rf(e,t,r,o=t.elementType===r?o:hd(r,o),n);case 1:return r=t.type,o=t.pendingProps,kf(e,t,r,o=t.elementType===r?o:hd(r,o),n);case 3:e:{if(_f(t),null===e)throw Error(oi(387));r=t.pendingProps,o=(i=t.memoizedState).element,Id(e,t),Td(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=Af(e,t,r,n,o=sf(Error(oi(423)),t));break e}if(r!==o){t=Af(e,t,r,n,o=sf(Error(oi(424)),t));break e}for(td=lc(t.stateNode.containerInfo.firstChild),ed=t,nd=!0,rd=null,n=Kd(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(dd(),r===o){t=Bf(e,t,n);break e}yf(e,t,r,n)}t=t.child}return t;case 5:return rp(t),null===e&&ld(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ec(r,o)?a=null:null!==i&&ec(r,i)&&(t.flags|=32),Cf(e,t),yf(e,t,a,n),t.child;case 6:return null===e&&ld(t),null;case 13:return Nf(e,t,n);case 4:return tp(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yd(t,null,r,n):yf(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xf(e,t,r,o=t.elementType===r?o:hd(r,o),n);case 7:return yf(e,t,t.pendingProps,n),t.child;case 8:case 12:return yf(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,Cc(md,r._currentValue),r._currentValue=a,null!==i)if(iu(i.value,a)){if(i.children===o.children&&!Lc.current){t=Bf(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=Pd(-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),Sd(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(oi(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Sd(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}yf(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ed(t,n),r=r(o=wd(o)),t.flags|=1,yf(e,t,r,n),t.child;case 14:return o=hd(r=t.type,t.pendingProps),Sf(e,t,r,o=hd(r.type,o),n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:hd(r,o),Hf(e,t),t.tag=1,Ic(r)?(e=!0,Oc(t)):e=!1,Ed(t,n),$d(t,r,o),Bd(t,r,o,n),Lf(null,t,r,!0,e,n);case 19:return $f(e,t,n);case 22:return wf(e,t,n)}throw Error(oi(156,t.tag))};var Vm="function"==typeof reportError?reportError:function(e){console.error(e)};function Um(e){this._internalRoot=e}function Ym(e){this._internalRoot=e}function Km(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xm(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qm(){}function Jm(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=Bm(a);l.call(e)}}Hm(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=Bm(a);i.call(e)}}var a=$m(t,r,e,0,null,!1,0,"",Qm);return e._reactRootContainer=a,e[pc]=a.current,ju(8===e.nodeType?e.parentNode:e),um(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Bm(s);l.call(e)}}var s=zm(e,0,!1,null,0,!1,0,"",Qm);return e._reactRootContainer=s,e[pc]=s.current,ju(8===e.nodeType?e.parentNode:e),um((function(){Hm(t,s,n,r)})),s}(n,t,e,o,r);return Bm(a)}Ym.prototype.render=Um.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(oi(409));Hm(e,t,null,null)},Ym.prototype.unmount=Um.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;um((function(){Hm(null,e,null,null)})),t[pc]=null}},Ym.prototype.unstable_scheduleHydration=function(e){if(e){var t=wl();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ml.length&&0!==t&&t<Ml[n].priority;n++);Ml.splice(n,0,e),0===n&&Nl(e)}},xl=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cl(t.pendingLanes);0!==n&&(vl(t,1|n),nm(t,Xa()),!(6&Lh)&&($h=Xa()+500,jc()))}break;case 13:um((function(){var t=Ld(e,1);if(null!==t){var n=Zh();tm(t,e,1,n)}})),Wm(e,1)}},Sl=function(e){if(13===e.tag){var t=Ld(e,134217728);if(null!==t)tm(t,e,134217728,Zh());Wm(e,134217728)}},El=function(e){if(13===e.tag){var t=em(e),n=Ld(e,t);if(null!==n)tm(n,e,t,Zh());Wm(e,t)}},wl=function(){return bl},Cl=function(e,t){var n=bl;try{return bl=e,t()}finally{bl=n}},Sa=function(e,t,n){switch(t){case"input":if(Qi(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=yc(r);if(!o)throw Error(oi(90));Vi(r),Qi(r,o)}}}break;case"textarea":oa(e,n);break;case"select":null!=(t=n.value)&&ta(e,!!n.multiple,t,!1)}},La=sm,_a=um;var Zm={usingClientEntryPoint:!1,Events:[vc,bc,yc,Ra,ka,sm]},eg={findFiberByHostInstance:gc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tg={bundleType:eg.bundleType,version:eg.version,rendererPackageName:eg.rendererPackageName,rendererConfig:eg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ga(e))?null:e.stateNode},findFiberByHostInstance:eg.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{rl=ng.inject(tg),ol=ng}catch(ua){}}Jo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm,Jo.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Km(t))throw Error(oi(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Si,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Jo.createRoot=function(e,t){if(!Km(e))throw Error(oi(299));var n=!1,r="",o=Vm;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zm(e,1,!1,null,0,n,0,r,o),e[pc]=t.current,ju(8===e.nodeType?e.parentNode:e),new Um(t)},Jo.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(oi(188));throw e=Object.keys(e).join(","),Error(oi(268,e))}return e=null===(e=Ga(t))?null:e.stateNode},Jo.flushSync=function(e){return um(e)},Jo.hydrate=function(e,t,n){if(!Xm(t))throw Error(oi(200));return Jm(null,e,t,!0,n)},Jo.hydrateRoot=function(e,t,n){if(!Km(e))throw Error(oi(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Vm;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=$m(t,null,e,1,null!=n?n:null,o,0,i,a),e[pc]=t.current,ju(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 Ym(t)},Jo.render=function(e,t,n){if(!Xm(t))throw Error(oi(200));return Jm(null,e,t,!1,n)},Jo.unmountComponentAtNode=function(e){if(!Xm(e))throw Error(oi(40));return!!e._reactRootContainer&&(um((function(){Jm(null,null,e,!1,(function(){e._reactRootContainer=null,e[pc]=null}))})),!0)},Jo.unstable_batchedUpdates=sm,Jo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xm(n))throw Error(oi(200));if(null==e||void 0===e._reactInternals)throw Error(oi(38));return Jm(e,t,n,!1,r)},Jo.version="18.2.0-next-9e3b772b8-20220608",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)}}(),Qo.exports=Jo;var rg,og=Qo.exports,ig=n(og),ag=og;rg=ag.createRoot,ag.hydrateRoot;function lg(e,t){const[n,r]=Go.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var sg={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 ug=({translator:e})=>(Go.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sg).forEach((t=>{e.add(sg[t])}))}}(e)),[e]),e);var cg={exports:{}},dg={},pg=Go,fg=Symbol.for("react.element"),hg=Symbol.for("react.fragment"),mg=Object.prototype.hasOwnProperty,gg=pg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vg={key:!0,ref:!0,__self:!0,__source:!0};function bg(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)mg.call(t,r)&&!vg.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:fg,type:e,key:i,ref:a,props:o,_owner:gg.current}}dg.Fragment=hg,dg.jsx=bg,dg.jsxs=bg,cg.exports=dg;var yg=cg.exports;function xg(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 Sg=Object.freeze({__proto__:null,default:xg}),Eg="$$material";function wg(){return wg=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},wg.apply(this,arguments)}function Cg(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 Rg=function(){return Rg=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},Rg.apply(this,arguments)};function kg(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 Lg="-ms-",_g="-moz-",Ag="-webkit-",Ig="comm",Pg="rule",Mg="decl",Dg="@import",Og="@keyframes",Tg="@layer",Ng=Math.abs,qg=String.fromCharCode,Fg=Object.assign;function zg(e){return e.trim()}function jg(e,t){return(e=t.exec(e))?e[0]:e}function $g(e,t,n){return e.replace(t,n)}function Hg(e,t,n){return e.indexOf(t,n)}function Bg(e,t){return 0|e.charCodeAt(t)}function Gg(e,t,n){return e.slice(t,n)}function Wg(e){return e.length}function Vg(e){return e.length}function Ug(e,t){return t.push(e),e}function Yg(e,t){return e.filter((function(e){return!jg(e,t)}))}var Kg=1,Xg=1,Qg=0,Jg=0,Zg=0,ev="";function tv(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Kg,column:Xg,length:a,return:"",siblings:l}}function nv(e,t){return Fg(tv("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function rv(e){for(;e.root;)e=nv(e.root,{children:[e]});Ug(e,e.siblings)}function ov(){return Zg=Jg>0?Bg(ev,--Jg):0,Xg--,10===Zg&&(Xg=1,Kg--),Zg}function iv(){return Zg=Jg<Qg?Bg(ev,Jg++):0,Xg++,10===Zg&&(Xg=1,Kg++),Zg}function av(){return Bg(ev,Jg)}function lv(){return Jg}function sv(e,t){return Gg(ev,e,t)}function uv(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 cv(e){return zg(sv(Jg-1,fv(91===e?e+2:40===e?e+1:e)))}function dv(e){for(;(Zg=av())&&Zg<33;)iv();return uv(e)>2||uv(Zg)>3?"":" "}function pv(e,t){for(;--t&&iv()&&!(Zg<48||Zg>102||Zg>57&&Zg<65||Zg>70&&Zg<97););return sv(e,lv()+(t<6&&32==av()&&32==iv()))}function fv(e){for(;iv();)switch(Zg){case e:return Jg;case 34:case 39:34!==e&&39!==e&&fv(Zg);break;case 40:41===e&&fv(e);break;case 92:iv()}return Jg}function hv(e,t){for(;iv()&&e+Zg!==57&&(e+Zg!==84||47!==av()););return"/*"+sv(t,Jg-1)+"*"+qg(47===e?e:iv())}function mv(e){for(;!uv(av());)iv();return sv(e,Jg)}function gv(e){return function(e){return ev="",e}(vv("",null,null,null,[""],e=function(e){return Kg=Xg=1,Qg=Wg(ev=e),Jg=0,[]}(e),0,[0],e))}function vv(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,w=y;g;)switch(h=b,b=iv()){case 40:if(108!=h&&58==Bg(w,d-1)){-1!=Hg(w+=$g(cv(b),"&","&\f"),"&\f",Ng(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:w+=cv(b);break;case 9:case 10:case 13:case 32:w+=dv(h);break;case 92:w+=pv(lv()-1,7);continue;case 47:switch(av()){case 42:case 47:Ug(yv(hv(iv(),lv()),t,n,s),s);break;default:w+="/"}break;case 123*m:l[u++]=Wg(w)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(w=$g(w,/\f/g,"")),f>0&&Wg(w)-d&&Ug(f>32?xv(w+";",r,n,d-1,s):xv($g(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Ug(E=bv(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)vv(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===Bg(w,3)?100:p){case 100:case 108:case 109:case 115:vv(e,E,E,r&&Ug(bv(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:vv(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=v=1,y=w="",d=a;break;case 58:d=1+Wg(w),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==ov())continue;switch(w+=qg(b),b*m){case 38:v=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Wg(w)-1)*v,v=1;break;case 64:45===av()&&(w+=cv(iv())),p=av(),c=d=Wg(y=w+=mv(lv())),b++;break;case 45:45===h&&2==Wg(w)&&(m=0)}}return i}function bv(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Vg(f),m=0,g=0,v=0;m<r;++m)for(var b=0,y=Gg(e,p+1,p=Ng(g=a[m])),x=e;b<h;++b)(x=zg(g>0?f[b]+" "+y:$g(y,/&\f/g,f[b])))&&(s[v++]=x);return tv(e,t,n,0===o?Pg:l,s,u,c,d)}function yv(e,t,n,r){return tv(e,t,n,Ig,qg(Zg),Gg(e,2,-2),0,r)}function xv(e,t,n,r,o){return tv(e,t,n,Mg,Gg(e,0,r),Gg(e,r+1,-1),r,o)}function Sv(e,t,n){switch(function(e,t){return 45^Bg(e,0)?(((t<<2^Bg(e,0))<<2^Bg(e,1))<<2^Bg(e,2))<<2^Bg(e,3):0}(e,t)){case 5103:return Ag+"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 Ag+e+e;case 4789:return _g+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ag+e+_g+e+Lg+e+e;case 5936:switch(Bg(e,t+11)){case 114:return Ag+e+Lg+$g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ag+e+Lg+$g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ag+e+Lg+$g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ag+e+Lg+e+e;case 6165:return Ag+e+Lg+"flex-"+e+e;case 5187:return Ag+e+$g(e,/(\w+).+(:[^]+)/,Ag+"box-$1$2"+Lg+"flex-$1$2")+e;case 5443:return Ag+e+Lg+"flex-item-"+$g(e,/flex-|-self/g,"")+(jg(e,/flex-|baseline/)?"":Lg+"grid-row-"+$g(e,/flex-|-self/g,""))+e;case 4675:return Ag+e+Lg+"flex-line-pack"+$g(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ag+e+Lg+$g(e,"shrink","negative")+e;case 5292:return Ag+e+Lg+$g(e,"basis","preferred-size")+e;case 6060:return Ag+"box-"+$g(e,"-grow","")+Ag+e+Lg+$g(e,"grow","positive")+e;case 4554:return Ag+$g(e,/([^-])(transform)/g,"$1"+Ag+"$2")+e;case 6187:return $g($g($g(e,/(zoom-|grab)/,Ag+"$1"),/(image-set)/,Ag+"$1"),e,"")+e;case 5495:case 3959:return $g(e,/(image-set\([^]*)/,Ag+"$1$`$1");case 4968:return $g($g(e,/(.+:)(flex-)?(.*)/,Ag+"box-pack:$3"+Lg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ag+e+e;case 4200:if(!jg(e,/flex-|baseline/))return Lg+"grid-column-align"+Gg(e,t)+e;break;case 2592:case 3360:return Lg+$g(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,jg(e.props,/grid-\w+-end/)}))?~Hg(e+(n=n[t].value),"span",0)?e:Lg+$g(e,"-start","")+e+Lg+"grid-row-span:"+(~Hg(n,"span",0)?jg(n,/\d+/):+jg(n,/\d+/)-+jg(e,/\d+/))+";":Lg+$g(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return jg(e.props,/grid-\w+-start/)}))?e:Lg+$g($g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $g(e,/(.+)-inline(.+)/,Ag+"$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(Wg(e)-1-t>6)switch(Bg(e,t+1)){case 109:if(45!==Bg(e,t+4))break;case 102:return $g(e,/(.+:)(.+)-([^]+)/,"$1"+Ag+"$2-$3$1"+_g+(108==Bg(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hg(e,"stretch",0)?Sv($g(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Lg+n+":"+r+l+(o?Lg+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Bg(e,t+6))return $g(e,":",":"+Ag)+e;break;case 6444:switch(Bg(e,45===Bg(e,14)?18:11)){case 120:return $g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ag+(45===Bg(e,14)?"inline-":"")+"box$3$1"+Ag+"$2$3$1"+Lg+"$2box$3")+e;case 100:return $g(e,":",":"+Lg)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $g(e,"scroll-","scroll-snap-")+e}return e}function Ev(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function wv(e,t,n,r){switch(e.type){case Tg:if(e.children.length)break;case Dg:case Mg:return e.return=e.return||e.value;case Ig:return"";case Og:return e.return=e.value+"{"+Ev(e.children,r)+"}";case Pg:if(!Wg(e.value=e.props.join(",")))return""}return Wg(n=Ev(e.children,r))?e.return=e.value+"{"+n+"}":""}function Cv(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Mg:return void(e.return=Sv(e.value,e.length,n));case Og:return Ev([nv(e,{value:$g(e.value,"@","@"+Ag)})],r);case Pg:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(jg(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":rv(nv(e,{props:[$g(t,/:(read-\w+)/,":"+_g+"$1")]})),rv(nv(e,{props:[t]})),Fg(e,{props:Yg(n,r)});break;case"::placeholder":rv(nv(e,{props:[$g(t,/:(plac\w+)/,":"+Ag+"input-$1")]})),rv(nv(e,{props:[$g(t,/:(plac\w+)/,":"+_g+"$1")]})),rv(nv(e,{props:[$g(t,/:(plac\w+)/,Lg+"input-$1")]})),rv(nv(e,{props:[t]})),Fg(e,{props:Yg(n,r)})}return""}))}}var Rv={animationIterationCount: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},kv="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Lv="active",_v="data-styled-version",Av="6.1.8",Iv="/*!sc*/\n",Pv="undefined"!=typeof window&&"HTMLElement"in window,Mv=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)),Dv={},Ov=Object.freeze([]),Tv=Object.freeze({});function Nv(e,t,n){return void 0===n&&(n=Tv),e.theme!==n.theme&&e.theme||t||n.theme}var qv=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"]),Fv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zv=/(^-|-$)/g;function jv(e){return e.replace(Fv,"-").replace(zv,"")}var $v=/(a)(d)/gi,Hv=52,Bv=function(e){return String.fromCharCode(e+(e>25?39:97))};function Gv(e){var t,n="";for(t=Math.abs(e);t>Hv;t=t/Hv|0)n=Bv(t%Hv)+n;return(Bv(t%Hv)+n).replace($v,"$1-$2")}var Wv,Vv=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Uv=function(e){return Vv(5381,e)};function Yv(e){return Gv(Uv(e)>>>0)}function Kv(e){return"string"==typeof e&&!0}var Xv="function"==typeof Symbol&&Symbol.for,Qv=Xv?Symbol.for("react.memo"):60115,Jv=Xv?Symbol.for("react.forward_ref"):60112,Zv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nb=((Wv={})[Jv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wv[Qv]=tb,Wv);function rb(e){return("type"in(t=e)&&t.type.$$typeof)===Qv?tb:"$$typeof"in e?nb[e.$$typeof]:Zv;var t}var ob=Object.defineProperty,ib=Object.getOwnPropertyNames,ab=Object.getOwnPropertySymbols,lb=Object.getOwnPropertyDescriptor,sb=Object.getPrototypeOf,ub=Object.prototype;function cb(e,t,n){if("string"!=typeof t){if(ub){var r=sb(t);r&&r!==ub&&cb(e,r,n)}var o=ib(t);ab&&(o=o.concat(ab(t)));for(var i=rb(e),a=rb(t),l=0;l<o.length;++l){var s=o[l];if(!(s in eb||n&&n[s]||a&&s in a||i&&s in i)){var u=lb(t,s);try{ob(e,s,u)}catch(e){}}}}return e}function db(e){return"function"==typeof e}function pb(e){return"object"==typeof e&&"styledComponentId"in e}function fb(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function hb(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 mb(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function gb(e,t,n){if(void 0===n&&(n=!1),!n&&!mb(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=gb(e[r],t[r]);else if(mb(t))for(var r in t)e[r]=gb(e[r],t[r]);return e}function vb(e,t){Object.defineProperty(e,"toString",{value:t})}function bb(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 yb=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 bb(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(Iv);return t},e}(),xb=new Map,Sb=new Map,Eb=1,wb=function(e){if(xb.has(e))return xb.get(e);for(;Sb.has(Eb);)Eb++;var t=Eb++;return xb.set(e,t),Sb.set(t,e),t},Cb=function(e,t){Eb=t+1,xb.set(e,t),Sb.set(t,e)},Rb="style[".concat(kv,"][").concat(_v,'="').concat(Av,'"]'),kb=new RegExp("^".concat(kv,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Lb=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)},_b=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Iv),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(kb);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Cb(c,u),Lb(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Ab=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(kv,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(kv,Lv),r.setAttribute(_v,Av);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ib=function(){function e(e){this.element=Ab(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 bb(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}(),Pb=function(){function e(e){this.element=Ab(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}(),Mb=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}(),Db=Pv,Ob={isServer:!Pv,useCSSOMInjection:!Mv},Tb=function(){function e(e,t,n){void 0===e&&(e=Tv),void 0===t&&(t={});var r=this;this.options=Rg(Rg({},Ob),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Pv&&Db&&(Db=!1,function(e){for(var t=document.querySelectorAll(Rb),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(kv)!==Lv&&(_b(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),vb(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Sb.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(kv,".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(Iv)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return wb(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Rg(Rg({},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 Mb(n):t?new Ib(n):new Pb(n)}(this.options),new yb(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(wb(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(wb(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wb(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Nb=/&/g,qb=/^\s*\/\/.*$/gm;function Fb(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=Fb(e.children,t)),e}))}var zb=new Tb,jb=function(e){var t,n,r,o=void 0===e?Tv:e,i=o.options,a=void 0===i?Tv:i,l=o.plugins,s=void 0===l?Ov: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===Pg&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Nb,n).replace(r,u))})),a.prefix&&c.push(Cv),c.push(wv);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(qb,""),u=gv(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Fb(u,a.namespace));var d,p=[];return Ev(u,function(e){var t=Vg(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||bb(15),Vv(e,t.name)}),5381).toString():"",d}(),$b=Wo.createContext({shouldForwardProp:void 0,styleSheet:zb,stylis:jb});function Hb(){return Go.useContext($b)}$b.Consumer;var Bb=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=jb);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,vb(this,(function(){throw bb(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=jb),this.name+e.hash},e}(),Gb=function(e){return e>="A"&&e<="Z"};function Wb(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Gb(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Vb=function(e){return null==e||!1===e||""===e},Ub=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Vb(i)&&(Array.isArray(i)&&i.isCss||db(i)?r.push("".concat(Wb(o),":"),i,";"):mb(i)?r.push.apply(r,kg(kg(["".concat(o," {")],Ub(i),!1),["}"],!1)):r.push("".concat(Wb(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Rv||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Yb(e,t,n,r){return Vb(e)?[]:pb(e)?[".".concat(e.styledComponentId)]:db(e)?!db(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Yb(e(t),t,n,r):e instanceof Bb?n?(e.inject(n,r),[e.getName(r)]):[e]:mb(e)?Ub(e):Array.isArray(e)?Array.prototype.concat.apply(Ov,e.map((function(e){return Yb(e,t,n,r)}))):[e.toString()];var o}function Kb(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(db(n)&&!pb(n))return!1}return!0}var Xb=Uv(Av),Qb=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Kb(e),this.componentId=t,this.baseHash=Vv(Xb,t),this.baseStyle=n,Tb.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=fb(r,this.staticRulesId);else{var o=hb(Yb(this.rules,e,t,n)),i=Gv(Vv(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=fb(r,i),this.staticRulesId=i}else{for(var l=Vv(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=hb(Yb(c,e,t,n));l=Vv(l,d+u),s+=d}}if(s){var p=Gv(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=fb(r,p)}}return r},e}(),Jb=Wo.createContext(void 0);Jb.Consumer;var Zb={};new Set;function ey(e,t,n){var r=pb(e),o=e,i=!Kv(e),a=t.attrs,l=void 0===a?Ov:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":jv(e);Zb[n]=(Zb[n]||0)+1;var r="".concat(n,"-").concat(Yv(Av+n+Zb[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Kv(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(jv(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new Qb(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=Wo.useContext(Jb),c=Hb(),d=e.shouldForwardProp||c.shouldForwardProp,p=Nv(t,u,i)||Tv,f=function(e,t,n){for(var r,o=Rg(Rg({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=db(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?fb(o[l],a[l]):"style"===l?Rg(Rg({},o[l]),a[l]):a[l]}return t.className&&(o.className=fb(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var n=Hb();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=fb(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),m[Kv(h)&&!qv.has(h)?"class":"className"]=b,m.ref=n,Go.createElement(h,m)}(y,e,t)}b.displayName=d;var y=Wo.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?fb(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++)gb(e,o[r],!0);return e}({},o.defaultProps,e):e}}),vb(y,(function(){return".".concat(y.styledComponentId)})),i&&cb(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ty(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 ny=function(e){return Object.assign(e,{isCss:!0})};function ry(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(db(e)||mb(e))return ny(Yb(ty(Ov,kg([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Yb(r):ny(Yb(ty(r,t)))}function oy(e,t,n){if(void 0===n&&(n=Tv),!t)throw bb(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ry.apply(void 0,kg([r],o,!1)))};return r.attrs=function(r){return oy(e,t,Rg(Rg({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return oy(e,t,Rg(Rg({},n),r))},r}var iy=function(e){return oy(ey,e)},ay=iy;qv.forEach((function(e){ay[e]=iy(e)}));var ly=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Kb(e),Tb.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(hb(Yb(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&&Tb.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ry.apply(void 0,kg([e],t,!1)),o="sc-global-".concat(Yv(JSON.stringify(r))),i=new ly(r,o),a=function(e){var t=Hb(),n=Wo.useContext(Jb),r=Wo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Dv,n,o);else{var l=Rg(Rg({},t),{theme:Nv(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wo.memo(a)}function uy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=hb(ry.apply(void 0,kg([e],t,!1))),o=Yv(r);return new Bb(o,r)}var cy={exports:{}};function dy(){}function py(){}py.resetWarningCache=dy;cy.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:py,resetWarningCache:dy};return n.PropTypes=n,n}();var fy=n(cy.exports);function hy(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}hy.propTypes={children:fy.node,injectFirst:fy.bool};const my=sy((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 gy=my;
31
31
  /**
32
32
  * @mui/styled-engine-sc v6.0.0-alpha.18
33
33
  *
@@ -35,7 +35,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
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- function gy(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):iy(e),n}hy.propTypes={defaultTheme:py.object,styles:py.oneOfType([py.array,py.string,py.object,py.func])};var vy=Object.freeze({__proto__:null,GlobalStyles:my,StyledEngineProvider:fy,ThemeContext:Qb,css:ny,default:gy,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:sy});function by(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 yy(e){if(!by(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=yy(e[n])})),t}function xy(e,t,n={clone:!0}){const r=n.clone?Eg({},e):e;return by(e)&&by(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(by(t[o])&&o in e&&by(e[o])?r[o]=xy(e[o],t[o],n):n.clone?r[o]=by(t[o])?yy(t[o]):t[o]:r[o]=t[o])})),r}var Sy=Object.freeze({__proto__:null,default:xy,isPlainObject:by});const Ey=["values","unit","step"],wy=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)=>Eg({},e,{[t.key]:t.val})),{})};function Cy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=wg(e,Ey),i=wy(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 Eg({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 Ry={borderRadius:4};function ky(e,t){return t?xy(e,t,{clone:!1}):e}const Ly={xs:0,sm:600,md:900,lg:1200,xl:1536},Ay={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ly[e]}px)`};function _y(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ay;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ay;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Ly).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Py(e){if("string"!=typeof e)throw new Error(yg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Iy=Object.freeze({__proto__:null,default:Py});function My(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 Dy(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:My(e,n)||r,t&&(o=t(o,r,e)),o}function Oy(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=My(e.theme,r)||{};return _y(e,i,(e=>{let r=Dy(a,o,e);return e===r&&"string"==typeof e&&(r=Dy(a,o,`${t}${"default"===e?"":Py(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ty={m:"margin",p:"padding"},Ny={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fy=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qy[e])return[e];e=qy[e]}const[t,n]=e.split(""),r=Ty[t],o=Ny[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),zy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function $y(e,t,n,r){var o;const i=null!=(o=My(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 By(e){return $y(e,"spacing",8)}function Hy(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 Gy(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Hy(t,n),e)),{})}(Fy(n),r);return _y(e,e[n],o)}function Wy(e,t){const n=By(e.theme);return Object.keys(e).map((r=>Gy(e,t,r,n))).reduce(ky,{})}function Vy(e){return Wy(e,zy)}function Uy(e){return Wy(e,jy)}function Yy(...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]?ky(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ky(e){return"number"!=typeof e?e:`${e}px solid`}function Xy(e,t){return Oy({prop:e,themeKey:"borders",transform:t})}Vy.propTypes={},Vy.filterProps=zy,Uy.propTypes={},Uy.filterProps=jy;const Qy=Xy("border",Ky),Jy=Xy("borderTop",Ky),Zy=Xy("borderRight",Ky),ex=Xy("borderBottom",Ky),tx=Xy("borderLeft",Ky),nx=Xy("borderColor"),rx=Xy("borderTopColor"),ox=Xy("borderRightColor"),ix=Xy("borderBottomColor"),ax=Xy("borderLeftColor"),lx=Xy("outline",Ky),sx=Xy("outlineColor"),ux=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$y(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Hy(t,e)});return _y(e,e.borderRadius,n)}return null};ux.propTypes={},ux.filterProps=["borderRadius"],Yy(Qy,Jy,Zy,ex,tx,nx,rx,ox,ix,ax,ux,lx,sx);const cx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$y(e.theme,"spacing",8),n=e=>({gap:Hy(t,e)});return _y(e,e.gap,n)}return null};cx.propTypes={},cx.filterProps=["gap"];const dx=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$y(e.theme,"spacing",8),n=e=>({columnGap:Hy(t,e)});return _y(e,e.columnGap,n)}return null};dx.propTypes={},dx.filterProps=["columnGap"];const px=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$y(e.theme,"spacing",8),n=e=>({rowGap:Hy(t,e)});return _y(e,e.rowGap,n)}return null};px.propTypes={},px.filterProps=["rowGap"];function fx(e,t){return"grey"===t?t:e}Yy(cx,dx,px,Oy({prop:"gridColumn"}),Oy({prop:"gridRow"}),Oy({prop:"gridAutoFlow"}),Oy({prop:"gridAutoColumns"}),Oy({prop:"gridAutoRows"}),Oy({prop:"gridTemplateColumns"}),Oy({prop:"gridTemplateRows"}),Oy({prop:"gridTemplateAreas"}),Oy({prop:"gridArea"}));function hx(e){return e<=1&&0!==e?100*e+"%":e}Yy(Oy({prop:"color",themeKey:"palette",transform:fx}),Oy({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fx}),Oy({prop:"backgroundColor",themeKey:"palette",transform:fx}));const mx=Oy({prop:"width",transform:hx}),gx=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])||Ly[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:hx(t)}};return _y(e,e.maxWidth,t)}return null};gx.filterProps=["maxWidth"];const vx=Oy({prop:"minWidth",transform:hx}),bx=Oy({prop:"height",transform:hx}),yx=Oy({prop:"maxHeight",transform:hx}),xx=Oy({prop:"minHeight",transform:hx});Oy({prop:"size",cssProperty:"width",transform:hx}),Oy({prop:"size",cssProperty:"height",transform:hx});Yy(mx,gx,vx,bx,yx,xx,Oy({prop:"boxSizing"}));var Sx={border:{themeKey:"borders",transform:Ky},borderTop:{themeKey:"borders",transform:Ky},borderRight:{themeKey:"borders",transform:Ky},borderBottom:{themeKey:"borders",transform:Ky},borderLeft:{themeKey:"borders",transform:Ky},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ky},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ux},color:{themeKey:"palette",transform:fx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fx},backgroundColor:{themeKey:"palette",transform:fx},p:{style:Uy},pt:{style:Uy},pr:{style:Uy},pb:{style:Uy},pl:{style:Uy},px:{style:Uy},py:{style:Uy},padding:{style:Uy},paddingTop:{style:Uy},paddingRight:{style:Uy},paddingBottom:{style:Uy},paddingLeft:{style:Uy},paddingX:{style:Uy},paddingY:{style:Uy},paddingInline:{style:Uy},paddingInlineStart:{style:Uy},paddingInlineEnd:{style:Uy},paddingBlock:{style:Uy},paddingBlockStart:{style:Uy},paddingBlockEnd:{style:Uy},m:{style:Vy},mt:{style:Vy},mr:{style:Vy},mb:{style:Vy},ml:{style:Vy},mx:{style:Vy},my:{style:Vy},margin:{style:Vy},marginTop:{style:Vy},marginRight:{style:Vy},marginBottom:{style:Vy},marginLeft:{style:Vy},marginX:{style:Vy},marginY:{style:Vy},marginInline:{style:Vy},marginInlineStart:{style:Vy},marginInlineEnd:{style:Vy},marginBlock:{style:Vy},marginBlockStart:{style:Vy},marginBlockEnd:{style:Vy},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:cx},rowGap:{style:px},columnGap:{style:dx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hx},maxWidth:{style:gx},minWidth:{transform:hx},height:{transform:hx},maxHeight:{transform:hx},minHeight:{transform:hx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ex(){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=My(n,l)||{};if(u)return u(o);return _y(o,t,(t=>{let n=Dy(c,s,t);return t===n&&"string"==typeof t&&(n=Dy(c,s,`${e}${"default"===t?"":Py(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:Sx;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=ky(s,e(n,o,i,a));else{const e=_y({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=ky(s,e):s[n]=t({sx:o,theme:i})}else s=ky(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 wx=Ex();wx.filterProps=["sx"];var Cx=wx;function Rx(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const kx=["breakpoints","palette","spacing","shape"];function Lx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=wg(e,kx),l=Cy(n),s=function(e=8){if(e.mui)return e;const t=By({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=xy({breakpoints:l,direction:"ltr",components:{},palette:Eg({mode:"light"},r),spacing:s,shape:Eg({},Ry,i)},a);return u.applyStyles=Rx,u=t.reduce(((e,t)=>xy(e,t)),u),u.unstable_sxConfig=Eg({},Sx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cx({sx:e,theme:this})},u}var Ax=Object.freeze({__proto__:null,default:Lx,private_createBreakpoints:Cy,unstable_applyStyles:Rx});function _x(e=null){const t=Ho.useContext(Qb);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Px=Lx();function Ix(e=Px){return _x(e)}const Mx=["sx"],Dx=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Sx;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ox(e){const{sx:t}=e,n=wg(e,Mx),{systemProps:r,otherProps:o}=Dx(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return by(n)?Eg({},r,n):r}:Eg({},r,t),Eg({},o,{sx:i})}var Tx=Object.freeze({__proto__:null,default:Cx,extendSxProp:Ox,unstable_createStyleFunctionSx:Ex,unstable_defaultSxConfig:Sx});const Nx=e=>e;var qx=(()=>{let e=Nx;return{configure(t){e=t},generate:t=>e(t),reset(){e=Nx}}})();function Fx(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=Fx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fx(e))&&(r&&(r+=" "),r+=t);return r}const jx=["className","component"];const $x={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 Bx(e,t,n="Mui"){const r=$x[t];return r?`${n}-${r}`:`${qx.generate(e)}-${t}`}function Hx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bx(e,t,n)})),r}var Gx,Wx={exports:{}},Vx={},Ux=Symbol.for("react.element"),Yx=Symbol.for("react.portal"),Kx=Symbol.for("react.fragment"),Xx=Symbol.for("react.strict_mode"),Qx=Symbol.for("react.profiler"),Jx=Symbol.for("react.provider"),Zx=Symbol.for("react.context"),eS=Symbol.for("react.server_context"),tS=Symbol.for("react.forward_ref"),nS=Symbol.for("react.suspense"),rS=Symbol.for("react.suspense_list"),oS=Symbol.for("react.memo"),iS=Symbol.for("react.lazy"),aS=Symbol.for("react.offscreen");function lS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ux:switch(e=e.type){case Kx:case Qx:case Xx:case nS:case rS:return e;default:switch(e=e&&e.$$typeof){case eS:case Zx:case tS:case iS:case oS:case Jx:return e;default:return t}}case Yx:return t}}}Gx=Symbol.for("react.module.reference"),Vx.ContextConsumer=Zx,Vx.ContextProvider=Jx,Vx.Element=Ux,Vx.ForwardRef=tS,Vx.Fragment=Kx,Vx.Lazy=iS,Vx.Memo=oS,Vx.Portal=Yx,Vx.Profiler=Qx,Vx.StrictMode=Xx,Vx.Suspense=nS,Vx.SuspenseList=rS,Vx.isAsyncMode=function(){return!1},Vx.isConcurrentMode=function(){return!1},Vx.isContextConsumer=function(e){return lS(e)===Zx},Vx.isContextProvider=function(e){return lS(e)===Jx},Vx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ux},Vx.isForwardRef=function(e){return lS(e)===tS},Vx.isFragment=function(e){return lS(e)===Kx},Vx.isLazy=function(e){return lS(e)===iS},Vx.isMemo=function(e){return lS(e)===oS},Vx.isPortal=function(e){return lS(e)===Yx},Vx.isProfiler=function(e){return lS(e)===Qx},Vx.isStrictMode=function(e){return lS(e)===Xx},Vx.isSuspense=function(e){return lS(e)===nS},Vx.isSuspenseList=function(e){return lS(e)===rS},Vx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kx||e===Qx||e===Xx||e===nS||e===rS||e===aS||"object"==typeof e&&null!==e&&(e.$$typeof===iS||e.$$typeof===oS||e.$$typeof===Jx||e.$$typeof===Zx||e.$$typeof===tS||e.$$typeof===Gx||void 0!==e.getModuleId)},Vx.typeOf=lS,Wx.exports=Vx;var sS=Wx.exports;const uS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cS(e){const t=`${e}`.match(uS);return t&&t[1]||""}function dS(e,t=""){return e.displayName||e.name||cS(e)||t}function pS(e,t,n){const r=dS(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var fS=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return dS(e,"Component");if("object"==typeof e)switch(e.$$typeof){case sS.ForwardRef:return pS(e,e.render,"ForwardRef");case sS.Memo:return pS(e,e.type,"memo");default:return}}},getFunctionName:cS});function hS(e,t){const n=Eg({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Eg({},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]=Eg({},i),Object.keys(o).forEach((e=>{n[r][e]=hS(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function mS({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ix(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?hS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var gS="undefined"!=typeof window?Ho.useLayoutEffect:Ho.useEffect;function vS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var bS=Object.freeze({__proto__:null,default:vS});function yS(e){if(e.type)return e;if("#"===e.charAt(0))return yS(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let 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(yg(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(yg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function xS(e,t){return e=yS(e),t=function(e,t=0,n=1){return vS(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)}function SS(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ES(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function wS(e){return e&&e.ownerDocument||document}function CS(e){return wS(e).defaultView||window}function RS(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function kS(e){const t=Ho.useRef(e);return gS((()=>{t.current=e})),Ho.useRef(((...e)=>(0,t.current)(...e))).current}function LS(...e){return Ho.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{RS(e,t)}))}),e)}const AS={};const _S=[];let PS=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 IS(){const e=function(e,t){const n=Ho.useRef(AS);return n.current===AS&&(n.current=e(t)),n}(PS.create).current;var t;return t=e.disposeEffect,Ho.useEffect(t,_S),e}let MS=!0,DS=!1;const OS=new PS,TS={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 NS(e){e.metaKey||e.altKey||e.ctrlKey||(MS=!0)}function qS(){MS=!1}function FS(){"hidden"===this.visibilityState&&DS&&(MS=!0)}function zS(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return MS||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!TS[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function jS(){const e=Ho.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",NS,!0),t.addEventListener("mousedown",qS,!0),t.addEventListener("pointerdown",qS,!0),t.addEventListener("touchstart",qS,!0),t.addEventListener("visibilitychange",FS,!0))}),[]),t=Ho.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zS(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(DS=!0,OS.start(100,(()=>{DS=!1})),t.current=!1,!0)},ref:e}}function $S(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function BS(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}var HS=Ho.createContext(null);function GS(){return Ho.useContext(HS)}var WS="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function VS(e){const{children:t,theme:n}=e,r=GS(),o=Ho.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Eg({},e,t)}(r,n);return null!=e&&(e[WS]=null!==r),e}),[n,r]);return bg.jsx(HS.Provider,{value:o,children:t})}const US=["value"],YS=Ho.createContext();function KS(e){let{value:t}=e,n=wg(e,US);return bg.jsx(YS.Provider,Eg({value:null==t||t},n))}const XS={};function QS(e,t,n,r=!1){return Ho.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Eg({},t,{[e]:i}):i;return r?()=>a:a}return Eg({},t,e?{[e]:n}:n)}),[e,t,n,r])}function JS(e){const{children:t,theme:n,themeId:r}=e,o=_x(XS),i=GS()||XS,a=QS(r,o,n),l=QS(r,i,n,!0),s="rtl"===a.direction;return bg.jsx(VS,{theme:l,children:bg.jsx(Qb.Provider,{value:a,children:bg.jsx(KS,{value:s,children:t})})})}var ZS={},eE={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(eE);var tE=eE.exports,nE=r(xg),rE=r(bS),oE=tE;Object.defineProperty(ZS,"__esModule",{value:!0});var iE=ZS.alpha=bE;ZS.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=fE(e),a=fE(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mE({type:"rgb",values:l})},ZS.colorChannel=void 0;var aE=ZS.darken=yE;ZS.decomposeColor=fE,ZS.emphasize=function(e,t=.15){return vE(e)>.5?yE(e,t):xE(e,t)};var lE=ZS.getContrastRatio=function(e,t){const n=vE(e),r=vE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};ZS.getLuminance=vE,ZS.hexToRgb=pE,ZS.hslToRgb=gE;var sE=ZS.lighten=xE;ZS.private_safeAlpha=function(e,t,n){try{return bE(e,t)}catch(t){return e}},ZS.private_safeColorChannel=void 0,ZS.private_safeDarken=function(e,t,n){try{return yE(e,t)}catch(t){return e}},ZS.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},ZS.private_safeLighten=function(e,t,n){try{return xE(e,t)}catch(t){return e}},ZS.recomposeColor=mE,ZS.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=fE(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 uE=oE(nE),cE=oE(rE);function dE(e,t=0,n=1){return(0,cE.default)(e,t,n)}function pE(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 fE(e){if(e.type)return e;if("#"===e.charAt(0))return fE(pE(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,uE.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,uE.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hE=e=>{const t=fE(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};ZS.colorChannel=hE;function mE(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 gE(e){e=fE(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])),mE({type:l,values:s})}function vE(e){let t="hsl"===(e=fE(e)).type||"hsla"===e.type?fE(gE(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 bE(e,t){return e=fE(e),t=dE(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mE(e)}function yE(e,t){if(e=fE(e),t=dE(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 mE(e)}function xE(e,t){if(e=fE(e),t=dE(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 mE(e)}ZS.private_safeColorChannel=(e,t)=>{try{return hE(e)}catch(t){return e}};var SE={black:"#000",white:"#fff"};var EE={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 wE={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 CE={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 RE={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 kE={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 LE={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 AE={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 _E=["mode","contrastThreshold","tonalOffset"],PE={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:SE.white,default:SE.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}},IE={text:{primary:SE.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:SE.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 ME(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=sE(e.main,o):"dark"===t&&(e.dark=aE(e.main,i)))}function DE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=wg(e,_E),i=e.primary||function(e="light"){return"dark"===e?{main:kE[200],light:kE[50],dark:kE[400]}:{main:kE[700],light:kE[400],dark:kE[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wE[200],light:wE[50],dark:wE[400]}:{main:wE[500],light:wE[300],dark:wE[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:CE[500],light:CE[300],dark:CE[700]}:{main:CE[700],light:CE[400],dark:CE[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:LE[400],light:LE[300],dark:LE[700]}:{main:LE[700],light:LE[500],dark:LE[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:AE[400],light:AE[300],dark:AE[700]}:{main:AE[800],light:AE[500],dark:AE[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:RE[400],light:RE[300],dark:RE[700]}:{main:"#ed6c02",light:RE[500],dark:RE[900]}}(t);function d(e){return lE(e,IE.text.primary)>=n?IE.text.primary:PE.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Eg({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(yg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(yg(12,t?` (${t})`:"",JSON.stringify(e.main)));return ME(e,"light",o,r),ME(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:IE,light:PE};return xy(Eg({common:Eg({},SE),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:EE,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const OE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const TE={textTransform:"uppercase"},NE='"Roboto", "Helvetica", "Arial", sans-serif';function qE(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=NE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=wg(n,OE),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Eg({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===NE?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,TE),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,TE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xy(Eg({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function FE(...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 zE=["none",FE(0,2,1,-1,0,1,1,0,0,1,3,0),FE(0,3,1,-2,0,2,2,0,0,1,5,0),FE(0,3,3,-2,0,3,4,0,0,1,8,0),FE(0,2,4,-1,0,4,5,0,0,1,10,0),FE(0,3,5,-1,0,5,8,0,0,1,14,0),FE(0,3,5,-1,0,6,10,0,0,1,18,0),FE(0,4,5,-2,0,7,10,1,0,2,16,1),FE(0,5,5,-3,0,8,10,1,0,3,14,2),FE(0,5,6,-3,0,9,12,1,0,3,16,2),FE(0,6,6,-3,0,10,14,1,0,4,18,3),FE(0,6,7,-4,0,11,15,1,0,4,20,3),FE(0,7,8,-4,0,12,17,2,0,5,22,4),FE(0,7,8,-4,0,13,19,2,0,5,24,4),FE(0,7,9,-4,0,14,21,2,0,5,26,4),FE(0,8,9,-5,0,15,22,2,0,6,28,5),FE(0,8,10,-5,0,16,24,2,0,6,30,5),FE(0,8,11,-5,0,17,26,2,0,6,32,5),FE(0,9,11,-5,0,18,28,2,0,7,34,6),FE(0,9,12,-6,0,19,29,2,0,7,36,6),FE(0,10,13,-6,0,20,31,3,0,8,38,7),FE(0,10,13,-6,0,21,33,3,0,8,40,7),FE(0,10,14,-6,0,22,35,3,0,8,42,7),FE(0,11,14,-7,0,23,36,3,0,9,44,8),FE(0,11,15,-7,0,24,38,3,0,9,46,8)];const jE=["duration","easing","delay"],$E={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)"},BE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function HE(e){return`${Math.round(e)}ms`}function GE(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function WE(e){const t=Eg({},$E,e.easing),n=Eg({},BE,e.duration);return Eg({getAutoHeightDuration:GE,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return wg(r,jE),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:HE(o)} ${i} ${"string"==typeof a?a:HE(a)}`)).join(",")}},e,{easing:t,duration:n})}var VE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const UE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function YE(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=wg(e,UE);if(e.vars)throw new Error(yg(18));const l=DE(r),s=Lx(e);let u=xy(s,{mixins:(c=s.breakpoints,d=n,Eg({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:zE.slice(),typography:qE(l,i),transitions:WE(o),zIndex:Eg({},VE)});var c,d;return u=xy(u,a),u=t.reduce(((e,t)=>xy(e,t)),u),u.unstable_sxConfig=Eg({},Sx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cx({sx:e,theme:this})},u}var KE=YE();function XE(){const e=Ix(KE);return e[Sg]||e}function QE({props:e,name:t}){return mS({props:e,name:t,defaultTheme:KE,themeId:Sg})}var JE,ZE={},ew={exports:{}};var tw,nw={exports:{}};var rw=r(vy),ow=r(Sy),iw=r(Iy),aw=r(fS),lw=r(Ax),sw=r(Tx),uw=tE;Object.defineProperty(ZE,"__esModule",{value:!0});var cw=ZE.default=function(e={}){const{themeId:t,defaultTheme:n=Ew,rootShouldForwardProp:r=Sw,slotShouldForwardProp:o=Sw}=e,i=e=>(0,gw.default)((0,dw.default)({},e,{theme:Cw((0,dw.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,fw.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Rw(ww(s))}=a,p=(0,pw.default)(a,yw),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Sw;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,fw.default)(e,(0,dw.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,hw.isPlainObject)(e)?r=>kw(e,(0,dw.default)({},r,{theme:Cw({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=Cw((0,dw.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]=kw(n,(0,dw.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Cw((0,dw.default)({},e,{defaultTheme:n,themeId:t}));return kw({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,dw.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};ZE.shouldForwardProp=Sw,ZE.systemDefaultTheme=void 0;var dw=uw((JE||(JE=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ew)),ew.exports)),pw=uw((tw||(tw=1,function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(nw)),nw.exports)),fw=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=xw(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}(rw),hw=ow;uw(iw),uw(aw);var mw=uw(lw),gw=uw(sw);const vw=["ownerState"],bw=["variants"],yw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xw(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(xw=function(e){return e?n:t})(e)}function Sw(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ew=ZE.systemDefaultTheme=(0,mw.default)(),ww=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Cw({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Rw(e){return e?(t,n)=>n[e]:null}function kw(e,t){let{ownerState:n}=t,r=(0,pw.default)(t,vw);const o="function"==typeof e?e((0,dw.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>kw(e,(0,dw.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,pw.default)(o,bw);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,dw.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,dw.default)({ownerState:n},r,n)):e.style))})),t}return o}var Lw=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Aw=cw({themeId:Sg,defaultTheme:KE,rootShouldForwardProp:Lw});const _w=["theme"];function Pw(e){let{theme:t}=e,n=wg(e,_w);const r=t[Sg];return bg.jsx(JS,Eg({},n,{themeId:r?Sg:void 0,theme:r||t}))}var Iw=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Mw(e){if(e.type)return e;if("#"===e.charAt(0))return Mw(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 Dw(e,t){return e=Mw(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 Ow(e,t){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ow(e,t)}function Tw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ow(e,t)}const Nw={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"},qw={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",...Nw,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)"},Fw=12,zw=14,jw=16,$w=24,Bw=3,Hw=300,Gw=400,Ww=600,Vw=700,Uw={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dw(qw.GREYSCALE_0,.05),Dw(qw.GREEN_PALE,.5),Dw(qw.BLUE_PALE,.5),Dw(qw.GREEN_PALE,.5),Dw(qw.BLUE_PALE,.5),Dw(qw.GREEN_PALE,.5),Dw(qw.BLUE_PALE,.5);var Yw;function Kw(){return Kw=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},Kw.apply(this,arguments)}Dw(qw.GREEN_PALE,.5),Dw(qw.BLUE_PALE,.5),Dw(qw.GREEN_PALE,.5),Dw(qw.BLUE_PALE,.5);var Xw,Qw=function(e){return Ho.createElement("svg",Kw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Yw||(Yw=Ho.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Jw(){return Jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jw.apply(this,arguments)}var Zw=function(e){return Ho.createElement("svg",Jw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Xw||(Xw=Ho.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 eC({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Go.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 tC=(e={})=>Go.createElement(eC,{...e},Go.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Go.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Go.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"}))),nC=(e={})=>Go.createElement(eC,{...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Go.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),rC=(e={})=>Go.createElement(eC,{fontSize:"medium",...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Go.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),oC=(e={})=>Go.createElement(eC,{fontSize:"medium",...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Go.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"}))),iC=({className:e})=>Go.createElement(eC,{fontSize:"small",className:e},Go.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Go.createElement("g",{transform:"translate(4.324187, 1.300372)"},Go.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"}),Go.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 aC={black:"#000",white:"#fff"};var lC={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 sC={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 uC={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 cC={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 dC={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 pC={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 fC={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 hC(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 mC="$$material";function gC(){return gC=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},gC.apply(this,arguments)}function vC(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}const bC=ly((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 yC=bC;
38
+ function vy(e,t){let n;return n=t?ay(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ay(e),n}my.propTypes={defaultTheme:fy.object,styles:fy.oneOfType([fy.array,fy.string,fy.object,fy.func])};var by=Object.freeze({__proto__:null,GlobalStyles:gy,StyledEngineProvider:hy,ThemeContext:Jb,css:ry,default:vy,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:uy});function yy(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 xy(e){if(!yy(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=xy(e[n])})),t}function Sy(e,t,n={clone:!0}){const r=n.clone?wg({},e):e;return yy(e)&&yy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(yy(t[o])&&o in e&&yy(e[o])?r[o]=Sy(e[o],t[o],n):n.clone?r[o]=yy(t[o])?xy(t[o]):t[o]:r[o]=t[o])})),r}var Ey=Object.freeze({__proto__:null,default:Sy,isPlainObject:yy});const wy=["values","unit","step"],Cy=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)=>wg({},e,{[t.key]:t.val})),{})};function Ry(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Cg(e,wy),i=Cy(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 wg({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 ky={borderRadius:4};function Ly(e,t){return t?Sy(e,t,{clone:!1}):e}const _y={xs:0,sm:600,md:900,lg:1200,xl:1536},Ay={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_y[e]}px)`};function Iy(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ay;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ay;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||_y).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Py(e){if("string"!=typeof e)throw new Error(xg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var My=Object.freeze({__proto__:null,default:Py});function Dy(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 Oy(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Dy(e,n)||r,t&&(o=t(o,r,e)),o}function Ty(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=Dy(e.theme,r)||{};return Iy(e,i,(e=>{let r=Oy(a,o,e);return e===r&&"string"==typeof e&&(r=Oy(a,o,`${t}${"default"===e?"":Py(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ny={m:"margin",p:"padding"},qy={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zy=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Fy[e])return[e];e=Fy[e]}const[t,n]=e.split(""),r=Ny[t],o=qy[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),jy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$y=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Hy(e,t,n,r){var o;const i=null!=(o=Dy(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 By(e){return Hy(e,"spacing",8)}function Gy(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 Wy(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Gy(t,n),e)),{})}(zy(n),r);return Iy(e,e[n],o)}function Vy(e,t){const n=By(e.theme);return Object.keys(e).map((r=>Wy(e,t,r,n))).reduce(Ly,{})}function Uy(e){return Vy(e,jy)}function Yy(e){return Vy(e,$y)}function Ky(...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]?Ly(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xy(e){return"number"!=typeof e?e:`${e}px solid`}function Qy(e,t){return Ty({prop:e,themeKey:"borders",transform:t})}Uy.propTypes={},Uy.filterProps=jy,Yy.propTypes={},Yy.filterProps=$y;const Jy=Qy("border",Xy),Zy=Qy("borderTop",Xy),ex=Qy("borderRight",Xy),tx=Qy("borderBottom",Xy),nx=Qy("borderLeft",Xy),rx=Qy("borderColor"),ox=Qy("borderTopColor"),ix=Qy("borderRightColor"),ax=Qy("borderBottomColor"),lx=Qy("borderLeftColor"),sx=Qy("outline",Xy),ux=Qy("outlineColor"),cx=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Hy(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Gy(t,e)});return Iy(e,e.borderRadius,n)}return null};cx.propTypes={},cx.filterProps=["borderRadius"],Ky(Jy,Zy,ex,tx,nx,rx,ox,ix,ax,lx,cx,sx,ux);const dx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Hy(e.theme,"spacing",8),n=e=>({gap:Gy(t,e)});return Iy(e,e.gap,n)}return null};dx.propTypes={},dx.filterProps=["gap"];const px=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Hy(e.theme,"spacing",8),n=e=>({columnGap:Gy(t,e)});return Iy(e,e.columnGap,n)}return null};px.propTypes={},px.filterProps=["columnGap"];const fx=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Hy(e.theme,"spacing",8),n=e=>({rowGap:Gy(t,e)});return Iy(e,e.rowGap,n)}return null};fx.propTypes={},fx.filterProps=["rowGap"];function hx(e,t){return"grey"===t?t:e}Ky(dx,px,fx,Ty({prop:"gridColumn"}),Ty({prop:"gridRow"}),Ty({prop:"gridAutoFlow"}),Ty({prop:"gridAutoColumns"}),Ty({prop:"gridAutoRows"}),Ty({prop:"gridTemplateColumns"}),Ty({prop:"gridTemplateRows"}),Ty({prop:"gridTemplateAreas"}),Ty({prop:"gridArea"}));function mx(e){return e<=1&&0!==e?100*e+"%":e}Ky(Ty({prop:"color",themeKey:"palette",transform:hx}),Ty({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hx}),Ty({prop:"backgroundColor",themeKey:"palette",transform:hx}));const gx=Ty({prop:"width",transform:mx}),vx=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])||_y[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:mx(t)}};return Iy(e,e.maxWidth,t)}return null};vx.filterProps=["maxWidth"];const bx=Ty({prop:"minWidth",transform:mx}),yx=Ty({prop:"height",transform:mx}),xx=Ty({prop:"maxHeight",transform:mx}),Sx=Ty({prop:"minHeight",transform:mx});Ty({prop:"size",cssProperty:"width",transform:mx}),Ty({prop:"size",cssProperty:"height",transform:mx});Ky(gx,vx,bx,yx,xx,Sx,Ty({prop:"boxSizing"}));var Ex={border:{themeKey:"borders",transform:Xy},borderTop:{themeKey:"borders",transform:Xy},borderRight:{themeKey:"borders",transform:Xy},borderBottom:{themeKey:"borders",transform:Xy},borderLeft:{themeKey:"borders",transform:Xy},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xy},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cx},color:{themeKey:"palette",transform:hx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hx},backgroundColor:{themeKey:"palette",transform:hx},p:{style:Yy},pt:{style:Yy},pr:{style:Yy},pb:{style:Yy},pl:{style:Yy},px:{style:Yy},py:{style:Yy},padding:{style:Yy},paddingTop:{style:Yy},paddingRight:{style:Yy},paddingBottom:{style:Yy},paddingLeft:{style:Yy},paddingX:{style:Yy},paddingY:{style:Yy},paddingInline:{style:Yy},paddingInlineStart:{style:Yy},paddingInlineEnd:{style:Yy},paddingBlock:{style:Yy},paddingBlockStart:{style:Yy},paddingBlockEnd:{style:Yy},m:{style:Uy},mt:{style:Uy},mr:{style:Uy},mb:{style:Uy},ml:{style:Uy},mx:{style:Uy},my:{style:Uy},margin:{style:Uy},marginTop:{style:Uy},marginRight:{style:Uy},marginBottom:{style:Uy},marginLeft:{style:Uy},marginX:{style:Uy},marginY:{style:Uy},marginInline:{style:Uy},marginInlineStart:{style:Uy},marginInlineEnd:{style:Uy},marginBlock:{style:Uy},marginBlockStart:{style:Uy},marginBlockEnd:{style:Uy},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:dx},rowGap:{style:fx},columnGap:{style:px},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mx},maxWidth:{style:vx},minWidth:{transform:mx},height:{transform:mx},maxHeight:{transform:mx},minHeight:{transform:mx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wx(){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=Dy(n,l)||{};if(u)return u(o);return Iy(o,t,(t=>{let n=Oy(c,s,t);return t===n&&"string"==typeof t&&(n=Oy(c,s,`${e}${"default"===t?"":Py(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:Ex;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=Ly(s,e(n,o,i,a));else{const e=Iy({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=Ly(s,e):s[n]=t({sx:o,theme:i})}else s=Ly(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 Cx=wx();Cx.filterProps=["sx"];var Rx=Cx;function kx(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Lx=["breakpoints","palette","spacing","shape"];function _x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Cg(e,Lx),l=Ry(n),s=function(e=8){if(e.mui)return e;const t=By({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=Sy({breakpoints:l,direction:"ltr",components:{},palette:wg({mode:"light"},r),spacing:s,shape:wg({},ky,i)},a);return u.applyStyles=kx,u=t.reduce(((e,t)=>Sy(e,t)),u),u.unstable_sxConfig=wg({},Ex,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rx({sx:e,theme:this})},u}var Ax=Object.freeze({__proto__:null,default:_x,private_createBreakpoints:Ry,unstable_applyStyles:kx});function Ix(e=null){const t=Go.useContext(Jb);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Px=_x();function Mx(e=Px){return Ix(e)}const Dx=["sx"],Ox=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ex;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Tx(e){const{sx:t}=e,n=Cg(e,Dx),{systemProps:r,otherProps:o}=Ox(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return yy(n)?wg({},r,n):r}:wg({},r,t),wg({},o,{sx:i})}var Nx=Object.freeze({__proto__:null,default:Rx,extendSxProp:Tx,unstable_createStyleFunctionSx:wx,unstable_defaultSxConfig:Ex});const qx=e=>e;var Fx=(()=>{let e=qx;return{configure(t){e=t},generate:t=>e(t),reset(){e=qx}}})();function zx(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=zx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zx(e))&&(r&&(r+=" "),r+=t);return r}const $x=["className","component"];const Hx={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 Bx(e,t,n="Mui"){const r=Hx[t];return r?`${n}-${r}`:`${Fx.generate(e)}-${t}`}function Gx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bx(e,t,n)})),r}var Wx,Vx={exports:{}},Ux={},Yx=Symbol.for("react.element"),Kx=Symbol.for("react.portal"),Xx=Symbol.for("react.fragment"),Qx=Symbol.for("react.strict_mode"),Jx=Symbol.for("react.profiler"),Zx=Symbol.for("react.provider"),eS=Symbol.for("react.context"),tS=Symbol.for("react.server_context"),nS=Symbol.for("react.forward_ref"),rS=Symbol.for("react.suspense"),oS=Symbol.for("react.suspense_list"),iS=Symbol.for("react.memo"),aS=Symbol.for("react.lazy"),lS=Symbol.for("react.offscreen");function sS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Yx:switch(e=e.type){case Xx:case Jx:case Qx:case rS:case oS:return e;default:switch(e=e&&e.$$typeof){case tS:case eS:case nS:case aS:case iS:case Zx:return e;default:return t}}case Kx:return t}}}Wx=Symbol.for("react.module.reference"),Ux.ContextConsumer=eS,Ux.ContextProvider=Zx,Ux.Element=Yx,Ux.ForwardRef=nS,Ux.Fragment=Xx,Ux.Lazy=aS,Ux.Memo=iS,Ux.Portal=Kx,Ux.Profiler=Jx,Ux.StrictMode=Qx,Ux.Suspense=rS,Ux.SuspenseList=oS,Ux.isAsyncMode=function(){return!1},Ux.isConcurrentMode=function(){return!1},Ux.isContextConsumer=function(e){return sS(e)===eS},Ux.isContextProvider=function(e){return sS(e)===Zx},Ux.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Yx},Ux.isForwardRef=function(e){return sS(e)===nS},Ux.isFragment=function(e){return sS(e)===Xx},Ux.isLazy=function(e){return sS(e)===aS},Ux.isMemo=function(e){return sS(e)===iS},Ux.isPortal=function(e){return sS(e)===Kx},Ux.isProfiler=function(e){return sS(e)===Jx},Ux.isStrictMode=function(e){return sS(e)===Qx},Ux.isSuspense=function(e){return sS(e)===rS},Ux.isSuspenseList=function(e){return sS(e)===oS},Ux.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Xx||e===Jx||e===Qx||e===rS||e===oS||e===lS||"object"==typeof e&&null!==e&&(e.$$typeof===aS||e.$$typeof===iS||e.$$typeof===Zx||e.$$typeof===eS||e.$$typeof===nS||e.$$typeof===Wx||void 0!==e.getModuleId)},Ux.typeOf=sS,Vx.exports=Ux;var uS=Vx.exports;const cS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function dS(e){const t=`${e}`.match(cS);return t&&t[1]||""}function pS(e,t=""){return e.displayName||e.name||dS(e)||t}function fS(e,t,n){const r=pS(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var hS=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return pS(e,"Component");if("object"==typeof e)switch(e.$$typeof){case uS.ForwardRef:return fS(e,e.render,"ForwardRef");case uS.Memo:return fS(e,e.type,"memo");default:return}}},getFunctionName:dS});function mS(e,t){const n=wg({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=wg({},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]=wg({},i),Object.keys(o).forEach((e=>{n[r][e]=mS(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function gS({props:e,name:t,defaultTheme:n,themeId:r}){let o=Mx(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?mS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var vS="undefined"!=typeof window?Go.useLayoutEffect:Go.useEffect;function bS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var yS=Object.freeze({__proto__:null,default:bS});function xS(e){if(e.type)return e;if("#"===e.charAt(0))return xS(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(xg(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(xg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function SS(e,t){return e=xS(e),t=function(e,t=0,n=1){return bS(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)}function ES(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function wS(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function CS(e){return e&&e.ownerDocument||document}function RS(e){return CS(e).defaultView||window}function kS(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function LS(e){const t=Go.useRef(e);return vS((()=>{t.current=e})),Go.useRef(((...e)=>(0,t.current)(...e))).current}function _S(...e){return Go.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{kS(e,t)}))}),e)}const AS={};const IS=[];let PS=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 MS(){const e=function(e,t){const n=Go.useRef(AS);return n.current===AS&&(n.current=e(t)),n}(PS.create).current;var t;return t=e.disposeEffect,Go.useEffect(t,IS),e}let DS=!0,OS=!1;const TS=new PS,NS={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 qS(e){e.metaKey||e.altKey||e.ctrlKey||(DS=!0)}function FS(){DS=!1}function zS(){"hidden"===this.visibilityState&&OS&&(DS=!0)}function jS(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return DS||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!NS[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function $S(){const e=Go.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",qS,!0),t.addEventListener("mousedown",FS,!0),t.addEventListener("pointerdown",FS,!0),t.addEventListener("touchstart",FS,!0),t.addEventListener("visibilitychange",zS,!0))}),[]),t=Go.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!jS(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(OS=!0,TS.start(100,(()=>{OS=!1})),t.current=!1,!0)},ref:e}}function HS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function BS(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}var GS=Go.createContext(null);function WS(){return Go.useContext(GS)}var VS="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function US(e){const{children:t,theme:n}=e,r=WS(),o=Go.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return wg({},e,t)}(r,n);return null!=e&&(e[VS]=null!==r),e}),[n,r]);return yg.jsx(GS.Provider,{value:o,children:t})}const YS=["value"],KS=Go.createContext();function XS(e){let{value:t}=e,n=Cg(e,YS);return yg.jsx(KS.Provider,wg({value:null==t||t},n))}const QS={};function JS(e,t,n,r=!1){return Go.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?wg({},t,{[e]:i}):i;return r?()=>a:a}return wg({},t,e?{[e]:n}:n)}),[e,t,n,r])}function ZS(e){const{children:t,theme:n,themeId:r}=e,o=Ix(QS),i=WS()||QS,a=JS(r,o,n),l=JS(r,i,n,!0),s="rtl"===a.direction;return yg.jsx(US,{theme:l,children:yg.jsx(Jb.Provider,{value:a,children:yg.jsx(XS,{value:s,children:t})})})}var eE={},tE={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(tE);var nE=tE.exports,rE=r(Sg),oE=r(yS),iE=nE;Object.defineProperty(eE,"__esModule",{value:!0});var aE=eE.alpha=yE;eE.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=hE(e),a=hE(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return gE({type:"rgb",values:l})},eE.colorChannel=void 0;var lE=eE.darken=xE;eE.decomposeColor=hE,eE.emphasize=EE;var sE=eE.getContrastRatio=function(e,t){const n=bE(e),r=bE(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};eE.getLuminance=bE,eE.hexToRgb=fE,eE.hslToRgb=vE;var uE=eE.lighten=SE;eE.private_safeAlpha=function(e,t,n){try{return yE(e,t)}catch(t){return e}},eE.private_safeColorChannel=void 0,eE.private_safeDarken=function(e,t,n){try{return xE(e,t)}catch(t){return e}},eE.private_safeEmphasize=function(e,t,n){try{return EE(e,t)}catch(t){return e}},eE.private_safeLighten=function(e,t,n){try{return SE(e,t)}catch(t){return e}},eE.recomposeColor=gE,eE.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=hE(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 cE=iE(rE),dE=iE(oE);function pE(e,t=0,n=1){return(0,dE.default)(e,t,n)}function fE(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 hE(e){if(e.type)return e;if("#"===e.charAt(0))return hE(fE(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,cE.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,cE.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const mE=e=>{const t=hE(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};eE.colorChannel=mE;function gE(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 vE(e){e=hE(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])),gE({type:l,values:s})}function bE(e){let t="hsl"===(e=hE(e)).type||"hsla"===e.type?hE(vE(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 yE(e,t){return e=hE(e),t=pE(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,gE(e)}function xE(e,t){if(e=hE(e),t=pE(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 gE(e)}function SE(e,t){if(e=hE(e),t=pE(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 gE(e)}function EE(e,t=.15){return bE(e)>.5?xE(e,t):SE(e,t)}eE.private_safeColorChannel=(e,t)=>{try{return mE(e)}catch(t){return e}};var wE={black:"#000",white:"#fff"};var CE={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 RE={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 kE={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 LE={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 _E={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 AE={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 IE={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 PE=["mode","contrastThreshold","tonalOffset"],ME={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:wE.white,default:wE.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}},DE={text:{primary:wE.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:wE.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 OE(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=uE(e.main,o):"dark"===t&&(e.dark=lE(e.main,i)))}function TE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Cg(e,PE),i=e.primary||function(e="light"){return"dark"===e?{main:_E[200],light:_E[50],dark:_E[400]}:{main:_E[700],light:_E[400],dark:_E[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:RE[200],light:RE[50],dark:RE[400]}:{main:RE[500],light:RE[300],dark:RE[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:kE[500],light:kE[300],dark:kE[700]}:{main:kE[700],light:kE[400],dark:kE[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:AE[400],light:AE[300],dark:AE[700]}:{main:AE[700],light:AE[500],dark:AE[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:IE[400],light:IE[300],dark:IE[700]}:{main:IE[800],light:IE[500],dark:IE[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:LE[400],light:LE[300],dark:LE[700]}:{main:"#ed6c02",light:LE[500],dark:LE[900]}}(t);function d(e){return sE(e,DE.text.primary)>=n?DE.text.primary:ME.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=wg({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(xg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(xg(12,t?` (${t})`:"",JSON.stringify(e.main)));return OE(e,"light",o,r),OE(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:DE,light:ME};return Sy(wg({common:wg({},wE),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:CE,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const NE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qE={textTransform:"uppercase"},FE='"Roboto", "Helvetica", "Arial", sans-serif';function zE(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=FE,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Cg(n,NE),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return wg({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===FE?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,qE),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sy(wg({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function jE(...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 $E=["none",jE(0,2,1,-1,0,1,1,0,0,1,3,0),jE(0,3,1,-2,0,2,2,0,0,1,5,0),jE(0,3,3,-2,0,3,4,0,0,1,8,0),jE(0,2,4,-1,0,4,5,0,0,1,10,0),jE(0,3,5,-1,0,5,8,0,0,1,14,0),jE(0,3,5,-1,0,6,10,0,0,1,18,0),jE(0,4,5,-2,0,7,10,1,0,2,16,1),jE(0,5,5,-3,0,8,10,1,0,3,14,2),jE(0,5,6,-3,0,9,12,1,0,3,16,2),jE(0,6,6,-3,0,10,14,1,0,4,18,3),jE(0,6,7,-4,0,11,15,1,0,4,20,3),jE(0,7,8,-4,0,12,17,2,0,5,22,4),jE(0,7,8,-4,0,13,19,2,0,5,24,4),jE(0,7,9,-4,0,14,21,2,0,5,26,4),jE(0,8,9,-5,0,15,22,2,0,6,28,5),jE(0,8,10,-5,0,16,24,2,0,6,30,5),jE(0,8,11,-5,0,17,26,2,0,6,32,5),jE(0,9,11,-5,0,18,28,2,0,7,34,6),jE(0,9,12,-6,0,19,29,2,0,7,36,6),jE(0,10,13,-6,0,20,31,3,0,8,38,7),jE(0,10,13,-6,0,21,33,3,0,8,40,7),jE(0,10,14,-6,0,22,35,3,0,8,42,7),jE(0,11,14,-7,0,23,36,3,0,9,44,8),jE(0,11,15,-7,0,24,38,3,0,9,46,8)];const HE=["duration","easing","delay"],BE={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)"},GE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WE(e){return`${Math.round(e)}ms`}function VE(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function UE(e){const t=wg({},BE,e.easing),n=wg({},GE,e.duration);return wg({getAutoHeightDuration:VE,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Cg(r,HE),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:WE(o)} ${i} ${"string"==typeof a?a:WE(a)}`)).join(",")}},e,{easing:t,duration:n})}var YE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const KE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function XE(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Cg(e,KE);if(e.vars)throw new Error(xg(18));const l=TE(r),s=_x(e);let u=Sy(s,{mixins:(c=s.breakpoints,d=n,wg({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:$E.slice(),typography:zE(l,i),transitions:UE(o),zIndex:wg({},YE)});var c,d;return u=Sy(u,a),u=t.reduce(((e,t)=>Sy(e,t)),u),u.unstable_sxConfig=wg({},Ex,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rx({sx:e,theme:this})},u}var QE=XE();function JE(){const e=Mx(QE);return e[Eg]||e}function ZE({props:e,name:t}){return gS({props:e,name:t,defaultTheme:QE,themeId:Eg})}var ew,tw={},nw={exports:{}};var rw,ow={exports:{}};var iw=r(by),aw=r(Ey),lw=r(My),sw=r(hS),uw=r(Ax),cw=r(Nx),dw=nE;Object.defineProperty(tw,"__esModule",{value:!0});var pw=tw.default=function(e={}){const{themeId:t,defaultTheme:n=Cw,rootShouldForwardProp:r=ww,slotShouldForwardProp:o=ww}=e,i=e=>(0,bw.default)((0,fw.default)({},e,{theme:kw((0,fw.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,mw.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Lw(Rw(s))}=a,p=(0,hw.default)(a,Sw),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=ww;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,mw.default)(e,(0,fw.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,gw.isPlainObject)(e)?r=>_w(e,(0,fw.default)({},r,{theme:kw({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=kw((0,fw.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]=_w(n,(0,fw.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=kw((0,fw.default)({},e,{defaultTheme:n,themeId:t}));return _w({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,fw.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};tw.shouldForwardProp=ww,tw.systemDefaultTheme=void 0;var fw=dw((ew||(ew=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nw)),nw.exports)),hw=dw((rw||(rw=1,function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(ow)),ow.exports)),mw=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Ew(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}(iw),gw=aw;dw(lw),dw(sw);var vw=dw(uw),bw=dw(cw);const yw=["ownerState"],xw=["variants"],Sw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ew(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Ew=function(e){return e?n:t})(e)}function ww(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Cw=tw.systemDefaultTheme=(0,vw.default)(),Rw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function kw({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Lw(e){return e?(t,n)=>n[e]:null}function _w(e,t){let{ownerState:n}=t,r=(0,hw.default)(t,yw);const o="function"==typeof e?e((0,fw.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>_w(e,(0,fw.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,hw.default)(o,xw);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,fw.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,fw.default)({ownerState:n},r,n)):e.style))})),t}return o}var Aw=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var Iw=pw({themeId:Eg,defaultTheme:QE,rootShouldForwardProp:Aw});const Pw=["theme"];function Mw(e){let{theme:t}=e,n=Cg(e,Pw);const r=t[Eg];return yg.jsx(ZS,wg({},n,{themeId:r?Eg:void 0,theme:r||t}))}var Dw=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ow(e){if(e.type)return e;if("#"===e.charAt(0))return Ow(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 Tw(e,t){return e=Ow(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 Nw(e,t){return Nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nw(e,t)}function qw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nw(e,t)}const Fw={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"},zw={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",...Fw,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)"},jw=12,$w=14,Hw=16,Bw=24,Gw=3,Ww=300,Vw=400,Uw=600,Yw=700,Kw={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tw(zw.GREYSCALE_0,.05),Tw(zw.GREEN_PALE,.5),Tw(zw.BLUE_PALE,.5),Tw(zw.GREEN_PALE,.5),Tw(zw.BLUE_PALE,.5),Tw(zw.GREEN_PALE,.5),Tw(zw.BLUE_PALE,.5);var Xw;function Qw(){return Qw=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},Qw.apply(this,arguments)}Tw(zw.GREEN_PALE,.5),Tw(zw.BLUE_PALE,.5),Tw(zw.GREEN_PALE,.5),Tw(zw.BLUE_PALE,.5);var Jw,Zw=function(e){return Go.createElement("svg",Qw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Xw||(Xw=Go.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function eC(){return eC=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},eC.apply(this,arguments)}var tC=function(e){return Go.createElement("svg",eC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Jw||(Jw=Go.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 nC({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wo.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 rC=(e={})=>Wo.createElement(nC,{...e},Wo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wo.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"}))),oC=(e={})=>Wo.createElement(nC,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),iC=(e={})=>Wo.createElement(nC,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),aC=(e={})=>Wo.createElement(nC,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wo.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"}))),lC=({className:e})=>Wo.createElement(nC,{fontSize:"small",className:e},Wo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wo.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"}),Wo.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 sC={black:"#000",white:"#fff"};var uC={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 cC={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 dC={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 pC={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 fC={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 hC={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 mC={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 gC(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 vC="$$material";function bC(){return bC=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},bC.apply(this,arguments)}function yC(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}const xC=sy((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 SC=xC;
39
39
  /**
40
40
  * @mui/styled-engine-sc v6.0.0-alpha.17
41
41
  *
@@ -43,7 +43,7 @@ function gy(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
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
45
  */
46
- function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):iy(e),n}bC.propTypes={defaultTheme:py.object,styles:py.oneOfType([py.array,py.string,py.object,py.func])};const SC=["values","unit","step"],EC=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)=>Eg({},e,{[t.key]:t.val})),{})};var wC={borderRadius:4};function CC(e,t){return t?xy(e,t,{clone:!1}):e}const RC={xs:0,sm:600,md:900,lg:1200,xl:1536},kC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${RC[e]}px)`};function LC(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||kC;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||kC;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||RC).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function AC(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 _C(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:AC(e,n)||r,t&&(o=t(o,r,e)),o}function PC(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=AC(e.theme,r)||{};return LC(e,i,(e=>{let r=_C(a,o,e);return e===r&&"string"==typeof e&&(r=_C(a,o,`${t}${"default"===e?"":Py(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const IC={m:"margin",p:"padding"},MC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},DC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OC=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!DC[e])return[e];e=DC[e]}const[t,n]=e.split(""),r=IC[t],o=MC[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),TC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],NC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function qC(e,t,n,r){var o;const i=null!=(o=AC(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 FC(e){return qC(e,"spacing",8)}function zC(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 jC(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=zC(t,n),e)),{})}(OC(n),r);return LC(e,e[n],o)}function $C(e,t){const n=FC(e.theme);return Object.keys(e).map((r=>jC(e,t,r,n))).reduce(CC,{})}function BC(e){return $C(e,TC)}function HC(e){return $C(e,NC)}function GC(...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]?CC(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function WC(e){return"number"!=typeof e?e:`${e}px solid`}function VC(e,t){return PC({prop:e,themeKey:"borders",transform:t})}BC.propTypes={},BC.filterProps=TC,HC.propTypes={},HC.filterProps=NC;const UC=VC("border",WC),YC=VC("borderTop",WC),KC=VC("borderRight",WC),XC=VC("borderBottom",WC),QC=VC("borderLeft",WC),JC=VC("borderColor"),ZC=VC("borderTopColor"),eR=VC("borderRightColor"),tR=VC("borderBottomColor"),nR=VC("borderLeftColor"),rR=VC("outline",WC),oR=VC("outlineColor"),iR=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=qC(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:zC(t,e)});return LC(e,e.borderRadius,n)}return null};iR.propTypes={},iR.filterProps=["borderRadius"],GC(UC,YC,KC,XC,QC,JC,ZC,eR,tR,nR,iR,rR,oR);const aR=e=>{if(void 0!==e.gap&&null!==e.gap){const t=qC(e.theme,"spacing",8),n=e=>({gap:zC(t,e)});return LC(e,e.gap,n)}return null};aR.propTypes={},aR.filterProps=["gap"];const lR=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=qC(e.theme,"spacing",8),n=e=>({columnGap:zC(t,e)});return LC(e,e.columnGap,n)}return null};lR.propTypes={},lR.filterProps=["columnGap"];const sR=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=qC(e.theme,"spacing",8),n=e=>({rowGap:zC(t,e)});return LC(e,e.rowGap,n)}return null};sR.propTypes={},sR.filterProps=["rowGap"];function uR(e,t){return"grey"===t?t:e}GC(aR,lR,sR,PC({prop:"gridColumn"}),PC({prop:"gridRow"}),PC({prop:"gridAutoFlow"}),PC({prop:"gridAutoColumns"}),PC({prop:"gridAutoRows"}),PC({prop:"gridTemplateColumns"}),PC({prop:"gridTemplateRows"}),PC({prop:"gridTemplateAreas"}),PC({prop:"gridArea"}));function cR(e){return e<=1&&0!==e?100*e+"%":e}GC(PC({prop:"color",themeKey:"palette",transform:uR}),PC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uR}),PC({prop:"backgroundColor",themeKey:"palette",transform:uR}));const dR=PC({prop:"width",transform:cR}),pR=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])||RC[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:cR(t)}};return LC(e,e.maxWidth,t)}return null};pR.filterProps=["maxWidth"];const fR=PC({prop:"minWidth",transform:cR}),hR=PC({prop:"height",transform:cR}),mR=PC({prop:"maxHeight",transform:cR}),gR=PC({prop:"minHeight",transform:cR});PC({prop:"size",cssProperty:"width",transform:cR}),PC({prop:"size",cssProperty:"height",transform:cR});GC(dR,pR,fR,hR,mR,gR,PC({prop:"boxSizing"}));var vR={border:{themeKey:"borders",transform:WC},borderTop:{themeKey:"borders",transform:WC},borderRight:{themeKey:"borders",transform:WC},borderBottom:{themeKey:"borders",transform:WC},borderLeft:{themeKey:"borders",transform:WC},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:WC},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:iR},color:{themeKey:"palette",transform:uR},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uR},backgroundColor:{themeKey:"palette",transform:uR},p:{style:HC},pt:{style:HC},pr:{style:HC},pb:{style:HC},pl:{style:HC},px:{style:HC},py:{style:HC},padding:{style:HC},paddingTop:{style:HC},paddingRight:{style:HC},paddingBottom:{style:HC},paddingLeft:{style:HC},paddingX:{style:HC},paddingY:{style:HC},paddingInline:{style:HC},paddingInlineStart:{style:HC},paddingInlineEnd:{style:HC},paddingBlock:{style:HC},paddingBlockStart:{style:HC},paddingBlockEnd:{style:HC},m:{style:BC},mt:{style:BC},mr:{style:BC},mb:{style:BC},ml:{style:BC},mx:{style:BC},my:{style:BC},margin:{style:BC},marginTop:{style:BC},marginRight:{style:BC},marginBottom:{style:BC},marginLeft:{style:BC},marginX:{style:BC},marginY:{style:BC},marginInline:{style:BC},marginInlineStart:{style:BC},marginInlineEnd:{style:BC},marginBlock:{style:BC},marginBlockStart:{style:BC},marginBlockEnd:{style:BC},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:aR},rowGap:{style:sR},columnGap:{style:lR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cR},maxWidth:{style:pR},minWidth:{transform:cR},height:{transform:cR},maxHeight:{transform:cR},minHeight:{transform:cR},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const bR=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=AC(n,l)||{};if(u)return u(o);return LC(o,t,(t=>{let n=_C(c,s,t);return t===n&&"string"==typeof t&&(n=_C(c,s,`${e}${"default"===t?"":Py(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:vR;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=CC(s,e(n,o,i,a));else{const e=LC({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=CC(s,e):s[n]=t({sx:o,theme:i})}else s=CC(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)}}();bR.filterProps=["sx"];var yR=bR;function xR(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const SR=["breakpoints","palette","spacing","shape"];function ER(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=wg(e,SR),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=wg(e,SC),i=EC(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 Eg({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=FC({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=xy({breakpoints:l,direction:"ltr",components:{},palette:Eg({mode:"light"},r),spacing:s,shape:Eg({},wC,i)},a);return u.applyStyles=xR,u=t.reduce(((e,t)=>xy(e,t)),u),u.unstable_sxConfig=Eg({},vR,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yR({sx:e,theme:this})},u}function wR(e=null){const t=Ho.useContext(Qb);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const CR=ER();function RR(e=CR){return wR(e)}function kR({styles:e,themeId:t,defaultTheme:n={}}){const r=RR(n),o="function"==typeof e?e(t&&r[t]||r):e;return bg.jsx(yC,{styles:o})}const LR=["sx"],AR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:vR;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function _R(e){const{sx:t}=e,n=wg(e,LR),{systemProps:r,otherProps:o}=AR(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return by(n)?Eg({},r,n):r}:Eg({},r,t),Eg({},o,{sx:i})}const PR=["className","component"];const IR=["ownerState"],MR=["variants"],DR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function OR(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const TR=ER(),NR=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function qR({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function FR(e){return e?(t,n)=>n[e]:null}function zR(e,t){let{ownerState:n}=t,r=wg(t,IR);const o="function"==typeof e?e(Eg({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>zR(e,Eg({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=wg(o,MR);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Eg({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(Eg({ownerState:n},r)):e.style))})),t}return o}function jR({props:e,name:t,defaultTheme:n,themeId:r}){let o=RR(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?hS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function $R(e,t=0,n=1){return vS(e,t,n)}function BR(e){if(e.type)return e;if("#"===e.charAt(0))return BR(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(yg(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(yg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function HR(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 GR(e){let t="hsl"===(e=BR(e)).type||"hsla"===e.type?BR(function(e){e=BR(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])),HR({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 WR(e,t){return e=BR(e),t=$R(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,HR(e)}function VR(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 UR(e){if(!VR(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=UR(e[n])})),t}function YR(e,t,n={clone:!0}){const r=n.clone?Eg({},e):e;return VR(e)&&VR(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(VR(t[o])&&o in e&&VR(e[o])?r[o]=YR(e[o],t[o],n):n.clone?r[o]=VR(t[o])?UR(t[o]):t[o]:r[o]=t[o])})),r}function KR(e){if("string"!=typeof e)throw new Error(hC(7));return e.charAt(0).toUpperCase()+e.slice(1)}function XR(e){return e&&e.ownerDocument||document}function QR(e){return XR(e).defaultView||window}var JR="undefined"!=typeof window?Ho.useLayoutEffect:Ho.useEffect;let ZR=0;const ek=Wo["useId".toString()];function tk(e){if(void 0!==ek){const t=ek();return null!=e?e:t}return function(e){const[t,n]=Ho.useState(e),r=e||t;return Ho.useEffect((()=>{null==t&&(ZR+=1,n(`mui-${ZR}`))}),[t]),r}(e)}function nk({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Ho.useRef(void 0!==e),[i,a]=Ho.useState(t);return[o?e:i,Ho.useCallback((e=>{o||a(e)}),[])]}function rk(e){const t=Ho.useRef(e);return JR((()=>{t.current=e})),Ho.useRef(((...e)=>(0,t.current)(...e))).current}function ok(...e){return Ho.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 ik{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ik}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let ak=!0,lk=!1;const sk=new ik,uk={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 ck(e){e.metaKey||e.altKey||e.ctrlKey||(ak=!0)}function dk(){ak=!1}function pk(){"hidden"===this.visibilityState&&lk&&(ak=!0)}function fk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ak||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!uk[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hk(){const e=Ho.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ck,!0),t.addEventListener("mousedown",dk,!0),t.addEventListener("pointerdown",dk,!0),t.addEventListener("touchstart",dk,!0),t.addEventListener("visibilitychange",pk,!0))}),[]),t=Ho.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fk(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(lk=!0,sk.start(100,(()=>{lk=!1})),t.current=!1,!0)},ref:e}}function mk(e,t){const n=Eg({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Eg({},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]=Eg({},i),Object.keys(o).forEach((e=>{n[r][e]=mk(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const gk=e=>e;var vk=(()=>{let e=gk;return{configure(t){e=t},generate:t=>e(t),reset(){e=gk}}})();const bk={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 yk(e,t,n="Mui"){const r=bk[t];return r?`${n}-${r}`:`${vk.generate(e)}-${t}`}function xk(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=yk(e,t,n)})),r}const Sk=["mode","contrastThreshold","tonalOffset"],Ek={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:aC.white,default:aC.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}},wk={text:{primary:aC.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:aC.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 Ck(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=BR(e),t=$R(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 HR(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=BR(e),t=$R(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 HR(e)}(e.main,i)))}function Rk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vC(e,Sk),i=e.primary||function(e="light"){return"dark"===e?{main:uC[200],light:uC[50],dark:uC[400]}:{main:uC[700],light:uC[400],dark:uC[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:sC[200],light:sC[50],dark:sC[400]}:{main:sC[500],light:sC[300],dark:sC[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:lC[500],light:lC[300],dark:lC[700]}:{main:lC[700],light:lC[400],dark:lC[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:cC[400],light:cC[300],dark:cC[700]}:{main:cC[700],light:cC[500],dark:cC[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dC[400],light:dC[300],dark:dC[700]}:{main:dC[800],light:dC[500],dark:dC[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:pC[400],light:pC[300],dark:pC[700]}:{main:"#ed6c02",light:pC[500],dark:pC[900]}}(t);function d(e){const t=function(e,t){const n=GR(e),r=GR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,wk.text.primary)>=n?wk.text.primary:Ek.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gC({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(hC(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(hC(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ck(e,"light",o,r),Ck(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wk,light:Ek};return YR(gC({common:gC({},aC),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:fC,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const kk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Lk={textTransform:"uppercase"},Ak='"Roboto", "Helvetica", "Arial", sans-serif';function _k(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ak,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=vC(n,kk),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return gC({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ak?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Lk),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Lk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return YR(gC({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Pk(...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 Ik=["none",Pk(0,2,1,-1,0,1,1,0,0,1,3,0),Pk(0,3,1,-2,0,2,2,0,0,1,5,0),Pk(0,3,3,-2,0,3,4,0,0,1,8,0),Pk(0,2,4,-1,0,4,5,0,0,1,10,0),Pk(0,3,5,-1,0,5,8,0,0,1,14,0),Pk(0,3,5,-1,0,6,10,0,0,1,18,0),Pk(0,4,5,-2,0,7,10,1,0,2,16,1),Pk(0,5,5,-3,0,8,10,1,0,3,14,2),Pk(0,5,6,-3,0,9,12,1,0,3,16,2),Pk(0,6,6,-3,0,10,14,1,0,4,18,3),Pk(0,6,7,-4,0,11,15,1,0,4,20,3),Pk(0,7,8,-4,0,12,17,2,0,5,22,4),Pk(0,7,8,-4,0,13,19,2,0,5,24,4),Pk(0,7,9,-4,0,14,21,2,0,5,26,4),Pk(0,8,9,-5,0,15,22,2,0,6,28,5),Pk(0,8,10,-5,0,16,24,2,0,6,30,5),Pk(0,8,11,-5,0,17,26,2,0,6,32,5),Pk(0,9,11,-5,0,18,28,2,0,7,34,6),Pk(0,9,12,-6,0,19,29,2,0,7,36,6),Pk(0,10,13,-6,0,20,31,3,0,8,38,7),Pk(0,10,13,-6,0,21,33,3,0,8,40,7),Pk(0,10,14,-6,0,22,35,3,0,8,42,7),Pk(0,11,14,-7,0,23,36,3,0,9,44,8),Pk(0,11,15,-7,0,24,38,3,0,9,46,8)];const Mk=["duration","easing","delay"],Dk={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)"},Ok={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tk(e){return`${Math.round(e)}ms`}function Nk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function qk(e){const t=gC({},Dk,e.easing),n=gC({},Ok,e.duration);return gC({getAutoHeightDuration:Nk,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return vC(r,Mk),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Tk(o)} ${i} ${"string"==typeof a?a:Tk(a)}`)).join(",")}},e,{easing:t,duration:n})}var Fk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function jk(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=vC(e,zk);if(e.vars)throw new Error(hC(18));const l=Rk(r),s=ER(e);let u=YR(s,{mixins:(c=s.breakpoints,d=n,gC({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ik.slice(),typography:_k(l,i),transitions:qk(o),zIndex:gC({},Fk),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=YR(u,a),u=t.reduce(((e,t)=>YR(e,t)),u),u.unstable_sxConfig=gC({},vR,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yR({sx:e,theme:this})},u}var $k=jk();function Bk(){const e=RR($k);return e[mC]||e}function Hk({props:e,name:t}){return jR({props:e,name:t,defaultTheme:$k,themeId:mC})}const Gk=e=>OR(e)&&"classes"!==e,Wk=OR,Vk=function(e={}){const{themeId:t,defaultTheme:n=TR,rootShouldForwardProp:r=OR,slotShouldForwardProp:o=OR}=e,i=e=>yR(Eg({},e,{theme:qR(Eg({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=FR(NR(s))}=a,p=wg(a,DR),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=OR;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=xC(e,Eg({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||by(e)?r=>zR(e,Eg({},r,{theme:qR({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=qR(Eg({},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]=zR(n,Eg({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=qR(Eg({},e,{defaultTheme:n,themeId:t}));return zR({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Eg({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:mC,defaultTheme:$k,rootShouldForwardProp:Gk});var Uk=Vk;var Yk=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Kk(e){return yk("MuiSvgIcon",e)}xk("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xk=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qk=Uk("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${KR(n.color)}`],t[`fontSize${KR(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Jk=Ho.forwardRef((function(e,t){const n=Hk({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=vC(n,Xk),f=Ho.isValidElement(r)&&"svg"===r.type,h=gC({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return BS({root:["root","inherit"!==t&&`color${KR(t)}`,`fontSize${KR(n)}`]},Kk,r)})(h);return bg.jsxs(Qk,gC({as:a,className:zx(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?bg.jsx("title",{children:c}):null]}))}));Jk.muiName="SvgIcon";var Zk=Jk;var eL=!1,tL=Go.createContext(null),nL="unmounted",rL="exited",oL="entering",iL="entered",aL="exiting",lL=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=rL,r.appearStatus=oL):o=iL:o=t.unmountOnExit||t.mountOnEnter?nL:rL,r.state={status:o},r.nextCallback=null,r}Tw(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nL?{status:rL}: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!==oL&&n!==iL&&(t=oL):n!==oL&&n!==iL||(t=aL)}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===oL){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rL&&this.setState({status:nL})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[og.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||eL?this.safeSetState({status:iL},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:oL},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:iL},(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:og.findDOMNode(this);t&&!eL?(this.props.onExit(r),this.safeSetState({status:aL},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rL},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rL},(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:og.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===nL)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=wg(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Go.createElement(tL.Provider,{value:null},"function"==typeof n?n(e,r):Go.cloneElement(Go.Children.only(n),r))},t}(Go.Component);function sL(){}lL.contextType=tL,lL.propTypes={},lL.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sL,onEntering:sL,onEntered:sL,onExit:sL,onExiting:sL,onExited:sL},lL.UNMOUNTED=nL,lL.EXITED=rL,lL.ENTERING=oL,lL.ENTERED=iL,lL.EXITING=aL;var uL=lL;function cL(e,t){var n=Object.create(null);return e&&Ho.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Ho.isValidElement(e)?t(e):e}(e)})),n}function dL(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pL(e,t,n){var r=cL(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(Ho.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Ho.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Ho.isValidElement(u)&&(o[i]=Ho.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:dL(a,"exit",e),enter:dL(a,"enter",e)})):o[i]=Ho.cloneElement(a,{in:!1}):o[i]=Ho.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:dL(a,"exit",e),enter:dL(a,"enter",e)})}})),o}var fL=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},hL=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}Tw(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,cL(n.children,(function(e){return Ho.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:dL(e,"appear",n),enter:dL(e,"enter",n),exit:dL(e,"exit",n)})}))):pL(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=cL(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Eg({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=wg(e,["component","childFactory"]),o=this.state.contextValue,i=fL(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Go.createElement(tL.Provider,{value:o},i):Go.createElement(tL.Provider,{value:o},Go.createElement(t,r,i))},t}(Go.Component);hL.propTypes={},hL.defaultProps={component:"div",childFactory:function(e){return e}};var mL=hL;const gL=e=>e.scrollTop;function vL(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 bL(e){return yk("MuiPaper",e)}xk("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 yL=["className","component","elevation","square","variant"],xL=Uk("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 gC({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&&gC({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${WR("#fff",Yk(t.elevation))}, ${WR("#fff",Yk(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var SL=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=vC(n,yL),u=gC({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},bL,o)})(u);return bg.jsx(xL,gC({as:o,ownerState:u,className:zx(c.root,r),ref:t},s))}));function EL(e){return"string"==typeof e}function wL(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 CL(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 RL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kL(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=wg(e,RL),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=zx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Eg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Eg({},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=wL(Eg({},o,r)),l=CL(r),s=CL(o),u=t(a),c=zx(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=Eg({},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=Eg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Eg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||EL(e)?t:Eg({},t,{ownerState:Eg({},t.ownerState,n)})}(n,Eg({},s,{ref:LS(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var LL=xk("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const AL=["center","classes","className"];let _L,PL,IL,ML,DL=e=>e;const OL=sy(_L||(_L=DL`
46
+ function EC(e,t){let n;return n=t?ay(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ay(e),n}xC.propTypes={defaultTheme:fy.object,styles:fy.oneOfType([fy.array,fy.string,fy.object,fy.func])};const wC=["values","unit","step"],CC=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)=>wg({},e,{[t.key]:t.val})),{})};var RC={borderRadius:4};function kC(e,t){return t?Sy(e,t,{clone:!1}):e}const LC={xs:0,sm:600,md:900,lg:1200,xl:1536},_C={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${LC[e]}px)`};function AC(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||_C;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||_C;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||LC).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function IC(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 PC(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:IC(e,n)||r,t&&(o=t(o,r,e)),o}function MC(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=IC(e.theme,r)||{};return AC(e,i,(e=>{let r=PC(a,o,e);return e===r&&"string"==typeof e&&(r=PC(a,o,`${t}${"default"===e?"":Py(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const DC={m:"margin",p:"padding"},OC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NC=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!TC[e])return[e];e=TC[e]}const[t,n]=e.split(""),r=DC[t],o=OC[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),qC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function zC(e,t,n,r){var o;const i=null!=(o=IC(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 jC(e){return zC(e,"spacing",8)}function $C(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 HC(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=$C(t,n),e)),{})}(NC(n),r);return AC(e,e[n],o)}function BC(e,t){const n=jC(e.theme);return Object.keys(e).map((r=>HC(e,t,r,n))).reduce(kC,{})}function GC(e){return BC(e,qC)}function WC(e){return BC(e,FC)}function VC(...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]?kC(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function UC(e){return"number"!=typeof e?e:`${e}px solid`}function YC(e,t){return MC({prop:e,themeKey:"borders",transform:t})}GC.propTypes={},GC.filterProps=qC,WC.propTypes={},WC.filterProps=FC;const KC=YC("border",UC),XC=YC("borderTop",UC),QC=YC("borderRight",UC),JC=YC("borderBottom",UC),ZC=YC("borderLeft",UC),eR=YC("borderColor"),tR=YC("borderTopColor"),nR=YC("borderRightColor"),rR=YC("borderBottomColor"),oR=YC("borderLeftColor"),iR=YC("outline",UC),aR=YC("outlineColor"),lR=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=zC(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:$C(t,e)});return AC(e,e.borderRadius,n)}return null};lR.propTypes={},lR.filterProps=["borderRadius"],VC(KC,XC,QC,JC,ZC,eR,tR,nR,rR,oR,lR,iR,aR);const sR=e=>{if(void 0!==e.gap&&null!==e.gap){const t=zC(e.theme,"spacing",8),n=e=>({gap:$C(t,e)});return AC(e,e.gap,n)}return null};sR.propTypes={},sR.filterProps=["gap"];const uR=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=zC(e.theme,"spacing",8),n=e=>({columnGap:$C(t,e)});return AC(e,e.columnGap,n)}return null};uR.propTypes={},uR.filterProps=["columnGap"];const cR=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=zC(e.theme,"spacing",8),n=e=>({rowGap:$C(t,e)});return AC(e,e.rowGap,n)}return null};cR.propTypes={},cR.filterProps=["rowGap"];function dR(e,t){return"grey"===t?t:e}VC(sR,uR,cR,MC({prop:"gridColumn"}),MC({prop:"gridRow"}),MC({prop:"gridAutoFlow"}),MC({prop:"gridAutoColumns"}),MC({prop:"gridAutoRows"}),MC({prop:"gridTemplateColumns"}),MC({prop:"gridTemplateRows"}),MC({prop:"gridTemplateAreas"}),MC({prop:"gridArea"}));function pR(e){return e<=1&&0!==e?100*e+"%":e}VC(MC({prop:"color",themeKey:"palette",transform:dR}),MC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dR}),MC({prop:"backgroundColor",themeKey:"palette",transform:dR}));const fR=MC({prop:"width",transform:pR}),hR=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])||LC[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:pR(t)}};return AC(e,e.maxWidth,t)}return null};hR.filterProps=["maxWidth"];const mR=MC({prop:"minWidth",transform:pR}),gR=MC({prop:"height",transform:pR}),vR=MC({prop:"maxHeight",transform:pR}),bR=MC({prop:"minHeight",transform:pR});MC({prop:"size",cssProperty:"width",transform:pR}),MC({prop:"size",cssProperty:"height",transform:pR});VC(fR,hR,mR,gR,vR,bR,MC({prop:"boxSizing"}));var yR={border:{themeKey:"borders",transform:UC},borderTop:{themeKey:"borders",transform:UC},borderRight:{themeKey:"borders",transform:UC},borderBottom:{themeKey:"borders",transform:UC},borderLeft:{themeKey:"borders",transform:UC},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:UC},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lR},color:{themeKey:"palette",transform:dR},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dR},backgroundColor:{themeKey:"palette",transform:dR},p:{style:WC},pt:{style:WC},pr:{style:WC},pb:{style:WC},pl:{style:WC},px:{style:WC},py:{style:WC},padding:{style:WC},paddingTop:{style:WC},paddingRight:{style:WC},paddingBottom:{style:WC},paddingLeft:{style:WC},paddingX:{style:WC},paddingY:{style:WC},paddingInline:{style:WC},paddingInlineStart:{style:WC},paddingInlineEnd:{style:WC},paddingBlock:{style:WC},paddingBlockStart:{style:WC},paddingBlockEnd:{style:WC},m:{style:GC},mt:{style:GC},mr:{style:GC},mb:{style:GC},ml:{style:GC},mx:{style:GC},my:{style:GC},margin:{style:GC},marginTop:{style:GC},marginRight:{style:GC},marginBottom:{style:GC},marginLeft:{style:GC},marginX:{style:GC},marginY:{style:GC},marginInline:{style:GC},marginInlineStart:{style:GC},marginInlineEnd:{style:GC},marginBlock:{style:GC},marginBlockStart:{style:GC},marginBlockEnd:{style:GC},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:sR},rowGap:{style:cR},columnGap:{style:uR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pR},maxWidth:{style:hR},minWidth:{transform:pR},height:{transform:pR},maxHeight:{transform:pR},minHeight:{transform:pR},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const xR=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=IC(n,l)||{};if(u)return u(o);return AC(o,t,(t=>{let n=PC(c,s,t);return t===n&&"string"==typeof t&&(n=PC(c,s,`${e}${"default"===t?"":Py(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:yR;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=kC(s,e(n,o,i,a));else{const e=AC({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=kC(s,e):s[n]=t({sx:o,theme:i})}else s=kC(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)}}();xR.filterProps=["sx"];var SR=xR;function ER(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const wR=["breakpoints","palette","spacing","shape"];function CR(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Cg(e,wR),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Cg(e,wC),i=CC(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 wg({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=jC({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=Sy({breakpoints:l,direction:"ltr",components:{},palette:wg({mode:"light"},r),spacing:s,shape:wg({},RC,i)},a);return u.applyStyles=ER,u=t.reduce(((e,t)=>Sy(e,t)),u),u.unstable_sxConfig=wg({},yR,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return SR({sx:e,theme:this})},u}function RR(e=null){const t=Go.useContext(Jb);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const kR=CR();function LR(e=kR){return RR(e)}function _R({styles:e,themeId:t,defaultTheme:n={}}){const r=LR(n),o="function"==typeof e?e(t&&r[t]||r):e;return yg.jsx(SC,{styles:o})}const AR=["sx"],IR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:yR;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function PR(e){const{sx:t}=e,n=Cg(e,AR),{systemProps:r,otherProps:o}=IR(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return yy(n)?wg({},r,n):r}:wg({},r,t),wg({},o,{sx:i})}const MR=["className","component"];const DR=["ownerState"],OR=["variants"],TR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function NR(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qR=CR(),FR=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zR({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function jR(e){return e?(t,n)=>n[e]:null}function $R(e,t){let{ownerState:n}=t,r=Cg(t,DR);const o="function"==typeof e?e(wg({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$R(e,wg({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Cg(o,OR);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(wg({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(wg({ownerState:n},r)):e.style))})),t}return o}function HR({props:e,name:t,defaultTheme:n,themeId:r}){let o=LR(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?mS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function BR(e,t=0,n=1){return bS(e,t,n)}function GR(e){if(e.type)return e;if("#"===e.charAt(0))return GR(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(xg(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(xg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function WR(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 VR(e){let t="hsl"===(e=GR(e)).type||"hsla"===e.type?GR(function(e){e=GR(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])),WR({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 UR(e,t){return e=GR(e),t=BR(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,WR(e)}function YR(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 KR(e){if(!YR(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=KR(e[n])})),t}function XR(e,t,n={clone:!0}){const r=n.clone?wg({},e):e;return YR(e)&&YR(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(YR(t[o])&&o in e&&YR(e[o])?r[o]=XR(e[o],t[o],n):n.clone?r[o]=YR(t[o])?KR(t[o]):t[o]:r[o]=t[o])})),r}function QR(e){if("string"!=typeof e)throw new Error(gC(7));return e.charAt(0).toUpperCase()+e.slice(1)}function JR(e){return e&&e.ownerDocument||document}function ZR(e){return JR(e).defaultView||window}var ek="undefined"!=typeof window?Go.useLayoutEffect:Go.useEffect;let tk=0;const nk=Vo["useId".toString()];function rk(e){if(void 0!==nk){const t=nk();return null!=e?e:t}return function(e){const[t,n]=Go.useState(e),r=e||t;return Go.useEffect((()=>{null==t&&(tk+=1,n(`mui-${tk}`))}),[t]),r}(e)}function ok({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Go.useRef(void 0!==e),[i,a]=Go.useState(t);return[o?e:i,Go.useCallback((e=>{o||a(e)}),[])]}function ik(e){const t=Go.useRef(e);return ek((()=>{t.current=e})),Go.useRef(((...e)=>(0,t.current)(...e))).current}function ak(...e){return Go.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 lk{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new lk}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let sk=!0,uk=!1;const ck=new lk,dk={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 pk(e){e.metaKey||e.altKey||e.ctrlKey||(sk=!0)}function fk(){sk=!1}function hk(){"hidden"===this.visibilityState&&uk&&(sk=!0)}function mk(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return sk||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!dk[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function gk(){const e=Go.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",pk,!0),t.addEventListener("mousedown",fk,!0),t.addEventListener("pointerdown",fk,!0),t.addEventListener("touchstart",fk,!0),t.addEventListener("visibilitychange",hk,!0))}),[]),t=Go.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!mk(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(uk=!0,ck.start(100,(()=>{uk=!1})),t.current=!1,!0)},ref:e}}function vk(e,t){const n=wg({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=wg({},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]=wg({},i),Object.keys(o).forEach((e=>{n[r][e]=vk(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const bk=e=>e;var yk=(()=>{let e=bk;return{configure(t){e=t},generate:t=>e(t),reset(){e=bk}}})();const xk={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 Sk(e,t,n="Mui"){const r=xk[t];return r?`${n}-${r}`:`${yk.generate(e)}-${t}`}function Ek(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Sk(e,t,n)})),r}const wk=["mode","contrastThreshold","tonalOffset"],Ck={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:sC.white,default:sC.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}},Rk={text:{primary:sC.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:sC.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 kk(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=GR(e),t=BR(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 WR(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=GR(e),t=BR(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 WR(e)}(e.main,i)))}function Lk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=yC(e,wk),i=e.primary||function(e="light"){return"dark"===e?{main:dC[200],light:dC[50],dark:dC[400]}:{main:dC[700],light:dC[400],dark:dC[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:cC[200],light:cC[50],dark:cC[400]}:{main:cC[500],light:cC[300],dark:cC[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:uC[500],light:uC[300],dark:uC[700]}:{main:uC[700],light:uC[400],dark:uC[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:pC[400],light:pC[300],dark:pC[700]}:{main:pC[700],light:pC[500],dark:pC[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:fC[400],light:fC[300],dark:fC[700]}:{main:fC[800],light:fC[500],dark:fC[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:hC[400],light:hC[300],dark:hC[700]}:{main:"#ed6c02",light:hC[500],dark:hC[900]}}(t);function d(e){const t=function(e,t){const n=VR(e),r=VR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Rk.text.primary)>=n?Rk.text.primary:Ck.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=bC({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(gC(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(gC(12,t?` (${t})`:"",JSON.stringify(e.main)));return kk(e,"light",o,r),kk(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Rk,light:Ck};return XR(bC({common:bC({},sC),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:mC,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const _k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ak={textTransform:"uppercase"},Ik='"Roboto", "Helvetica", "Arial", sans-serif';function Pk(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ik,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=yC(n,_k),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return bC({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ik?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Ak),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ak),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return XR(bC({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Mk(...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 Dk=["none",Mk(0,2,1,-1,0,1,1,0,0,1,3,0),Mk(0,3,1,-2,0,2,2,0,0,1,5,0),Mk(0,3,3,-2,0,3,4,0,0,1,8,0),Mk(0,2,4,-1,0,4,5,0,0,1,10,0),Mk(0,3,5,-1,0,5,8,0,0,1,14,0),Mk(0,3,5,-1,0,6,10,0,0,1,18,0),Mk(0,4,5,-2,0,7,10,1,0,2,16,1),Mk(0,5,5,-3,0,8,10,1,0,3,14,2),Mk(0,5,6,-3,0,9,12,1,0,3,16,2),Mk(0,6,6,-3,0,10,14,1,0,4,18,3),Mk(0,6,7,-4,0,11,15,1,0,4,20,3),Mk(0,7,8,-4,0,12,17,2,0,5,22,4),Mk(0,7,8,-4,0,13,19,2,0,5,24,4),Mk(0,7,9,-4,0,14,21,2,0,5,26,4),Mk(0,8,9,-5,0,15,22,2,0,6,28,5),Mk(0,8,10,-5,0,16,24,2,0,6,30,5),Mk(0,8,11,-5,0,17,26,2,0,6,32,5),Mk(0,9,11,-5,0,18,28,2,0,7,34,6),Mk(0,9,12,-6,0,19,29,2,0,7,36,6),Mk(0,10,13,-6,0,20,31,3,0,8,38,7),Mk(0,10,13,-6,0,21,33,3,0,8,40,7),Mk(0,10,14,-6,0,22,35,3,0,8,42,7),Mk(0,11,14,-7,0,23,36,3,0,9,44,8),Mk(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ok=["duration","easing","delay"],Tk={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)"},Nk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qk(e){return`${Math.round(e)}ms`}function Fk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zk(e){const t=bC({},Tk,e.easing),n=bC({},Nk,e.duration);return bC({getAutoHeightDuration:Fk,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return yC(r,Ok),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qk(o)} ${i} ${"string"==typeof a?a:qk(a)}`)).join(",")}},e,{easing:t,duration:n})}var jk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $k=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hk(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=yC(e,$k);if(e.vars)throw new Error(gC(18));const l=Lk(r),s=CR(e);let u=XR(s,{mixins:(c=s.breakpoints,d=n,bC({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Dk.slice(),typography:Pk(l,i),transitions:zk(o),zIndex:bC({},jk),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=XR(u,a),u=t.reduce(((e,t)=>XR(e,t)),u),u.unstable_sxConfig=bC({},yR,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return SR({sx:e,theme:this})},u}var Bk=Hk();function Gk(){const e=LR(Bk);return e[vC]||e}function Wk({props:e,name:t}){return HR({props:e,name:t,defaultTheme:Bk,themeId:vC})}const Vk=e=>NR(e)&&"classes"!==e,Uk=NR,Yk=function(e={}){const{themeId:t,defaultTheme:n=qR,rootShouldForwardProp:r=NR,slotShouldForwardProp:o=NR}=e,i=e=>SR(wg({},e,{theme:zR(wg({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=jR(FR(s))}=a,p=Cg(a,TR),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=NR;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=EC(e,wg({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||yy(e)?r=>$R(e,wg({},r,{theme:zR({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=zR(wg({},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]=$R(n,wg({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=zR(wg({},e,{defaultTheme:n,themeId:t}));return $R({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},wg({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:vC,defaultTheme:Bk,rootShouldForwardProp:Vk});var Kk=Yk;var Xk=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qk(e){return Sk("MuiSvgIcon",e)}Ek("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jk=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Zk=Kk("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${QR(n.color)}`],t[`fontSize${QR(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),eL=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,Jk),f=Go.isValidElement(r)&&"svg"===r.type,h=bC({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return BS({root:["root","inherit"!==t&&`color${QR(t)}`,`fontSize${QR(n)}`]},Qk,r)})(h);return yg.jsxs(Zk,bC({as:a,className:jx(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?yg.jsx("title",{children:c}):null]}))}));eL.muiName="SvgIcon";var tL=eL;var nL=!1,rL=Wo.createContext(null),oL="unmounted",iL="exited",aL="entering",lL="entered",sL="exiting",uL=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=iL,r.appearStatus=aL):o=lL:o=t.unmountOnExit||t.mountOnEnter?oL:iL,r.state={status:o},r.nextCallback=null,r}qw(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oL?{status:iL}: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!==aL&&n!==lL&&(t=aL):n!==aL&&n!==lL||(t=sL)}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===aL){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ig.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iL&&this.setState({status:oL})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ig.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||nL?this.safeSetState({status:lL},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:aL},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:lL},(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:ig.findDOMNode(this);t&&!nL?(this.props.onExit(r),this.safeSetState({status:sL},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:iL},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:iL},(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:ig.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===oL)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=Cg(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Wo.createElement(rL.Provider,{value:null},"function"==typeof n?n(e,r):Wo.cloneElement(Wo.Children.only(n),r))},t}(Wo.Component);function cL(){}uL.contextType=rL,uL.propTypes={},uL.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cL,onEntering:cL,onEntered:cL,onExit:cL,onExiting:cL,onExited:cL},uL.UNMOUNTED=oL,uL.EXITED=iL,uL.ENTERING=aL,uL.ENTERED=lL,uL.EXITING=sL;var dL=uL;function pL(e,t){var n=Object.create(null);return e&&Go.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Go.isValidElement(e)?t(e):e}(e)})),n}function fL(e,t,n){return null!=n[t]?n[t]:e.props[t]}function hL(e,t,n){var r=pL(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(Go.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Go.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Go.isValidElement(u)&&(o[i]=Go.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:fL(a,"exit",e),enter:fL(a,"enter",e)})):o[i]=Go.cloneElement(a,{in:!1}):o[i]=Go.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fL(a,"exit",e),enter:fL(a,"enter",e)})}})),o}var mL=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gL=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}qw(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,pL(n.children,(function(e){return Go.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fL(e,"appear",n),enter:fL(e,"enter",n),exit:fL(e,"exit",n)})}))):hL(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=pL(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=wg({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cg(e,["component","childFactory"]),o=this.state.contextValue,i=mL(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Wo.createElement(rL.Provider,{value:o},i):Wo.createElement(rL.Provider,{value:o},Wo.createElement(t,r,i))},t}(Wo.Component);gL.propTypes={},gL.defaultProps={component:"div",childFactory:function(e){return e}};var vL=gL;const bL=e=>e.scrollTop;function yL(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 xL(e){return Sk("MuiPaper",e)}Ek("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 SL=["className","component","elevation","square","variant"],EL=Kk("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 bC({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&&bC({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${UR("#fff",Xk(t.elevation))}, ${UR("#fff",Xk(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var wL=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=yC(n,SL),u=bC({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},xL,o)})(u);return yg.jsx(EL,bC({as:o,ownerState:u,className:jx(c.root,r),ref:t},s))}));function CL(e){return"string"==typeof e}function RL(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 kL(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const LL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _L(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cg(e,LL),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=jx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=wg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=wg({},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=RL(wg({},o,r)),l=kL(r),s=kL(o),u=t(a),c=jx(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=wg({},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=wg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||CL(e)?t:wg({},t,{ownerState:wg({},t.ownerState,n)})}(n,wg({},s,{ref:_S(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var AL=Ek("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const IL=["center","classes","className"];let PL,ML,DL,OL,TL=e=>e;const NL=uy(PL||(PL=TL`
47
47
  0% {
48
48
  transform: scale(0);
49
49
  opacity: 0.1;
@@ -53,7 +53,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
53
53
  transform: scale(1);
54
54
  opacity: 0.3;
55
55
  }
56
- `)),TL=sy(PL||(PL=DL`
56
+ `)),qL=uy(ML||(ML=TL`
57
57
  0% {
58
58
  opacity: 1;
59
59
  }
@@ -61,7 +61,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
61
61
  100% {
62
62
  opacity: 0;
63
63
  }
64
- `)),NL=sy(IL||(IL=DL`
64
+ `)),FL=uy(DL||(DL=TL`
65
65
  0% {
66
66
  transform: scale(1);
67
67
  }
@@ -73,7 +73,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
73
73
  100% {
74
74
  transform: scale(1);
75
75
  }
76
- `)),qL=Uk("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FL=Uk((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]=Ho.useState(!1),p=zx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=zx(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Ho.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),bg.jsx("span",{className:p,style:f,children:bg.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ML||(ML=DL`
76
+ `)),zL=Kk("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jL=Kk((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]=Go.useState(!1),p=jx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=jx(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Go.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),yg.jsx("span",{className:p,style:f,children:yg.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(OL||(OL=TL`
77
77
  opacity: 0;
78
78
  position: absolute;
79
79
 
@@ -116,7 +116,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
116
116
  animation-iteration-count: infinite;
117
117
  animation-delay: 200ms;
118
118
  }
119
- `),LL.rippleVisible,OL,550,(({theme:e})=>e.transitions.easing.easeInOut),LL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),LL.child,LL.childLeaving,TL,550,(({theme:e})=>e.transitions.easing.easeInOut),LL.childPulsate,NL,(({theme:e})=>e.transitions.easing.easeInOut)),zL=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=vC(n,AL),[l,s]=Ho.useState([]),u=Ho.useRef(0),c=Ho.useRef(null);Ho.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Ho.useRef(!1),p=Ho.useRef(0),f=Ho.useRef(null),h=Ho.useRef(null);Ho.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=Ho.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,bg.jsx(FL,{classes:{ripple:zx(o.ripple,LL.ripple),rippleVisible:zx(o.rippleVisible,LL.rippleVisible),ripplePulsate:zx(o.ripplePulsate,LL.ripplePulsate),child:zx(o.child,LL.child),childLeaving:zx(o.childLeaving,LL.childLeaving),childPulsate:zx(o.childPulsate,LL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Ho.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),v=Ho.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Ho.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 Ho.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),bg.jsx(qL,gC({className:zx(LL.root,o.root,i),ref:h},a,{children:bg.jsx(mL,{component:null,exit:!0,children:l})}))}));var jL=zL;function $L(e){return yk("MuiButtonBase",e)}var BL=xk("MuiButtonBase",["root","disabled","focusVisible"]);const HL=["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"],GL=Uk("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"},[`&.${BL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),WL=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:_,type:P}=n,I=vC(n,HL),M=Ho.useRef(null),D=Ho.useRef(null),O=ok(D,_),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=hk(),[z,j]=Ho.useState(!1);s&&z&&j(!1),Ho.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,B]=Ho.useState(!1);Ho.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function G(e,t,n=c){return rk((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Ho.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=rk((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Ho.useRef(!1),re=rk((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(),h&&h(e))})),oe=rk((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(I.href||I.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===P?"button":P,ae.disabled=s):(I.href||I.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ok(t,F,M),se=gC({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},$L,o);return n&&r&&(i.root+=` ${r}`),i})(se);return bg.jsxs(GL,gC({as:ie,className:zx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:P},ae,I,{children:[i,H?bg.jsx(jL,gC({ref:O,center:o},A)):null]}))}));var VL=WL;function UL(e){return yk("MuiTypography",e)}xk("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],KL=Uk("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${KR(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gC({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}))),XL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},QL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},JL=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiTypography"}),r=(e=>QL[e]||e)(n.color),o=_R(gC({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=XL}=o,f=vC(o,YL),h=gC({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||XL[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return BS({root:["root",i,"inherit"!==e.align&&`align${KR(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},UL,a)})(h);return bg.jsx(KL,gC({as:m,ref:t,ownerState:h,className:zx(g.root,a)},f))}));var ZL=JL;const eA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tA(e){const t=[],n=[];return Array.from(e.querySelectorAll(eA)).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 nA(){return!0}function rA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=tA,isEnabled:a=nA,open:l}=e,s=Ho.useRef(!1),u=Ho.useRef(null),c=Ho.useRef(null),d=Ho.useRef(null),p=Ho.useRef(null),f=Ho.useRef(!1),h=Ho.useRef(null),m=LS(t.ref,h),g=Ho.useRef(null);Ho.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Ho.useEffect((()=>{if(!l||!h.current)return;const e=wS(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Ho.useEffect((()=>{if(!l||!h.current)return;const e=wS(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return bg.jsxs(Ho.Fragment,{children:[bg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Ho.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),bg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const oA=Ho.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Ho.useState(null),l=LS(Ho.isValidElement(n)?n.ref:null,t);if(gS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),gS((()=>{if(i&&!o)return RS(t,i),()=>{RS(t,null)}}),[t,i,o]),o){if(Ho.isValidElement(n)){const e={ref:l};return Ho.cloneElement(n,e)}return bg.jsx(Ho.Fragment,{children:n})}return bg.jsx(Ho.Fragment,{children:i?rg.createPortal(n,i):i})}));function iA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function aA(e){return parseInt(CS(e).getComputedStyle(e).paddingRight,10)||0}function lA(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&&iA(e,o)}))}function sA(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function uA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=wS(e);return t.body===e?CS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=$S(wS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${aA(r)+e}px`;const t=wS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${aA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=wS(r).body;else{const t=r.parentElement,n=CS(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 cA=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&&iA(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);lA(t,e.mount,e.modalRef,r,!0);const o=sA(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=sA(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=uA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=sA(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&&iA(e.modalRef,t),lA(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&&iA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function dA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=cA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Ho.useRef({}),f=Ho.useRef(null),h=Ho.useRef(null),m=LS(h,d),[g,v]=Ho.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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=kS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||wS(f.current).body;o.add(x(),e),h.current&&S()})),w=Ho.useCallback((()=>o.isTopModal(x())),[o]),C=kS((e=>{f.current=e,e&&(c&&w()?S():h.current&&iA(h.current,y))})),R=Ho.useCallback((()=>{o.remove(x(),y)}),[y,o]);Ho.useEffect((()=>()=>{R()}),[R]),Ho.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=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=wL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Eg({},n,t);return Eg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>Eg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:SS((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:SS((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const pA=["onChange","maxRows","minRows","style","value"];function fA(e){return parseInt(e,10)||0}const hA={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function mA(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const gA=Ho.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=wg(e,pA),{current:s}=Ho.useRef(null!=a),u=Ho.useRef(null),c=LS(t,u),d=Ho.useRef(null),p=Ho.useRef(0),[f,h]=Ho.useState({outerHeightStyle:0}),m=Ho.useCallback((()=>{const t=u.current,n=CS(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=fA(n.paddingBottom)+fA(n.paddingTop),s=fA(n.borderBottomWidth)+fA(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=Ho.useCallback((()=>{const e=m();mA(e)||h((t=>g(t,e)))}),[m]);gS((()=>{const e=()=>{p.current=0,(()=>{const e=m();mA(e)||rg.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=ES(e),n=u.current,r=CS(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),gS((()=>{v()})),Ho.useEffect((()=>{p.current=0}),[a]);return bg.jsxs(Ho.Fragment,{children:[bg.jsx("textarea",Eg({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Eg({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),bg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Eg({},hA,i,{paddingTop:0,paddingBottom:0})})]})}));function vA({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 bA=Ho.createContext(void 0);function yA(){return Ho.useContext(bA)}function xA(e){return bg.jsx(kR,gC({},e,{defaultTheme:$k,themeId:mC}))}function SA(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function EA(e,t=!1){return e&&(SA(e.value)&&""!==e.value||t&&SA(e.defaultValue)&&""!==e.defaultValue)}function wA(e){return yk("MuiInputBase",e)}var CA=xk("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const RA=["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"],kA=(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${KR(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},LA=(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]},AA=Uk("div",{name:"MuiInputBase",slot:"Root",overridesResolver:kA})((({theme:e,ownerState:t})=>gC({},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",[`&.${CA.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&gC({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),_A=Uk("input",{name:"MuiInputBase",slot:"Input",overridesResolver:LA})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=gC({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 gC({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] + .${CA.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},[`&.${CA.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"})})),PA=bg.jsx(xA,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),IA=Ho.forwardRef((function(e,t){var n;const r=Hk({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:A,placeholder:_,readOnly:P,renderSuffix:I,rows:M,slotProps:D={},slots:O={},startAdornment:T,type:N="text",value:q}=r,F=vC(r,RA),z=null!=v.value?v.value:q,{current:j}=Ho.useRef(null!=z),$=Ho.useRef(),B=Ho.useCallback((e=>{}),[]),H=ok($,b,v.ref,B),[G,W]=Ho.useState(!1),V=yA(),U=vA({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:G,Ho.useEffect((()=>{!V&&d&&G&&(W(!1),w&&w())}),[V,d,G,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Ho.useCallback((e=>{EA(e)?Y&&Y():K&&K()}),[Y,K]);JR((()=>{j&&X({value:z})}),[z,X,j]);Ho.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=gC(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},J),Q=gA);Ho.useEffect((()=>{V&&V.setAdornedStart(Boolean(T))}),[V,T]);const Z=gC({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:T,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:h}=e;return BS({root:["root",`color${KR(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${KR(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},wA,t)})(Z),te=O.root||s.Root||AA,ne=D.root||u.root||{},re=O.input||s.Input||_A;return J=gC({},J,null!=(n=D.input)?n:u.input),bg.jsxs(Ho.Fragment,{children:[!p&&PA,bg.jsxs(te,gC({},ne,!EL(te)&&{ownerState:gC({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:zx(ee.root,ne.className,l,P&&"MuiInputBase-readOnly"),children:[T,bg.jsx(bA.Provider,{value:null,children:bg.jsx(re,gC({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:_,readOnly:P,required:U.required,rows:M,value:z,onKeyDown:L,onKeyUp:A,type:N},J,!EL(re)&&{as:Q,ownerState:gC({},Z,J.ownerState)},{ref:H,className:zx(ee.input,J.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(hC(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):W(!0))}}))}),f,I?I(gC({},U,{startAdornment:T})):null]}))]})}));var MA=IA;function DA(e){return yk("MuiInput",e)}var OA=gC({},CA,xk("MuiInput",["root","underline","input"]));function TA(e){return yk("MuiOutlinedInput",e)}var NA=gC({},CA,xk("MuiOutlinedInput",["root","notchedOutline","input"]));function qA(e){return yk("MuiFilledInput",e)}var FA=gC({},CA,xk("MuiFilledInput",["root","underline","input"])),zA=function(e,t){function n(n,r){return bg.jsx(Zk,gC({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Zk.muiName,Ho.memo(Ho.forwardRef(n))}(bg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const jA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$A={entering:{opacity:1},entered:{opacity:1}},BA=Ho.forwardRef((function(e,t){const n=Bk(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=uL}=e,b=vC(e,jA),y=Ho.useRef(null),x=ok(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{gL(e);const r=vL({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(h),k=S((e=>{const t=vL({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return bg.jsx(v,gC({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Ho.cloneElement(a,gC({style:gC({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},$A[e],m,a.props.style),ref:x},t))}))}));var HA=BA;function GA(e){return yk("MuiBackdrop",e)}xk("MuiBackdrop",["root","invisible"]);const WA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],VA=Uk("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>gC({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"}))),UA=Ho.forwardRef((function(e,t){var n,r,o;const i=Hk({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=HA,transitionDuration:g}=i,v=vC(i,WA),b=gC({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},GA,t)})(b),x=null!=(n=f.root)?n:c.root;return bg.jsx(m,gC({in:p,timeout:g},v,{children:bg.jsx(VA,gC({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:zx(y.root,l,null==x?void 0:x.className),ownerState:gC({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var YA=UA;var KA=xk("MuiBox",["root"]);const XA=jk(),QA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xC("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yR);return Ho.forwardRef((function(e,a){const l=RR(n),s=_R(e),{className:u,component:c="div"}=s,d=wg(s,PR);return bg.jsx(i,Eg({as:c,ref:a,className:zx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:mC,defaultTheme:XA,defaultClassName:KA.root,generateClassName:vk.generate});var JA=QA;function ZA(e){return yk("MuiButton",e)}var e_=xk("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 t_=Ho.createContext({});var n_=Ho.createContext(void 0);const r_=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],o_=e=>gC({},"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}}),i_=Uk(VL,{shouldForwardProp:e=>Gk(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${KR(n.color)}`],t[`size${KR(n.size)}`],t[`${n.variant}Size${KR(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 gC({},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":gC({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:WR(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})`:WR(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})`:WR(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":gC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${e_.focusVisible}`]:gC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${e_.disabled}`]:gC({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 ${WR(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"},[`&.${e_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${e_.disabled}`]:{boxShadow:"none"}})),a_=Uk("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${KR(n.size)}`]]}})((({ownerState:e})=>gC({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},o_(e)))),l_=Uk("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${KR(n.size)}`]]}})((({ownerState:e})=>gC({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},o_(e)))),s_=Ho.forwardRef((function(e,t){const n=Ho.useContext(t_),r=Ho.useContext(n_),o=Hk({props:mk(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=vC(o,r_),x=gC({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gC({},a,BS({root:["root",i,`${i}${KR(t)}`,`size${KR(o)}`,`${i}Size${KR(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${KR(o)}`],endIcon:["endIcon",`iconSize${KR(o)}`]},ZA,a))})(x),E=g&&bg.jsx(a_,{className:S.startIcon,ownerState:x,children:g}),w=p&&bg.jsx(l_,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return bg.jsxs(i_,gC({ownerState:x,className:zx(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:zx(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,w]}))}));var u_=s_;function c_(e){return yk("MuiModal",e)}xk("MuiModal",["root","hidden","backdrop"]);const d_=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],p_=Uk("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})=>gC({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),f_=Uk(YA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),h_=Ho.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Hk({name:"MuiModal",props:e}),{BackdropComponent:u=f_,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:A,slots:_}=s,P=vC(s,d_),I=gC({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=dA(gC({},I,{rootRef:t})),z=gC({},I,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},c_,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:p_,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==A?void 0:A.root)?a:v.root,W=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,V=kL({elementType:B,externalSlotProps:G,externalForwardedProps:P,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:zx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=kL({elementType:H,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(gC({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:zx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?bg.jsx(oA,{ref:T,container:h,disablePortal:S,children:bg.jsxs(B,gC({},V,{children:[!C&&u?bg.jsx(H,gC({},U)):null,bg.jsx(rA,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Ho.cloneElement(f,$)})]}))}):null}));var m_=h_;function g_(e){return yk("MuiDivider",e)}var v_=xk("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const b_=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],y_=Uk("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})=>gC({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)`:WR(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})=>gC({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>gC({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>gC({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>gC({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),x_=Uk("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>gC({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)`}))),S_=Ho.forwardRef((function(e,t){const n=Hk({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=vC(n,b_),h=gC({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return BS({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"]},g_,r)})(h);return bg.jsx(y_,gC({as:a,className:zx(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?bg.jsx(x_,{className:m.wrapper,ownerState:h,children:o}):null}))}));S_.muiSkipListHighlight=!0;var E_=S_;const w_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],C_=Uk(AA,{shouldForwardProp:e=>Gk(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kA(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 gC({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}},[`&.${FA.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${FA.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"},[`&.${FA.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${FA.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(.${FA.disabled}, .${FA.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${FA.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&gC({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}))})),R_=Uk(_A,{name:"MuiFilledInput",slot:"Input",overridesResolver:LA})((({theme:e,ownerState:t})=>gC({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}))),k_=Ho.forwardRef((function(e,t){var n,r,o,i;const a=Hk({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=vC(a,w_),g=gC({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return gC({},t,BS({root:["root",!n&&"underline"],input:["input"]},qA,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?YR(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:C_,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:R_;return bg.jsx(MA,gC({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));k_.muiName="Input";var L_=k_;const A_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function __(e){return`scale(${e}, ${e**2})`}const P_={entering:{opacity:1,transform:__(1)},entered:{opacity:1,transform:"none"}},I_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),M_=Ho.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=uL}=e,g=vC(e,A_),v=Ho.useRef(),b=Ho.useRef(),y=Bk(),x=Ho.useRef(null),S=ok(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{gL(e);const{duration:n,delay:r,easing:o}=vL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:I_?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=vL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:I_?o:.666*o,delay:I_?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=__(.75),c&&c(e)})),A=E(d);return Ho.useEffect((()=>()=>{clearTimeout(v.current)}),[]),bg.jsx(m,gC({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:A,onExiting:k,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Ho.cloneElement(o,gC({style:gC({opacity:0,transform:__(.75),visibility:"exited"!==e||a?void 0:"hidden"},P_[e],f,o.props.style),ref:S},t))}))}));M_.muiSupportAuto=!0;var D_=M_;const O_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],T_=Uk(AA,{shouldForwardProp:e=>Gk(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kA(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})`),gC({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"},[`&.${OA.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${OA.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(.${OA.disabled}, .${OA.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${OA.disabled}:before`]:{borderBottomStyle:"dotted"}})})),N_=Uk(_A,{name:"MuiInput",slot:"Input",overridesResolver:LA})({}),q_=Ho.forwardRef((function(e,t){var n,r,o,i;const a=Hk({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=vC(a,O_),v=(e=>{const{classes:t,disableUnderline:n}=e;return gC({},t,BS({root:["root",!n&&"underline"],input:["input"]},DA,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?YR(null!=f?f:u,b):b,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:T_,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:N_;return bg.jsx(MA,gC({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));q_.muiName="Input";var F_=q_;function z_(e){return yk("MuiLink",e)}var j_=xk("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const $_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var B_=({theme:e,ownerState:t})=>{const n=(e=>$_[e]||e)(t.color),r=AC(e,`palette.${n}`,!1)||t.color,o=AC(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:WR(r,.4)};const H_=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],G_=Uk(ZL,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${KR(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>gC({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&gC({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:B_({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"},[`&.${j_.focusVisible}`]:{outline:"auto"}}))),W_=Ho.forwardRef((function(e,t){const n=Hk({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=vC(n,H_),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=hk(),[v,b]=Ho.useState(!1),y=ok(t,g),x=gC({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return BS({root:["root",`underline${KR(o)}`,"button"===n&&"button",r&&"focusVisible"]},z_,t)})(x);return bg.jsx(G_,gC({color:o,className:zx(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys($_).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var V_=W_;var U_=Ho.createContext({});function Y_(e){return yk("MuiList",e)}xk("MuiList",["root","padding","dense","subheader"]);const K_=["children","className","component","dense","disablePadding","subheader"],X_=Uk("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})=>gC({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Q_=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=vC(n,K_),c=Ho.useMemo((()=>({dense:a})),[a]),d=gC({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Y_,t)})(d);return bg.jsx(U_.Provider,{value:c,children:bg.jsxs(X_,gC({as:i,className:zx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function J_(e){return yk("MuiListItemIcon",e)}var Z_=xk("MuiListItemIcon",["root","alignItemsFlexStart"]);const eP=["className"],tP=Uk("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})=>gC({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var nP=Ho.forwardRef((function(e,t){const n=Hk({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vC(n,eP),i=gC({},n,{alignItems:Ho.useContext(U_).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return BS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},J_,n)})(i);return bg.jsx(tP,gC({className:zx(a.root,r),ownerState:i,ref:t},o))}));var rP=xk("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const oP=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function iP(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function aP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lP(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 sP(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")&&lP(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var uP=Ho.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=vC(e,oP),p=Ho.useRef(null),f=Ho.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});JR((()=>{r&&p.current.focus()}),[r]),Ho.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)}(XR(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=ok(p,t);let m=-1;Ho.Children.forEach(i,((e,t)=>{Ho.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=Ho.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Ho.cloneElement(e,t)}return e}));return bg.jsx(Q_,gC({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=XR(t).activeElement;if("ArrowDown"===n)e.preventDefault(),sP(t,r,s,l,iP);else if("ArrowUp"===n)e.preventDefault(),sP(t,r,s,l,aP);else if("Home"===n)e.preventDefault(),sP(t,null,s,l,iP);else if("End"===n)e.preventDefault(),sP(t,null,s,l,aP);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&&lP(r,o);o.previousKeyMatched&&(s||sP(t,r,!1,l,iP,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function cP(e){return yk("MuiPopover",e)}xk("MuiPopover",["root","paper"]);const dP=["onEntering"],pP=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fP=["slotProps"];function hP(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function mP(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function gP(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function vP(e){return"function"==typeof e?e():e}const bP=Uk(m_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yP=Uk(SL,{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 xP=Ho.forwardRef((function(e,t){var n,r,o;const i=Hk({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=D_,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=vC(i.TransitionProps,dP),k=vC(i,pP),L=null!=(n=null==y?void 0:y.paper)?n:v,A=Ho.useRef(),_=ok(A,L.ref),P=gC({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),I=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},cP,t)})(P),M=Ho.useCallback((()=>{if("anchorPosition"===c)return u;const e=vP(l),t=(e&&1===e.nodeType?e:XR(A.current).body).getBoundingClientRect();return{top:t.top+hP(t,s.vertical),left:t.left+mP(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Ho.useCallback((e=>({vertical:hP(e,x.vertical),horizontal:mP(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Ho.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:gP(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=QR(vP(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:gP(n)}}),[l,c,M,D,m]),[T,N]=Ho.useState(g),q=Ho.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Ho.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Ho.useEffect((()=>{g&&q()})),Ho.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Ho.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=QR(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?XR(vP(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:bP,$=null!=(o=null==b?void 0:b.paper)?o:yP,B=kL({elementType:$,externalSlotProps:gC({},L,{style:T?L.style:gC({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:P,className:zx(I.paper,null==L?void 0:L.className)}),H=kL({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:zx(I.root,p)}),{slotProps:G}=H,W=vC(H,fP);return bg.jsx(j,gC({},W,!EL(j)&&{slotProps:G,disableScrollLock:C},{children:bg.jsx(S,gC({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:bg.jsx($,gC({},B,{children:d}))}))}))}));function SP(e){return yk("MuiMenu",e)}xk("MuiMenu",["root","paper","list"]);const EP=["onEntering"],wP=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],CP={vertical:"top",horizontal:"right"},RP={vertical:"top",horizontal:"left"},kP=Uk(xP,{shouldForwardProp:e=>Gk(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LP=Uk(yP,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),AP=Uk(uP,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var _P=Ho.forwardRef((function(e,t){var n,r;const o=Hk({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=vC(o.TransitionProps,EP),x=vC(o,wP),S=Bk(),E="rtl"===S.direction,w=gC({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},SP,t)})(w),R=i&&!s&&d,k=Ho.useRef(null);let L=-1;Ho.Children.map(a,((e,t)=>{Ho.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const A=null!=(n=v.paper)?n:LP,_=null!=(r=b.paper)?r:p,P=kL({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),I=kL({elementType:A,externalSlotProps:_,ownerState:w,className:C.paper});return bg.jsx(kP,gC({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?CP:RP,slots:{paper:A,root:v.root},slotProps:{root:P,paper:I},open:d,ref:t,transitionDuration:h,TransitionProps:gC({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:bg.jsx(AP,gC({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:zx(C.list,u.className),children:a}))}))}));function PP(e){return yk("MuiMenuItem",e)}var IP=xk("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const MP=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],DP=Uk(VL,{shouldForwardProp:e=>Gk(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})=>gC({},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"}},[`&.${IP.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WR(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${IP.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WR(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${IP.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WR(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})`:WR(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${IP.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${IP.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v_.inset}`]:{marginLeft:52},[`& .${rP.root}`]:{marginTop:0,marginBottom:0},[`& .${rP.inset}`]:{paddingLeft:36},[`& .${Z_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gC({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Z_.root} svg`]:{fontSize:"1.25rem"}}))));var OP=Ho.forwardRef((function(e,t){const n=Hk({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=vC(n,MP),f=Ho.useContext(U_),h=Ho.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Ho.useRef(null);JR((()=>{r&&m.current&&m.current.focus()}),[r]);const g=gC({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return gC({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},PP,a))})(n),b=ok(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),bg.jsx(U_.Provider,{value:h,children:bg.jsx(DP,gC({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:zx(v.focusVisible,s),className:zx(v.root,d)},p,{ownerState:g,classes:v}))})}));function TP(e){return yk("MuiNativeSelect",e)}var NP=xk("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const qP=["className","disabled","error","IconComponent","inputRef","variant"],FP=({ownerState:e,theme:t})=>gC({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":gC({},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"},[`&.${NP.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}}),zP=Uk("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Gk,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${NP.multiple}`]:t.multiple}]}})(FP),jP=({ownerState:e,theme:t})=>gC({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${NP.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),$P=Uk("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${KR(n.variant)}`],n.open&&t.iconOpen]}})(jP),BP=Ho.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=vC(e,qP),u=gC({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${KR(n)}`,i&&"iconOpen",r&&"disabled"]},TP,t)})(u);return bg.jsxs(Ho.Fragment,{children:[bg.jsx(zP,gC({ownerState:u,className:zx(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:bg.jsx($P,{as:i,ownerState:u,className:c.icon})]})}));var HP,GP=BP;const WP=["children","classes","className","label","notched"],VP=Uk("fieldset",{shouldForwardProp:Gk})({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%"}),UP=Uk("legend",{shouldForwardProp:Gk})((({ownerState:e,theme:t})=>gC({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&&gC({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 YP=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],KP=Uk(AA,{shouldForwardProp:e=>Gk(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:kA})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return gC({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${NA.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${NA.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${NA.focused} .${NA.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${NA.error} .${NA.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${NA.disabled} .${NA.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&gC({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),XP=Uk((function(e){const{className:t,label:n,notched:r}=e,o=vC(e,WP),i=null!=n&&""!==n,a=gC({},e,{notched:r,withLabel:i});return bg.jsx(VP,gC({"aria-hidden":!0,className:t,ownerState:a},o,{children:bg.jsx(UP,{ownerState:a,children:i?bg.jsx("span",{children:n}):HP||(HP=bg.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}})),QP=Uk(_A,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:LA})((({theme:e,ownerState:t})=>gC({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}))),JP=Ho.forwardRef((function(e,t){var n,r,o,i,a;const l=Hk({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=vC(l,YP),v=(e=>{const{classes:t}=e;return gC({},t,BS({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},TA,t))})(l),b=yA(),y=vA({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=gC({},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:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:KP,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:QP;return bg.jsx(MA,gC({slots:{root:S,input:E},renderSuffix:e=>bg.jsx(XP,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=bg.jsxs(Ho.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:gC({},v,{notchedOutline:null})}))}));JP.muiName="Input";var ZP=JP;function eI(e){return yk("MuiSelect",e)}var tI,nI=xk("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const rI=["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"],oI=Uk("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nI.select}`]:t.select},{[`&.${nI.select}`]:t[n.variant]},{[`&.${nI.error}`]:t.error},{[`&.${nI.multiple}`]:t.multiple}]}})(FP,{[`&.${nI.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iI=Uk("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${KR(n.variant)}`],n.open&&t.iconOpen]}})(jP),aI=Uk("input",{shouldForwardProp:e=>Wk(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 lI(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function sI(e){return null==e||"string"==typeof e&&!e.trim()}const uI=Ho.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:L,SelectDisplayProps:A={},tabIndex:_,value:P,variant:I="standard"}=e,M=vC(e,rI),[D,O]=nk({controlled:P,default:c,name:"Select"}),[T,N]=nk({controlled:R,default:u,name:"Select"}),q=Ho.useRef(null),F=Ho.useRef(null),[z,j]=Ho.useState(null),{current:$}=Ho.useRef(null!=R),[B,H]=Ho.useState(),G=ok(t,m),W=Ho.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Ho.useImperativeHandle(G,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Ho.useEffect((()=>{u&&T&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Ho.useEffect((()=>{i&&F.current.focus()}),[i]),Ho.useEffect((()=>{if(!g)return;const e=XR(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?C&&C(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Ho.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&&(O(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&&T;let Q,J;delete M["aria-invalid"];const Z=[];let ee=!1;(EA({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!Ho.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(hC(2));t=D.some((t=>lI(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=lI(D,e.props.value),t&&ee&&(J=e.props.children);return Ho.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!==_?_:d?null:0;const oe=A.id||(y?`mui-component-select-${y}`:void 0),ie=gC({},e,{variant:I,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${KR(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},eI,t)})(ie),le=gC({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=tk();return bg.jsxs(Ho.Fragment,{children:[bg.jsx(oI,gC({ref:W,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(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?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:w},A,{ownerState:ie,className:zx(A.className,ae.select,s),id:oe,children:sI(Q)?tI||(tI=bg.jsx("span",{className:"notranslate",children:"​"})):Q})),bg.jsx(aI,gC({"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&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},M)),bg.jsx(iI,{as:h,className:ae.icon,ownerState:ie}),bg.jsx(_P,gC({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:gC({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:gC({},v.slotProps,{paper:gC({},le,{style:gC({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var cI=uI;const dI=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],pI=["root"],fI={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Gk(e)&&"variant"!==e,slot:"Root"},hI=Uk(F_,fI)(""),mI=Uk(ZP,fI)(""),gI=Uk(L_,fI)(""),vI=Ho.forwardRef((function(e,t){const n=Hk({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=zA,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=vC(n,dI),R=v?GP:cI,k=vA({props:n,muiFormControl:yA(),states:["variant","error"]}),L=k.variant||w,A=gC({},n,{variant:L,classes:i}),_=(e=>{const{classes:t}=e;return t})(A),P=vC(_,pI),I=d||{standard:bg.jsx(hI,{ownerState:A}),outlined:bg.jsx(mI,{label:f,ownerState:A}),filled:bg.jsx(gI,{ownerState:A})}[L],M=ok(t,I.ref);return bg.jsx(Ho.Fragment,{children:Ho.cloneElement(I,gC({inputComponent:R,inputProps:gC({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:gC({id:c},E)},p,{classes:p?YR(P,p.classes):P},d?d.props.inputProps:{})},g&&v&&"outlined"===L?{notched:!0}:{},{ref:M,className:zx(I.props.className,a,_.root)},!d&&{variant:L},C))})}));vI.muiName="Select";var bI=vI,yI=(e={})=>Go.createElement(eC,{...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("rect",{stroke:qw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const xI={MuiAccordion:{styleOverrides:{root:{backgroundColor:qw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Go.createElement(Qw,{"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 ${qw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qw.MISC_FOCUS_BORDER}`,borderRadius:Bw,backgroundColor:qw.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 ${qw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qw.WHITE,color:qw.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:Bw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qw.GREYSCALE_0_15,backgroundColor:qw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qw.GREEN_PALE},"&:active":{backgroundColor:qw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qw.GREEN_PALE,boxShadow:`0 0 0 3px ${WR(qw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qw.BLUE_PALE},"&:active":{backgroundColor:qw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qw.BLUE_PALE,boxShadow:`0 0 0 3px ${WR(qw.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:Bw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qw.GREYSCALE_0_15,backgroundColor:qw.GREYSCALE_100_60,"&:active":{backgroundColor:qw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qw.PURPLE,"&.Mui-focusVisible":{borderColor:qw.PURPLE,boxShadow:`0 0 0 3px ${WR(qw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qw.GREEN,"&.Mui-focusVisible":{borderColor:qw.GREEN,boxShadow:`0 0 0 3px ${WR(qw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qw.BLUE,"&.Mui-focusVisible":{borderColor:qw.BLUE,boxShadow:`0 0 0 3px ${WR(qw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qw.ORANGE,"&.Mui-focusVisible":{borderColor:qw.ORANGE,boxShadow:`0 0 0 3px ${WR(qw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qw.RED,"&.Mui-focusVisible":{borderColor:qw.RED,boxShadow:`0 0 0 3px ${WR(qw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qw.PURPLE_PALE},"&:active":{backgroundColor:qw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qw.PURPLE_PALE,boxShadow:`0 0 0 3px ${WR(qw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qw.GREEN_PALE},"&:active":{backgroundColor:qw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qw.GREEN_PALE,boxShadow:`0 0 0 3px ${WR(qw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qw.BLUE_PALE},"&:active":{backgroundColor:qw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qw.BLUE_PALE,boxShadow:`0 0 0 3px ${WR(qw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qw.ORANGE_PALE},"&:active":{backgroundColor:qw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qw.ORANGE_PALE,boxShadow:`0 0 0 3px ${WR(qw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qw.RED_PALE},"&:active":{backgroundColor:qw.RED_DARK},"&.Mui-focusVisible":{borderColor:qw.RED_PALE,boxShadow:`0 0 0 3px ${WR(qw.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:qw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Bw,boxShadow:`inset 0 0 0 2px ${qw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Go.createElement(Zw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Fw,borderRadius:Bw,color:qw.TEXT_PRIMARY,backgroundColor:qw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:qw.GREYSCALE_0_05,color:qw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qw.GREEN,borderColor:qw.GREEN},"&.MuiChip-outlinedInfo":{color:qw.BLUE,borderColor:qw.BLUE},"&.MuiChip-outlinedWarning":{color:qw.ORANGE,borderColor:qw.ORANGE},"&.MuiChip-outlinedError":{color:qw.RED,borderColor:qw.RED}},outlined:{border:`solid 1px ${qw.GREYSCALE_0_15}`,backgroundColor:qw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Bw,boxShadow:"none",backgroundColor:qw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qw.GREEN,borderColor:qw.GREEN},outlinedSecondary:{color:qw.BLUE,borderColor:qw.BLUE},label:{fontFamily:Uw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Go.createElement(Zw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Go.createElement(Qw,{"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:Bw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Bw,fontSize:zw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qw.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Bw,border:`solid 1px ${qw.GREYSCALE_0_15}`,color:qw.GREYSCALE_0_60,marginRight:0,width:$w,height:$w},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Bw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:zw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Fw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qw.GREYSCALE_25,fontSize:Fw,fontFamily:Uw.FONT_FAMILY,fontWeight:Ww,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qw.TEXT_PRIMARY},"&.Mui-error":{color:qw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Gw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Gw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:zw,lineHeight:"16px",backgroundColor:qw.WHITE,borderRadius:Bw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qw.GREYSCALE_0_05}`,borderColor:qw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qw.RED}`,boxShadow:`0px 0px 0px 1px ${qw.RED}, inset 0 2px 0 0 ${qw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qw.GREYSCALE_0_10}`,borderColor:qw.GREYSCALE_0_10,backgroundColor:qw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qw.GREYSCALE_0_15,borderRadius:Bw,boxShadow:`inset 0 2px 0 0 ${qw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Go.createElement(Qw,{...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:qw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qw.GREYSCALE_0_03},"&:active":{backgroundColor:qw.GREYSCALE_0_10},"&:focus":{backgroundColor:qw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qw.GREYSCALE_0_30,"&:hover":{backgroundColor:qw.GREYSCALE_0_0,borderColor:qw.GREYSCALE_0_15},"& ~svg":{color:qw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Bw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:zw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Fw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Fw,fontWeight:Ww,color:qw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ww}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qw.GREYSCALE_0_15}, 0px 0px 0px 1px ${qw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Go.createElement(rC,null),checkedIcon:Go.createElement(oC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qw.GREEN_PALE,boxShadow:`0 0 0 3px ${WR(qw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qw.BLUE_PALE,boxShadow:`0 0 0 3px ${WR(qw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Go.createElement(yI,null),checkedIcon:Go.createElement(tC,null),indeterminateIcon:Go.createElement(nC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Bw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qw.GREYSCALE_0_55,color:qw.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:qw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qw.GREYSCALE_0_55,"&:hover":{color:qw.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:qw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:zw,color:qw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ww},secondary:{fontSize:Fw,color:qw.GREYSCALE_45,fontWeight:Gw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:zw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:qw.GREYSCALE_0_03},"&:active":{backgroundColor:qw.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:zw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Fw,borderBottom:`solid 1px ${qw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:zw,color:qw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qw.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:qw.RED}}},"&.Mui-focusVisible":{backgroundColor:qw.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:qw.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:qw.GREEN,height:"24px","&.Mui-disabled":{color:qw.GREYSCALE_0_15}},rail:{backgroundColor:qw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qw.GREYSCALE_0_05}`,borderRadius:Bw,boxShadow:`inset 0px 0px 0px 1px ${qw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qw.GREYSCALE_0_05}`,borderRadius:Bw},thumb:{height:"16px",width:"16px",borderRadius:Bw,backgroundColor:qw.WHITE,boxShadow:`0px 1px 2px 0px ${qw.GREYSCALE_0_15}, 0px 0px 0px 1px ${qw.GREYSCALE_0_05}`,"&:hover":{borderRadius:Bw,boxShadow:`0 2px 4px 0 ${qw.GREYSCALE_0_30}, 0 0 0 1px ${qw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qw.GREYSCALE_0_15}, 0 0 0 1px ${qw.GREYSCALE_0_06}, 0 0 0 2px ${qw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qw.GREYSCALE_0_15}, 0 0 0 1px ${qw.GREYSCALE_0_06}, 0 0 0 2px ${qw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qw.GREYSCALE_0_15},markLabel:{color:qw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qw.WHITE,color:qw.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:qw.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:qw.GREEN_PALE,boxShadow:`0 0 0 3px ${WR(qw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qw.BLUE_PALE,boxShadow:`0 0 0 3px ${WR(qw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qw.GREYSCALE_0_15,borderRadius:Bw},thumb:{height:"16px",width:"16px",borderRadius:Bw,backgroundColor:qw.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:zw,fontWeight:Ww,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qw.MISC_FOCUS_BORDER}`,backgroundColor:qw.GREYSCALE_0_03,borderRadius:Bw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qw.GREYSCALE_25,"&.Mui-selected":{color:qw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:zw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${qw.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${qw.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qw.GREYSCALE_85}`,borderRight:`1px solid ${qw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ww,backgroundColor:qw.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:qw.GREYSCALE_98,borderBottom:`1px solid ${qw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qw.GREYSCALE_85}`,borderTop:`1px solid ${qw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qw.GREYSCALE_0_05,"&:hover":{backgroundColor:qw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Go.createElement(iC,{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 ${qw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:zw,borderRadius:Bw,padding:"7px 16px",border:`1px solid ${qw.GREYSCALE_0_15}`,backgroundColor:qw.GREYSCALE_100_60,color:qw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qw.GREYSCALE_0_10,border:`1px solid ${qw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qw.GREYSCALE_0_03,border:`1px solid ${qw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qw.MISC_FOCUS_BORDER}`,border:`1px solid ${qw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qw.GREYSCALE_25,backgroundColor:qw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qw.GREYSCALE_0_10,border:`1px solid ${qw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Fw,height:24,width:24,padding:7},sizeLarge:{fontSize:jw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:zw,borderRadius:Bw}}},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:qw.GREYSCALE_20},tooltip:{backgroundColor:qw.GREYSCALE_20,fontSize:Fw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const SI={mode:"light",primary:{light:qw.GREEN_PALE,main:qw.GREEN,dark:qw.GREEN_DARK,contrastText:qw.WHITE},secondary:{light:qw.BLUE_PALE,main:qw.BLUE,dark:qw.BLUE_DARK,contrastText:qw.WHITE},error:{light:qw.RED_PALE,main:qw.RED,dark:qw.RED_DARK,contrastText:qw.WHITE},warning:{light:qw.ORANGE_PALE,main:qw.ORANGE,dark:qw.ORANGE_DARK,contrastText:qw.WHITE},success:{light:qw.GREEN_PALE,main:qw.GREEN,dark:qw.GREEN_DARK,contrastText:qw.WHITE},info:{light:qw.BLUE_PALE,main:qw.BLUE,dark:qw.BLUE_DARK,contrastText:qw.WHITE},text:{primary:qw.TEXT_PRIMARY,secondary:qw.TEXT_SECONDARY,disabled:qw.GREYSCALE_0_30},action:{hover:qw.GREYSCALE_0_03,hoverOpacity:.05,selected:qw.GREYSCALE_0_05,focus:qw.MISC_FOCUS_BORDER},amethyst:{main:qw.PURPLE,light:qw.PURPLE_PALE,dark:qw.PURPLE_DARK,contrastText:qw.WHITE},background:{paper:qw.WHITE,default:qw.GREYSCALE_95},divider:qw.GREYSCALE_0_15},EI=e=>({components:xI,palette:SI,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:zw,fontWeightLight:Hw,fontWeightRegular:Gw,fontWeightMedium:Ww,fontWeightBold:Vw,htmlFontSize:zw,fontFamily:Uw.FONT_FAMILY,button:{fontWeight:Ww,fontSize:zw,textTransform:"none"},body1:{fontSize:jw,lineHeight:"24px"},body2:{fontSize:zw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:$w,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jw,fontWeight:Ww,lineHeight:"16px"},h6:{fontSize:zw,fontWeight:Ww,lineHeight:"16px"},caption:{color:qw.TEXT_SECONDARY},subtitle1:{fontSize:zw,color:qw.TEXT_SECONDARY},subtitle2:{fontSize:Fw,color:qw.TEXT_SECONDARY}},shape:{borderRadius:Bw}}),wI={...Nw,MISC_FOCUS_BORDER:qw.MISC_FOCUS_BORDER},CI=EI().palette,RI={TEXT:CI.text.primary,DISABLED:CI.text.disabled,HOVER:CI.action.hover,WHITE:wI.GREYSCALE_100,BORDER_LIGHT:wI.GREYSCALE_90,BORDER_MEDIUM:wI.GREYSCALE_85,BORDER_HEAVY:wI.GREYSCALE_50,DARK_MODE_TEXT:wI.GREYSCALE_95,DARK_MODE_BORDER:wI.GREYSCALE_95,DARK_MODE_DISABLED:wI.GREYSCALE_70,DARK_MODE_BACKGROUND:wI.GREYSCALE_20},kI=(e,t)=>{const n=Hn(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()},LI=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,AI=e=>{const t=(e=>{const t=LI.exec(e);if(t){const[,e,n,r,o]=t;return mn(+n,+r,+o,+e/255)}return mn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},_I=e=>{e.stopPropagation(),e.preventDefault()},PI=Uk(JA,{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)":{[`& .${$e}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${$e}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),II=Uk(JA)({position:"absolute",height:"100%",width:"3px"}),MI=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Ho.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Be.PixelsMin:Be.PixelsMinTable,f=n?0:1,h={left:r&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:He.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;m(t)},b=e=>{_I(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=e.touches[0].clientX-d.initX;m(t)},x=e=>{_I(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===ze.LEFT||e.key===ze.RIGHT){_I(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===ze.LEFT?t-n:t+n;m(r)}else e.key===ze.SPACE||e.key===ze.ENTER?(_I(e),s(e),g()):e.key===ze.ESC&&(_I(e),s(e),m(d.initWidth))}:void 0;return Go.createElement(PI,{className:je,isLastColumn:n,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:He.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":je},Go.createElement(II,{className:$e}))};function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OI=(e,t)=>Go.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){DI(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),Go.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),TI=Ho.forwardRef(OI);function NI(){return NI=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},NI.apply(this,arguments)}const qI=Uk(JA,{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"}))),FI=Uk(TI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),zI=Uk(_P)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),jI=Uk(E_)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),$I=Uk(OP)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),BI=Uk(OP,{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")}))),HI=Uk("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"}))),GI=Uk("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),WI=Uk(ZL)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),VI=Uk(nP)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function UI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YI=(e,t)=>Go.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){UI(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),Go.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),KI=Ho.forwardRef(YI);let XI={};const QI=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Ho.useState(!1),p=Ho.useRef(null),f=Ho.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Go.createElement(Go.Fragment,null,Go.createElement(BI,{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),XI={}),null!=a&&a.length&&(d(!0),XI[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Go.createElement(HI,null),Go.createElement(GI,null,Go.createElement(VI,null,Go.createElement(o,null)),Go.createElement(WI,{variant:"body2"},r)),null!=a&&a.length?Go.createElement(KI,null):null),(null==a?void 0:a.length)&&Go.createElement(ZI,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=XI,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},JI=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Go.createElement($I,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Go.createElement(QI,NI({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),ZI=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Go.createElement(zI,NI({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[JI({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Go.createElement(jI,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,eM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},tM=(e,t)=>e.some((e=>t[e]>0));function nM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rM=(e,t)=>Go.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){nM(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),Go.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"})),oM=Ho.forwardRef(rM);function iM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aM=(e,t)=>Go.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){iM(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),Go.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"})),lM=Ho.forwardRef(aM);function sM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uM=(e,t)=>Go.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){sM(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),Go.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"})),cM=Ho.forwardRef(uM);function dM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pM=(e,t)=>Go.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){dM(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),Go.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"})),fM=Ho.forwardRef(pM);function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mM=(e,t)=>Go.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){hM(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),Go.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"})),gM=Ho.forwardRef(mM);function vM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bM=(e,t)=>Go.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){vM(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),Go.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"})),yM=Ho.forwardRef(bM);function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SM=(e,t)=>Go.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){xM(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),Go.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"})),EM=Ho.forwardRef(SM);function wM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CM=(e,t)=>Go.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){wM(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),Go.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"})),RM=Ho.forwardRef(CM);function kM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LM=(e,t)=>Go.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){kM(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),Go.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"})),AM=Ho.forwardRef(LM);function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PM=(e,t)=>Go.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){_M(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),Go.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"})),IM=Ho.forwardRef(PM);let MM=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const DM=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[MM.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:oM,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:fM,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[MM.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:gM,enabled:!0}]}]),n[MM.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:IM,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:yM,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:AM,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:EM,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:RM,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:lM,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[MM.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:cM,enabled:!0}]}]),p},OM=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=sg({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Ho.useState(null),[o,i]=Ho.useState(eM);return Ho.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Ho.useCallback((()=>i(eM)),[]),updateSelectionActionsEnabledStatus:Ho.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:tM(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:tM(["qSelected"],n.qStateCounts),canSelectPossible:tM(["qOption"],n.qStateCounts),canSelectAlternative:tM(["qAlternative"],n.qStateCounts),canSelectExcluded:tM(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Ho.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]);Ho.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 w=Ho.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Go.createElement(qI,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&Go.createElement(FI,{height:qe,className:Fe,"data-testid":Fe,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Go.createElement(TI,null)),Go.createElement(ZI,{open:e,anchorEl:n.current,onClose:w,menuGroups:DM({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},TM=e=>e.isDark?{background:e.color,borderColor:RI.DARK_MODE_BORDER,color:RI.DARK_MODE_TEXT,disabledColor:RI.DARK_MODE_DISABLED,iconColor:RI.DARK_MODE_TEXT}:{background:e.color,borderColor:RI.BORDER_MEDIUM,color:RI.TEXT,disabledColor:RI.DISABLED},NM=Uk(JA,{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}`}))),qM=Uk(bI,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),FM=Uk(u_,{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)}))),zM=Uk(ZL)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),jM=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Ho.useMemo((()=>TM(r.background)),[r]);if(!n.active)return null;const a=o?Go.createElement(NM,{footerStyle:i},e):null;return t?og.createPortal(e,t):a},$M={},BM=Ho.createContext($M),HM=()=>Ho.useContext(BM),GM=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=Ho.useMemo((()=>TM(p.background)),[p]),b=o?o.getBoundingClientRect().width:h.width,y=sg({translator:d}),x=Ho.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:h,layout:m,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,v,g,b]);return Go.createElement(BM.Provider,{value:x},e)};let WM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),VM=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 UM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YM=(e,t)=>Go.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){UM(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),Go.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),KM=Ho.forwardRef(YM);function XM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QM=(e,t)=>Go.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){XM(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),Go.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),JM=Ho.forwardRef(QM);function ZM(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)=>Go.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){ZM(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),Go.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),tD=Ho.forwardRef(eD),nD={FirstPage:JM,PreviousPage:KM,NextPage:KI,LastPage:tD,FirstPageRTL:tD,PreviousPageRTL:KI,NextPageRTL:KM,LastPageRTL:JM},rD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=HM(),u=nD[`${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}},oD=()=>{const{pageInfo:e,width:t}=HM(),n=0===e.page,{IconComponent:r,styledProps:o}=rD({type:WM.FirstPage,disabledCondition:n,pageNumber:0});return t<=VM.FirstPage?null:Go.createElement(FM,o,Go.createElement(r,{height:qe}))},iD=(e,t,n=!1)=>{n&&e.key===ze.TAB&&!e.shiftKey&&(_I(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))},aD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=HM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=rD({type:WM.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>iD(e,t,r):null;return o<=VM.LastPage?null:Go.createElement(FM,NI({},l,{onKeyDown:s}),Go.createElement(a,{height:qe}))},lD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=HM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=rD({type:WM.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>VM.FirstPage&&o>VM.LastPage)&&t.enabled?e=>iD(e,t,r):null;return Go.createElement(FM,NI({},l,{onKeyDown:s}),Go.createElement(a,{height:qe}))},sD=()=>{const{pageInfo:e}=HM(),t=0===e.page,{IconComponent:n,styledProps:r}=rD({type:WM.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Go.createElement(FM,r,Go.createElement(n,{height:qe}))},uD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=HM(),{page:o,rowsPerPage:i}=n;if(t<=VM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Go.createElement(zM,{variant:"caption"},a)},cD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=HM(),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 Go.createElement(Go.Fragment,null,Go.createElement(zM,{variant:"caption",id:d},u,":"),Go.createElement(qM,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},dD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=HM();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>VM.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Go.createElement(Go.Fragment,null,t.rowsPerPageOptions.map((e=>Go.createElement("option",{key:e,value:e},e))));return Go.createElement(cD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},pD=1e3,fD="…",hD=({totalPages:e,page:t})=>{const n=Math.min(e,pD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-pD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Go.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Go.createElement("option",{key:"startMoreOptions",value:fD,disabled:!0},fD)),o<e-1&&a.push(Go.createElement("option",{key:"endMoreOptions",value:fD,disabled:!0},fD)),Go.createElement(Go.Fragment,null,a)},mD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=HM(),{page:o}=e;if(t<=VM.SelectPage)return null;const i=Go.createElement(hD,{totalPages:n,page:o});return Go.createElement(cD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},gD=e=>Go.createElement(GM,e,Go.createElement(dD,null),Go.createElement(mD,null),Go.createElement(uD,null),Go.createElement(oD,null),Go.createElement(sD,null),Go.createElement(lD,null),Go.createElement(aD,null));var vD=Ho.memo(gD);const bD=e=>Go.createElement(jM,e,Go.createElement(vD,e)),yD={},xD=Ho.createContext(yD),SD=()=>Ho.useContext(xD),ED=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=Ho.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return bg.jsx(xD.Provider,{value:s,children:e})},wD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=SD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:pt;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:bg.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:bg.jsx("span",{style:{...wt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},CD={},RD=Ho.createContext(CD),kD=()=>Ho.useContext(RD),LD=({children:e,styleService:t})=>bg.jsx(RD.Provider,{value:t,children:e}),AD=21,_D=20,PD=_D,ID=16+vt+1,MD=.75;let DD=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),OD=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const TD=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===DD.Image},ND="/qHyperCubeDef",qD=-1,FD="PSEUDO-DIM",zD=e=>void 0===e?ft:e,jD=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,$D=e=>jD(e,Be.PixelsDefault),BD=(e,t)=>jD(e,Be.PercentageDefault)*t/100,HD=(e,t,n)=>{switch(null==t?void 0:t.type){case He.Pixels:return $D(t.pixels);case He.Percentage:return BD(t.percentage,e);case He.FitToContent:case He.Auto:default:return n}};function GD({layoutService:e,tableWidth:t,headersData:n}){const r=kD(),{measureText:o}=Ko(r.header),{estimateWidth:i}=Ko({...r.dimensionValues,fontWeight:zD(r.dimensionValues.fontWeight)}),{measureText:a}=Ko({...r.dimensionValues,...r.measureLabels}),l=Ho.useCallback(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+ID;return Math.max(n,HD(t,o,Math.max(i,e)))}),0),h=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===FD)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?PD:0;return ID+o(t)+_D+r})(r);return Math.max(i,t)}),0);let m=0,g=n.data.at(-1);p&&n.size.x>1&&g&&g[0]&&(g=g[0]);const v=g.map(((n,o)=>{let a=ID;if(r&&void 0!==l&&l===n.colIdx)a=r;else{let r;n.columnWidthLocation===Qe.Pivot?r=u:n.columnWidthLocation===Qe.Dimension&&({columnWidth:r}=n);let l=0;n.isLeftDimension?l=n.id===FD?f():Math.max(h(o),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(TD(l))return Be.PixelsDefault;const u=!d&&o&&n<s-1?AD:0;return ID+i(r)+u})(n,o)):n.isLeftDimension||(l=h(o),n.columnWidthLocation===Qe.Measures&&(l=f(l))),a=HD(t,r,l)}return m+=a,a}));return{leftGridWidth:Math.min(t*MD,p?v.slice(v.length-2).reduce(((e,t)=>e+t),0):m),leftGridColumnWidths:p?v.slice(v.length-2):v,leftGridFullWidth:m}}),[i,n,e,o,a,t]),[s,u]=Ho.useState(l);ag((()=>{u(l())}),[l]);const c=Ho.useCallback(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function WD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=kD(),{estimateWidth:c,measureText:d}=Ko(u.measureValues),{estimateWidth:p}=Ko({...u.dimensionValues,fontWeight:zD(u.dimensionValues.fontWeight)}),f=t-o-vt,h=n.at(-1),m=h===qD,g=a.length-i>n.length?AD:0,v=Ho.useMemo((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(Be.PixelsMax,Math.max(Be.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 He.Pixels:i(t,$D(o));break;case He.Percentage:i(t,BD(a,f));break;case He.FitToContent:i(t,((e,t,n)=>n?Be.PixelsDefault:ID+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,TD(e)));break;case He.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(Be.AutoMin,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),b=Ho.useMemo((()=>{if(m){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[m,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Ho.useCallback((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[m,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let VD;const UD=new Uint8Array(16);function YD(){if(!VD&&(VD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!VD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return VD(UD)}const KD=[];for(let e=0;e<256;++e)KD.push((e+256).toString(16).slice(1));var XD={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function QD(e,t,n){if(XD.randomUUID&&!t&&!e)return XD.randomUUID();const r=(e=e||{}).random||(e.rng||YD)();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 KD[e[t+0]]+KD[e[t+1]]+KD[e[t+2]]+KD[e[t+3]]+"-"+KD[e[t+4]]+KD[e[t+5]]+"-"+KD[e[t+6]]+KD[e[t+7]]+"-"+KD[e[t+8]]+KD[e[t+9]]+"-"+KD[e[t+10]]+KD[e[t+11]]+KD[e[t+12]]+KD[e[t+13]]+KD[e[t+14]]+KD[e[t+15]]}(r)}const JD=()=>{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:QD()},ZD=e=>e===qD?FD:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:JD()})(e),eO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{var o,i;n&&(n.canBeResized=!0,n.isActivelySorted=r===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),n.colIdx=n.colIdx||r,n.dimensionInfoIndex===qD?n.columnWidthLocation=Qe.Measures:n.isLeftDimension?n.columnWidthLocation=Qe.Dimension:t.at(-1)===qD?n.columnWidthLocation=Qe.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Qe.Pivot))},tO=(e,t,n)=>{var r;const o=ZD(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===qD?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Dimension}},nO=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===qD?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]=tO(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=tO(e,t,o)})),l},rO=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(qD)?nO({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(nO({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++)eO({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else eO({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 oO(e){return oO="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},oO(e)}function iO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aO(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 lO(e,t,n){return t&&aO(e.prototype,t),n&&aO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sO(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&&cO(e,t)}function uO(e){return uO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uO(e)}function cO(e,t){return cO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cO(e,t)}function dO(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 pO(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=uO(e);if(t){var o=uO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dO(this,n)}}function fO(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 hO(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 hO(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 hO(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 mO={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:gO(e),value:gO(t),useEqualSign:n}}(n,o,i))}})),t}};function gO(e){try{return decodeURIComponent(e)}catch(t){return e}}function vO(e){if(!(this instanceof vO))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 mO.fromSearchString(t.search)}}})}function bO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}vO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},vO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=bO((t=e[r]).key),t.value?n+="=".concat(bO(t.value)):n+=t.useEqualSign?"=":"";return n};var yO,xO=function(){function e(t){iO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return lO(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}(),SO=function(){function e(){iO(this,e)}return lO(e,[{key:"decode",value:function(e){for(var t,n="",r=new xO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),EO=function(e){return e>=0&&e<=1114111},wO=function(e){return e.match(/[\s]/)},CO=function(e){sO(n,e);var t=pO(n);function n(){return iO(this,n),t.apply(this,arguments)}return lO(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())&&!wO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return EO(a)?String.fromCharCode(a):"�"}}]),n}(SO),RO=function(){function e(t,n){iO(this,e),this._key=t,this._value=n}return lO(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}(),kO=function(){function e(){iO(this,e)}return lO(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 RO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return RO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||RO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),LO=function(){function e(){iO(this,e),this.clear()}return lO(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 kO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),AO=function(){var e,t,n,r=[],o=[],i=new LO;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}(),_O=function(e){sO(n,e);var t=pO(n);function n(){return iO(this,n),t.apply(this,arguments)}return lO(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,AO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=AO.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)&&EO(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)&&EO(r)?String.fromCharCode(r):null}}]),n}(SO),PO=function(e){sO(n,e);var t=pO(n);function n(){return iO(this,n),t.apply(this,arguments)}return lO(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),EO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(SO),IO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(yO=document.createElement("div"));var MO=Array.prototype.indexOf,DO=[",",".","_"," "],OO={default:[",",".","-","_"," "]},TO={width:["%"],height:["%"]},NO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},qO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":NO.image,"background-color":NO.color,"border-color":NO.color,"border-image":NO.image,color:NO.color,icon:NO.image,"list-style-image":NO.image,"outline-color":NO.color},FO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function zO(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 jO(e){if(null==e)return"";var t,n=document.createTextNode(e);return yO.appendChild(n),t=yO.innerHTML,yO.removeChild(n),t}function $O(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=HO(e).toLowerCase(),t=HO(t),zO(e,FO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<FO.attr_val;i++)if(t.toLowerCase().match(FO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=TO[e])||(r=OO.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]/)&&zO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function BO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=HO(e).toLowerCase(),t=HO(t),zO(e,FO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<FO.css_val.length;r++)if(t.toLowerCase().indexOf(FO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=qO[e])||(o=NO.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]/)&&zO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function HO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new _O,new PO,new CO];!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 GO=[],WO=0;WO<255;WO++)GO[WO]=WO>=48&&WO<=57||WO>=65&&WO<=90||WO>=97&&WO<=122?null:WO.toString(16);var VO=function(e){return jO(e.unsafe)},UO=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]=BO(t,n[t],!0),i+=BO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},YO=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 KO(e,t){throw new Error(t)}var XO={canonicalize:HO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===oO(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?VO(e):"css"===e.context?(null!=e.map&&"object"!==oO(e.map)&&KO(this,"Invalid parameter type"),UO(e)):"attr"===e.context?(null!=e.map&&"object"!==oO(e.map)&&KO(this,"Invalid parameter type"),YO(e)):void KO(this,"Invalid parameter type")},encodeForAttr:$O,encodeForAttr2:function(e){return $O("nonsens",e,!0)},encodeForCSS:BO,encodeForHref:function(e){HO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new vO(e),n=vO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+vO.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=DO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),zO(o,t)>=0||null==GO[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:jO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=HO(t).toLowerCase():KO(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=fO(null!==(t=IO.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 QO=(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]},JO=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"}}},ZO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&XO.isSafeDataURL(t)?{type:DD.Image,url:t,text:e,imageSize:n,resolvedImagePosition:JO(r)}:{type:DD.Text,url:void 0,text:e},eT=(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)===OD.Attribute||null==n?void 0:n.urlLabel},tT=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:DD.Link,url:XO.encodeForHref(t),text:e}}catch(t){return{type:DD.Text,url:void 0,text:e}}},nT=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return DD.Link;case"image":return DD.Image;default:return DD.Text}})(t)){case DD.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=QO(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return ZO({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return ZO({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=QO(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ZO({text:n,url:t,imageSize:o,imagePosition:i})}return{type:DD.Text,url:void 0,text:e.qText}})(e,t,o,i);case DD.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===OD.Attribute){const r=eT(n,e,t),o=e.qText||r||"";return tT({text:o,url:r})}if(o===OD.Dimension){const n=eT(r,e,t)||e.qText;return tT({text:n,url:e.qText})}return{type:DD.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:DD.Text,url:void 0,text:e.qText}}},rT=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?AI(a):null,s=i?AI(i):null,u=((e,t)=>e||!t?null:Vn(t)?RI.WHITE:RI.TEXT)(s,l);return{color:null!=u?u:s,background:l}},oT=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:oT(e,t)),e),iT=(e,t,n,r,o,i)=>{if(o)return oT(0,e);const a=i?ht-n:mt-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%ht;l=e.qDown+n}return Math.min(a,oT(l,e))},aT=({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})=>{const p=!c&&e.qType===tt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;f=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else f=e.qText;const h={id:JD(),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:iT(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===tt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===tt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===tt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:rT(s,e),selectionCellType:u?Xe.NX_CELL_LEFT:Xe.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:nT({...e,qText:f},l===qD?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},lT=(e,t,n,r,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(qD);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const v=n.qTop-r.page*r.rowsPerPage,b=Math.max(0,v+s-d.qUp),y=n.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===tt.NX_DIM_CELL_NORMAL||d.qType===tt.NX_DIM_CELL_NULL||d.qType===tt.NX_DIM_CELL_TOTAL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===tt.NX_DIM_CELL_PSEUDO){var x,S,E,w,C;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(w=null===(C=c||u)||void 0===C?void 0:C.indentLevel)&&void 0!==w?w:0}}let R=p;l&&(R=f===h?f+1:f,0===f&&0===h&&0===d.qSubNodes.length&&(R=0));const k=l&&void 0===(null===(g=e[p][b])||void 0===g?void 0:g.ref.qText)||!e[p][b]?aT({node:d,parent:c,root:u,x:R,y:y,pageY:b,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][b];if(e[p][b]=k,d.qSubNodes.length){const e=l?0:p+1;t(u||k,k,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},sT=(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)}))}))},uT=(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},cT=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=lT(e.grid,a,l,n,r,o,i);sT(s,n.rowsOnCurrentPage);const u=uT(s,r);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},dT=({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===tt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:JD(),ref:t,isNull:u}}))})),o},pT=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?dT({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},fT=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:aT({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},hT=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=fT(e.grid,a,l,n,r,o,i);sT(s,n.size.x);const u=uT(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},mT=e=>{if(e===qD)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,n=t.findIndex((({id:e})=>e===Je.CellForegroundColor.toString())),r=t.findIndex((({id:e})=>e===Je.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===Je.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===Je.ImageLabel.toString())),a=t.findIndex((({id:e})=>e===Je.Link.toString())),l=t.findIndex((({id:e})=>e===Je.LinkLabel.toString()));return{cellForegroundColor:n,cellBackgroundColor:r,imageUrl:o,link:a,linkLabel:l,imageLabel:i}},gT=(e,t,n,r,o)=>{const[i,a]=Ho.useState(null),l=((e,t,n)=>Ho.useMemo((()=>({left:e.map(mT),top:t.map(mT),measures:n.map(mT)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=Ho.useMemo((()=>rO(t,o,r)),[t,o,r]),u=Ho.useCallback((()=>e.slice(1).reduce(((e,t)=>pT({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return dT({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),c=Ho.useCallback((()=>e.slice(1).reduce(((e,n)=>hT({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=fT([],a,i,t,n,r,o);sT(l,t.size.x);const s=uT(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=Ho.useCallback((()=>e.slice(1).reduce(((e,o)=>cT({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=lT([],a,i,n,t,r,o);sT(l,n.rowsOnCurrentPage);const s=uT(l,t);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=Ho.useState((()=>u())),[h,m]=Ho.useState((()=>c())),[g,v]=Ho.useState((()=>d()));ag((()=>{f(u())}),[u]),ag((()=>{m(c())}),[c]),ag((()=>{v(d())}),[d]),ag((()=>{i&&i.forEach((e=>{f((t=>pT({prevData:t,dataPage:e,pageInfo:n}))),m((n=>hT({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),v((o=>cT({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const b=Ho.useCallback((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:b}},vT=Math.sqrt(1e4),bT=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/vT),r=Math.ceil(e.qHeight/vT);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*vT,qTop:e.qTop+n*vT,qWidth:Math.min(vT,e.qWidth-o*vT),qHeight:Math.min(vT,e.qHeight-n*vT)});return t};function yT({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Ho.useRef(e);return t.current=e,t})(n.page),i=e,a=Ho.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,ND,e,t,!1))}),[i]),l=Ho.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(ND,e,t,!1))}),[i]),s=Ho.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(ND,e,t,!1))}),[i]),u=Ho.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(ND,e,t,!1))}),[i]),c=Ho.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(ND,e.reduce(((e,t)=>[...e,...bT(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Ho.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 Qe.Dimension:c=[{qPath:`${ND}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Qe.Measures:if(o)c=l.map(((e,t)=>({qPath:`${ND}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${ND}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Qe.Pivot:c=[{qPath:`${ND}/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]);return Ho.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const xT=(e,t)=>e>t?et.Forward:e<t?et.Backward:et.None,ST=(e,t,n)=>(r,o)=>{if(r===tt.NX_DIM_CELL_PSEUDO)return qD;const i=t[n+o];return e[i]},ET=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},wT=({width:e,height:t,children:n,isLeftGrid:r})=>bg.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+vt},children:n}),CT=e=>`scrollable-container--${e}`,RT=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=SD();return bg.jsx("div",{ref:t,"data-key":CT(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 kT=Go.forwardRef(RT);const LT=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>bg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function AT(){return AT=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},AT.apply(this,arguments)}function _T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PT(e,t){return PT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PT(e,t)}function IT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,PT(e,t)}var MT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function DT(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||MT(r)&&MT(o)))return!1;var r,o;return!0}function OT(e,t){var n;void 0===t&&(t=DT);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 TT(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 NT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function qT(e){cancelAnimationFrame(e.id)}function FT(e,t){var n=NT();var r={id:requestAnimationFrame((function o(){NT()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var zT=-1;function jT(e){if(void 0===e&&(e=!1),-1===zT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),zT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return zT}var $T=null;function BT(e){if(void 0===e&&(e=!1),null===$T||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?$T="positive-descending":(t.scrollLeft=1,$T=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),$T}return $T}var HT=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function GT(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,_T(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:_T(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=OT((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=OT((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=OT((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(BT()){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&&qT(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=FT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}IT(t,e),t.getDerivedStateFromProps=function(e,t){return WT(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=jT();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,m,this._instanceProps,x):m,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(BT()){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&&qT(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?HT:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],L=[];if(r>0&&g)for(var A=R;A<=k;A++)for(var _=E;_<=w;_++)L.push(Ho.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,_)}));var P=a(this.props,this._instanceProps),I=l(this.props,this._instanceProps);return Ho.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:AT({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Ho.createElement(u||c||"div",{children:L,ref:s,style:{height:P,pointerEvents:x?"none":void 0,width:I}}))},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],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(Ho.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var WT=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VT=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},UT=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},YT=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]},KT=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?XT(e,t,n,i,0,r):QT(e,t,n,Math.max(0,i),r)},XT=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=YT(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},QT=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&YT(e,t,r,n).offset<o;)r+=a,a*=2;return XT(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},JT=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=YT(e,t,n,i),u="column"===e?UT(t,i):VT(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}},ZT=GT({getColumnOffset:function(e,t,n){return YT("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return KT("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=YT("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=YT("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:VT,getEstimatedTotalWidth:UT,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return JT("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return JT("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return YT("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return KT("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=YT("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=YT("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}}),eN=function(e,t){return e};function tN(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,_T(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:_T(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OT((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=OT((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=OT((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(BT()){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&&qT(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=FT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}IT(t,e),t.getDerivedStateFromProps=function(e,t){return nN(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?jT():0:s.scrollHeight>s.clientHeight?jT():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(BT()){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&&qT(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?eN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Ho.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return Ho.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:AT({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Ho.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(Ho.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var nN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},rN=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]},oN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=rN(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},iN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&rN(e,n,t).offset<r;)n+=i,i*=2;return oN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},aN=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},lN=tN({getItemOffset:function(e,t,n){return rN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:aN,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=rN(e,t,o),p=aN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?oN(e,t,o,0,n):iN(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=rN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=rN(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 sN(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 uN=["style"],cN=["style"];function dN(e,t){var n=e.style,r=TT(e,uN),o=t.style,i=TT(t,cN);return!sN(n,o)&&!sN(r,i)}const pN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),fN=10,hN=(e,t)=>e.current===et.Backward?t:0,mN=(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},gN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,vN=({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(mN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&gN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},bN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===et.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return vN({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},yN=({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=hN(n,fN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+fN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=vN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...bN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},xN=(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},SN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,EN=({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(xN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&SN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},wN=({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=hN(n,fN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+fN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=EN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===et.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=EN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},CN=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==et.None&&(d=wN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==et.None&&(p=yN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===et.None&&a.current===et.None&&(d=EN({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},RN=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))}}(CN,100),kN=function(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)}}(CN,75),LN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=kD();return bg.jsx("div",{style:{...e,...Et,...kt(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},AN=({children:e,verticalAlign:t,width:n,right:r})=>bg.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}),_N=e=>{const{type:t,imageSize:n}=e;return t!==DD.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"};function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const IN=(e,t)=>Go.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){PN(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),Go.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"})),MN=Ho.forwardRef(IN);function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ON=(e,t)=>Go.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){DN(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),Go.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"})),TN=Ho.forwardRef(ON),NN=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(je)};function qN(e,t){const n=e.isActive(),[r,o]=Ho.useState(new Map),[i,a]=Ho.useState(null);Ho.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=Ho.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Xe.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Ho.useCallback((t=>async n=>{if(NN(n))return;if(e.isActive()||await e.begin([ND]),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===Xe.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[ND,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=Ho.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Ho.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const FN={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},zN=Ho.createContext(FN),jN=()=>Ho.useContext(zN),$N=({children:e,selections:t,updatePageInfo:n})=>{const r=qN(t,n);return bg.jsx(zN.Provider,{value:r,children:e})};var BN;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(BN||(BN={}));const HN={brighter:.5,darker:.3,opacity:.03},GN=(e,{cell:t,styleService:n})=>{if(e===BN.Background||e===BN.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]},WN=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=GN(BN.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?GN(BN.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${kI(i=o,HN)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},VN=({cell:e,styleService:t,isCellSelected:n})=>n?"white":GN(BN.Color,{cell:e,styleService:t}),UN=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=GN(BN.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?ft:o},YN=({cell:e,styleService:t})=>GN(BN.FontStyle,{cell:e,styleService:t}),KN=({cell:e,styleService:t})=>GN(BN.TextDecoration,{cell:e,styleService:t}),XN=e=>e?"pointer":"default",QN=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},JN=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=kD(),{interactions:i}=SD(),{isActive:a}=jN();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=VN({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?TN:MN;let p;return p=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,bg.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:QN({cell:e,expandOrCollapse:p})})},ZN=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},eq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},tq=({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}}},nq=(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"}},rq=e=>{if("alwaysFit"===e)return"contain"},oq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=n;return bg.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...tq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:bg.jsx("img",{src:a,alt:l,style:{width:eq(s),height:ZN(s),objectFit:rq(s),objectPosition:nq(s,u),...d}})})},iq=(e,t,n)=>{if(!n.isEnabled(Ge)||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}},aq={display:"flex",flexDirection:"row",alignItems:"center"},lq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},sq=(e,t,n,r)=>t?{...lq,...e.nullValues}:n?{...aq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...aq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},uq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...wt,...!n&&Ct(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?ft:s,fontStyle:u,textDecoration:c}},cq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==DD.Image?iq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},dq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const{flags:l}=SD(),s=e.isNull?t.getNullValueText():r.text,u=uq(n,o,i,a,e.isNull);return r.type===DD.Image&&!e.isNull&&l.isEnabled(Ve)?bg.jsx(oq,{representation:r,styleService:n,textStyle:u,isLeftColumn:!0}):bg.jsx("span",{style:{padding:4,...u},children:s})},pq=(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},fq="flex-start",hq=(e,t)=>{return e.isNull?fq:t.type===DD.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:fq;var n},mq=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=kD(),{flags:a}=SD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return bg.jsx(LN,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?pq(g,t):pq(m,e),E=u.visibleMeasureInfo[S],w=nT(b.ref,E.representation,-1,-1,v[S].imageUrl,v[S].imageLabel),C=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():w.text,k=!b.isNull||!Number.isNaN(+R),L=rT(v[S],b.ref),A={...sq(i,b.isNull,C,L.background),...kt(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Et,padding:"0px 4px",display:"flex",justifyContent:cq(b,E,w,k,a)};return bg.jsx("div",{title:R,style:{...A,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:bg.jsx(AN,{width:_N(w),verticalAlign:hq(b,w),children:bg.jsx(dq,{cell:b,layoutService:u,styleService:i,representation:w,isNumeric:k,isTotalValueCell:C,color:L.color})})})};var gq=Go.memo(mq,dN);const vq=(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()},bq=({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}`},yq={...St,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},xq=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=kD(),x={...yq,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Ho.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 pN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Ho.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return pN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),w=((e,t,n,r)=>Ho.useCallback(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),C=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>Ho.useCallback((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===et.None?0:fN),h=e.gridHeight+a+(l.current===et.None?0:fN);let m=RN;h*f>1500&&(m=kN),await m(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return ag((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Ho.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:bg.jsx(ZT,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:w,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:C,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:bq,children:gq})};var Sq=Ho.memo(xq);function Eq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wq=(e,t)=>Go.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){Eq(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),Go.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"}),Go.createElement("use",{fillRule:"evenodd"})),Cq=Ho.forwardRef(wq),Rq=e=>{const[t,n]=Ho.useState(!1);return ag((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},kq=({interactions:e,dataModel:t})=>{const[n,r]=Ho.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Rq([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!NN(t)&&!o&&r(!0),setIsAdjustingWidth:i}};const Lq=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=SD(),{isActive:l}=jN(),s=kD(),[,u]=Ho.useState({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(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===bt.Transparent?RI.WHITE:l,u=null===(o=dn(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=dn(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}(s,e);return bg.jsx(MI,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},Aq=e=>e.scrollTop;function _q(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 Pq(e){return Bx("MuiPaper",e)}Hx("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 Iq=["className","component","elevation","square","variant"],Mq=Aw("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 Eg({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&&Eg({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${iE("#fff",Iw(t.elevation))}, ${iE("#fff",Iw(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Dq=Ho.forwardRef((function(e,t){const n=QE({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=wg(n,Iq),u=Eg({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Pq,o)})(u);return bg.jsx(Mq,Eg({as:o,ownerState:u,className:zx(c.root,r),ref:t},s))}));function Oq(e){return"string"==typeof e}function Tq(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 Nq(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 qq=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fq(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=wg(e,qq),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=zx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Eg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Eg({},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=Tq(Eg({},o,r)),l=Nq(r),s=Nq(o),u=t(a),c=zx(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=Eg({},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=Eg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Eg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Oq(e)?t:Eg({},t,{ownerState:Eg({},t.ownerState,n)})}(n,Eg({},s,{ref:LS(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var zq=Hx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jq=["center","classes","className"];let $q,Bq,Hq,Gq,Wq=e=>e;const Vq=sy($q||($q=Wq`
119
+ `),AL.rippleVisible,NL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),AL.child,AL.childLeaving,qL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.childPulsate,FL,(({theme:e})=>e.transitions.easing.easeInOut)),$L=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=yC(n,IL),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=Go.useRef(0),f=Go.useRef(null),h=Go.useRef(null);Go.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(jL,{classes:{ripple:jx(o.ripple,AL.ripple),rippleVisible:jx(o.rippleVisible,AL.rippleVisible),ripplePulsate:jx(o.ripplePulsate,AL.ripplePulsate),child:jx(o.child,AL.child),childLeaving:jx(o.childLeaving,AL.childLeaving),childPulsate:jx(o.childPulsate,AL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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 Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(zL,bC({className:jx(AL.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var HL=$L;function BL(e){return Sk("MuiButtonBase",e)}var GL=Ek("MuiButtonBase",["root","disabled","focusVisible"]);const WL=["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"],VL=Kk("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"},[`&.${GL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),UL=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=yC(n,WL),M=Go.useRef(null),D=Go.useRef(null),O=ak(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=gk(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return ik((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=ik((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=ik((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(),h&&h(e))})),oe=ik((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ak(t,F,M),se=bC({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},BL,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(VL,bC({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(HL,bC({ref:O,center:o},_)):null]}))}));var YL=UL;function KL(e){return Sk("MuiTypography",e)}Ek("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const XL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],QL=Kk("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${QR(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>bC({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}))),JL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ZL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e_=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTypography"}),r=(e=>ZL[e]||e)(n.color),o=PR(bC({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=JL}=o,f=yC(o,XL),h=bC({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||JL[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return BS({root:["root",i,"inherit"!==e.align&&`align${QR(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},KL,a)})(h);return yg.jsx(QL,bC({as:m,ref:t,ownerState:h,className:jx(g.root,a)},f))}));var t_=e_;const n_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function r_(e){const t=[],n=[];return Array.from(e.querySelectorAll(n_)).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 o_(){return!0}function i_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=r_,isEnabled:a=o_,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const a_=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.isValidElement(n)?n.ref:null,t);if(vS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vS((()=>{if(i&&!o)return kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function l_(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s_(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function u_(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&&l_(e,o)}))}function c_(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function d_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s_(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s_(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 p_=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&&l_(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);u_(t,e.mount,e.modalRef,r,!0);const o=c_(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=c_(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=d_(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=c_(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&&l_(e.modalRef,t),u_(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&&l_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function f_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=p_,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&l_(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=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=RL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const h_=["onChange","maxRows","minRows","style","value"];function m_(e){return parseInt(e,10)||0}const g_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v_(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b_=Go.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Cg(e,h_),{current:s}=Go.useRef(null!=a),u=Go.useRef(null),c=_S(t,u),d=Go.useRef(null),p=Go.useRef(0),[f,h]=Go.useState({outerHeightStyle:0}),m=Go.useCallback((()=>{const t=u.current,n=RS(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=m_(n.paddingBottom)+m_(n.paddingTop),s=m_(n.borderBottomWidth)+m_(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=Go.useCallback((()=>{const e=m();v_(e)||h((t=>g(t,e)))}),[m]);vS((()=>{const e=()=>{p.current=0,(()=>{const e=m();v_(e)||og.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=wS(e),n=u.current,r=RS(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),vS((()=>{v()})),Go.useEffect((()=>{p.current=0}),[a]);return yg.jsxs(Go.Fragment,{children:[yg.jsx("textarea",wg({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:wg({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),yg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:wg({},g_,i,{paddingTop:0,paddingBottom:0})})]})}));function y_({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 x_=Go.createContext(void 0);function S_(){return Go.useContext(x_)}function E_(e){return yg.jsx(_R,bC({},e,{defaultTheme:Bk,themeId:vC}))}function w_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function C_(e,t=!1){return e&&(w_(e.value)&&""!==e.value||t&&w_(e.defaultValue)&&""!==e.defaultValue)}function R_(e){return Sk("MuiInputBase",e)}var k_=Ek("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const L_=["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"],__=(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${QR(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},A_=(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]},I_=Kk("div",{name:"MuiInputBase",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>bC({},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",[`&.${k_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&bC({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),P_=Kk("input",{name:"MuiInputBase",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=bC({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 bC({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] + .${k_.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},[`&.${k_.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"})})),M_=yg.jsx(E_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),D_=Go.forwardRef((function(e,t){var n;const r=Wk({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:_,placeholder:A,readOnly:I,renderSuffix:P,rows:M,slotProps:D={},slots:O={},startAdornment:T,type:N="text",value:q}=r,F=yC(r,L_),z=null!=v.value?v.value:q,{current:j}=Go.useRef(null!=z),$=Go.useRef(),H=Go.useCallback((e=>{}),[]),B=ak($,b,v.ref,H),[G,W]=Go.useState(!1),V=S_(),U=y_({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:G,Go.useEffect((()=>{!V&&d&&G&&(W(!1),w&&w())}),[V,d,G,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Go.useCallback((e=>{C_(e)?Y&&Y():K&&K()}),[Y,K]);ek((()=>{j&&X({value:z})}),[z,X,j]);Go.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=bC(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},J),Q=b_);Go.useEffect((()=>{V&&V.setAdornedStart(Boolean(T))}),[V,T]);const Z=bC({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:T,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:h}=e;return BS({root:["root",`color${QR(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${QR(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},R_,t)})(Z),te=O.root||s.Root||I_,ne=D.root||u.root||{},re=O.input||s.Input||P_;return J=bC({},J,null!=(n=D.input)?n:u.input),yg.jsxs(Go.Fragment,{children:[!p&&M_,yg.jsxs(te,bC({},ne,!CL(te)&&{ownerState:bC({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:jx(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[T,yg.jsx(x_.Provider,{value:null,children:yg.jsx(re,bC({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:A,readOnly:I,required:U.required,rows:M,value:z,onKeyDown:L,onKeyUp:_,type:N},J,!CL(re)&&{as:Q,ownerState:bC({},Z,J.ownerState)},{ref:B,className:jx(ee.input,J.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(gC(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):W(!0))}}))}),f,P?P(bC({},U,{startAdornment:T})):null]}))]})}));var O_=D_;function T_(e){return Sk("MuiInput",e)}var N_=bC({},k_,Ek("MuiInput",["root","underline","input"]));function q_(e){return Sk("MuiOutlinedInput",e)}var F_=bC({},k_,Ek("MuiOutlinedInput",["root","notchedOutline","input"]));function z_(e){return Sk("MuiFilledInput",e)}var j_=bC({},k_,Ek("MuiFilledInput",["root","underline","input"])),$_=function(e,t){function n(n,r){return yg.jsx(tL,bC({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tL.muiName,Go.memo(Go.forwardRef(n))}(yg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const H_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B_={entering:{opacity:1},entered:{opacity:1}},G_=Go.forwardRef((function(e,t){const n=Gk(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=dL}=e,b=yC(e,H_),y=Go.useRef(null),x=ak(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{bL(e);const r=yL({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(h),k=S((e=>{const t=yL({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return yg.jsx(v,bC({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,bC({style:bC({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},B_[e],m,a.props.style),ref:x},t))}))}));var W_=G_;function V_(e){return Sk("MuiBackdrop",e)}Ek("MuiBackdrop",["root","invisible"]);const U_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y_=Kk("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>bC({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"}))),K_=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=W_,transitionDuration:g}=i,v=yC(i,U_),b=bC({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},V_,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,bC({in:p,timeout:g},v,{children:yg.jsx(Y_,bC({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:bC({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var X_=K_;var Q_=Ek("MuiBox",["root"]);const J_=Hk(),Z_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=EC("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(SR);return Go.forwardRef((function(e,a){const l=LR(n),s=PR(e),{className:u,component:c="div"}=s,d=Cg(s,MR);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:vC,defaultTheme:J_,defaultClassName:Q_.root,generateClassName:yk.generate});var eA=Z_;function tA(e){return Sk("MuiButton",e)}var nA=Ek("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 rA=Go.createContext({});var oA=Go.createContext(void 0);const iA=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],aA=e=>bC({},"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}}),lA=Kk(YL,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${QR(n.color)}`],t[`size${QR(n.size)}`],t[`${n.variant}Size${QR(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 bC({},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":bC({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:UR(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})`:UR(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})`:UR(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":bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nA.focusVisible}`]:bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nA.disabled}`]:bC({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 ${UR(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"},[`&.${nA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nA.disabled}`]:{boxShadow:"none"}})),sA=Kk("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},aA(e)))),uA=Kk("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},aA(e)))),cA=Go.forwardRef((function(e,t){const n=Go.useContext(rA),r=Go.useContext(oA),o=Wk({props:vk(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=yC(o,iA),x=bC({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return bC({},a,BS({root:["root",i,`${i}${QR(t)}`,`size${QR(o)}`,`${i}Size${QR(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${QR(o)}`],endIcon:["endIcon",`iconSize${QR(o)}`]},tA,a))})(x),E=g&&yg.jsx(sA,{className:S.startIcon,ownerState:x,children:g}),w=p&&yg.jsx(uA,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return yg.jsxs(lA,bC({ownerState:x,className:jx(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:jx(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,w]}))}));var dA=cA;function pA(e){return Sk("MuiModal",e)}Ek("MuiModal",["root","hidden","backdrop"]);const fA=["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"],hA=Kk("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})=>bC({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),mA=Kk(X_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gA=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Wk({name:"MuiModal",props:e}),{BackdropComponent:u=mA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=yC(s,fA),P=bC({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=f_(bC({},P,{rootRef:t})),z=bC({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pA,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:hA,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=_L({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=_L({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(bC({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(a_,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,bC({},V,{children:[!C&&u?yg.jsx(B,bC({},U)):null,yg.jsx(i_,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var vA=gA;function bA(e){return Sk("MuiDivider",e)}var yA=Ek("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xA=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],SA=Kk("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})=>bC({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)`:UR(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})=>bC({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>bC({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),EA=Kk("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>bC({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)`}))),wA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,xA),h=bC({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return BS({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"]},bA,r)})(h);return yg.jsx(SA,bC({as:a,className:jx(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?yg.jsx(EA,{className:m.wrapper,ownerState:h,children:o}):null}))}));wA.muiSkipListHighlight=!0;var CA=wA;const RA=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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 bC({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}},[`&.${j_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${j_.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"},[`&.${j_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${j_.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(.${j_.disabled}, .${j_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${j_.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&bC({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}))})),LA=Kk(P_,{name:"MuiFilledInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),_A=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=yC(a,RA),g=bC({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},z_,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?XR(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:kA,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:LA;return yg.jsx(O_,bC({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));_A.muiName="Input";var AA=_A;const IA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PA(e){return`scale(${e}, ${e**2})`}const MA={entering:{opacity:1,transform:PA(1)},entered:{opacity:1,transform:"none"}},DA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OA=Go.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=dL}=e,g=yC(e,IA),v=Go.useRef(),b=Go.useRef(),y=Gk(),x=Go.useRef(null),S=ak(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{bL(e);const{duration:n,delay:r,easing:o}=yL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:DA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=yL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:DA?o:.666*o,delay:DA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=PA(.75),c&&c(e)})),_=E(d);return Go.useEffect((()=>()=>{clearTimeout(v.current)}),[]),yg.jsx(m,bC({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,bC({style:bC({opacity:0,transform:PA(.75),visibility:"exited"!==e||a?void 0:"hidden"},MA[e],f,o.props.style),ref:S},t))}))}));OA.muiSupportAuto=!0;var TA=OA;const NA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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})`),bC({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"},[`&.${N_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${N_.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(.${N_.disabled}, .${N_.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${N_.disabled}:before`]:{borderBottomStyle:"dotted"}})})),FA=Kk(P_,{name:"MuiInput",slot:"Input",overridesResolver:A_})({}),zA=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=yC(a,NA),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},T_,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?XR(null!=f?f:u,b):b,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:qA,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:FA;return yg.jsx(O_,bC({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));zA.muiName="Input";var jA=zA;function $A(e){return Sk("MuiLink",e)}var HA=Ek("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const BA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var GA=({theme:e,ownerState:t})=>{const n=(e=>BA[e]||e)(t.color),r=IC(e,`palette.${n}`,!1)||t.color,o=IC(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:UR(r,.4)};const WA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],VA=Kk(t_,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${QR(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>bC({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&bC({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:GA({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"},[`&.${HA.focusVisible}`]:{outline:"auto"}}))),UA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,WA),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gk(),[v,b]=Go.useState(!1),y=ak(t,g),x=bC({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return BS({root:["root",`underline${QR(o)}`,"button"===n&&"button",r&&"focusVisible"]},$A,t)})(x);return yg.jsx(VA,bC({color:o,className:jx(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(BA).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var YA=UA;var KA=Go.createContext({});function XA(e){return Sk("MuiList",e)}Ek("MuiList",["root","padding","dense","subheader"]);const QA=["children","className","component","dense","disablePadding","subheader"],JA=Kk("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})=>bC({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ZA=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=yC(n,QA),c=Go.useMemo((()=>({dense:a})),[a]),d=bC({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XA,t)})(d);return yg.jsx(KA.Provider,{value:c,children:yg.jsxs(JA,bC({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function eI(e){return Sk("MuiListItemIcon",e)}var tI=Ek("MuiListItemIcon",["root","alignItemsFlexStart"]);const nI=["className"],rI=Kk("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})=>bC({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var oI=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=yC(n,nI),i=bC({},n,{alignItems:Go.useContext(KA).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return BS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},eI,n)})(i);return yg.jsx(rI,bC({className:jx(a.root,r),ownerState:i,ref:t},o))}));var iI=Ek("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function cI(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=Go.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=yC(e,aI),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ek((()=>{r&&p.current.focus()}),[r]),Go.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)}(JR(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=ak(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=Go.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Go.cloneElement(e,t)}return e}));return yg.jsx(ZA,bC({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=JR(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return Sk("MuiPopover",e)}Ek("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kk(vA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kk(wL,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var EI=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=TA,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=yC(i.TransitionProps,fI),k=yC(i,hI),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=ak(_,L.ref),I=bC({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},pI,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:JR(_.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+vI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:gI(e,x.vertical),horizontal:vI(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:bI(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ZR(yI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:bI(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.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=ZR(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?JR(yI(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:xI,$=null!=(o=null==b?void 0:b.paper)?o:SI,H=_L({elementType:$,externalSlotProps:bC({},L,{style:T?L.style:bC({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=_L({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=yC(B,mI);return yg.jsx(j,bC({},W,!CL(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,bC({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,bC({},H,{children:d}))}))}))}));function wI(e){return Sk("MuiMenu",e)}Ek("MuiMenu",["root","paper","list"]);const CI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kI={vertical:"top",horizontal:"right"},LI={vertical:"top",horizontal:"left"},_I=Kk(EI,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AI=Kk(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),II=Kk(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=Go.forwardRef((function(e,t){var n,r;const o=Wk({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=yC(o.TransitionProps,CI),x=yC(o,RI),S=Gk(),E="rtl"===S.direction,w=bC({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},wI,t)})(w),R=i&&!s&&d,k=Go.useRef(null);let L=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const _=null!=(n=v.paper)?n:AI,A=null!=(r=b.paper)?r:p,I=_L({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),P=_L({elementType:_,externalSlotProps:A,ownerState:w,className:C.paper});return yg.jsx(_I,bC({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?kI:LI,slots:{paper:_,root:v.root},slotProps:{root:I,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:bC({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:yg.jsx(II,bC({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:jx(C.list,u.className),children:a}))}))}));function MI(e){return Sk("MuiMenuItem",e)}var DI=Ek("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const OI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],TI=Kk(YL,{shouldForwardProp:e=>Vk(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})=>bC({},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"}},[`&.${DI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${DI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:UR(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${DI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:UR(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})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${DI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${DI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${tI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&bC({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tI.root} svg`]:{fontSize:"1.25rem"}}))));var NI=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,OI),f=Go.useContext(KA),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);ek((()=>{r&&m.current&&m.current.focus()}),[r]);const g=bC({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return bC({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},MI,a))})(n),b=ak(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(KA.Provider,{value:h,children:yg.jsx(TI,bC({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));function qI(e){return Sk("MuiNativeSelect",e)}var FI=Ek("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const zI=["className","disabled","error","IconComponent","inputRef","variant"],jI=({ownerState:e,theme:t})=>bC({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":bC({},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"},[`&.${FI.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}}),$I=Kk("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vk,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${FI.multiple}`]:t.multiple}]}})(jI),HI=({ownerState:e,theme:t})=>bC({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FI.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),BI=Kk("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),GI=Go.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=yC(e,zI),u=bC({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"]},qI,t)})(u);return yg.jsxs(Go.Fragment,{children:[yg.jsx($I,bC({ownerState:u,className:jx(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:yg.jsx(BI,{as:i,ownerState:u,className:c.icon})]})}));var WI,VI=GI;const UI=["children","classes","className","label","notched"],YI=Kk("fieldset",{shouldForwardProp:Vk})({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%"}),KI=Kk("legend",{shouldForwardProp:Vk})((({ownerState:e,theme:t})=>bC({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&&bC({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 XI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],QI=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return bC({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${F_.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${F_.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${F_.focused} .${F_.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${F_.error} .${F_.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${F_.disabled} .${F_.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&bC({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),JI=Kk((function(e){const{className:t,label:n,notched:r}=e,o=yC(e,UI),i=null!=n&&""!==n,a=bC({},e,{notched:r,withLabel:i});return yg.jsx(YI,bC({"aria-hidden":!0,className:t,ownerState:a},o,{children:yg.jsx(KI,{ownerState:a,children:i?yg.jsx("span",{children:n}):WI||(WI=yg.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}})),ZI=Kk(P_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),eP=Go.forwardRef((function(e,t){var n,r,o,i,a;const l=Wk({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=yC(l,XI),v=(e=>{const{classes:t}=e;return bC({},t,BS({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},q_,t))})(l),b=S_(),y=y_({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=bC({},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:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:QI,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:ZI;return yg.jsx(O_,bC({slots:{root:S,input:E},renderSuffix:e=>yg.jsx(JI,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=yg.jsxs(Go.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:bC({},v,{notchedOutline:null})}))}));eP.muiName="Input";var tP=eP;function nP(e){return Sk("MuiSelect",e)}var rP,oP=Ek("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const iP=["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"],aP=Kk("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${oP.select}`]:t.select},{[`&.${oP.select}`]:t[n.variant]},{[`&.${oP.error}`]:t.error},{[`&.${oP.multiple}`]:t.multiple}]}})(jI,{[`&.${oP.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lP=Kk("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),sP=Kk("input",{shouldForwardProp:e=>Uk(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 uP(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function cP(e){return null==e||"string"==typeof e&&!e.trim()}const dP=Go.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:L,SelectDisplayProps:_={},tabIndex:A,value:I,variant:P="standard"}=e,M=yC(e,iP),[D,O]=ok({controlled:I,default:c,name:"Select"}),[T,N]=ok({controlled:R,default:u,name:"Select"}),q=Go.useRef(null),F=Go.useRef(null),[z,j]=Go.useState(null),{current:$}=Go.useRef(null!=R),[H,B]=Go.useState(),G=ak(t,m),W=Go.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Go.useImperativeHandle(G,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Go.useEffect((()=>{u&&T&&z&&!$&&(B(a?null:V.clientWidth),F.current.focus())}),[z,a]),Go.useEffect((()=>{i&&F.current.focus()}),[i]),Go.useEffect((()=>{if(!g)return;const e=JR(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?C&&C(t):E&&E(t),$||(B(a?null:V.clientWidth),N(e))},Y=Go.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&&(O(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&&T;let Q,J;delete M["aria-invalid"];const Z=[];let ee=!1;(C_({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!Go.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(gC(2));t=D.some((t=>uP(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=uP(D,e.props.value),t&&ee&&(J=e.props.children);return Go.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=H;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==A?A:d?null:0;const oe=_.id||(y?`mui-component-select-${y}`:void 0),ie=bC({},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 BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},nP,t)})(ie),le=bC({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=rk();return yg.jsxs(Go.Fragment,{children:[yg.jsx(aP,bC({ref:W,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(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?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:w},_,{ownerState:ie,className:jx(_.className,ae.select,s),id:oe,children:cP(Q)?rP||(rP=yg.jsx("span",{className:"notranslate",children:"​"})):Q})),yg.jsx(sP,bC({"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&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},M)),yg.jsx(lP,{as:h,className:ae.icon,ownerState:ie}),yg.jsx(PI,bC({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:bC({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:bC({},v.slotProps,{paper:bC({},le,{style:bC({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var pP=dP;const fP=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],hP=["root"],mP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vk(e)&&"variant"!==e,slot:"Root"},gP=Kk(jA,mP)(""),vP=Kk(tP,mP)(""),bP=Kk(AA,mP)(""),yP=Go.forwardRef((function(e,t){const n=Wk({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=$_,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=yC(n,fP),R=v?VI:pP,k=y_({props:n,muiFormControl:S_(),states:["variant","error"]}),L=k.variant||w,_=bC({},n,{variant:L,classes:i}),A=(e=>{const{classes:t}=e;return t})(_),I=yC(A,hP),P=d||{standard:yg.jsx(gP,{ownerState:_}),outlined:yg.jsx(vP,{label:f,ownerState:_}),filled:yg.jsx(bP,{ownerState:_})}[L],M=ak(t,P.ref);return yg.jsx(Go.Fragment,{children:Go.cloneElement(P,bC({inputComponent:R,inputProps:bC({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:bC({id:c},E)},p,{classes:p?XR(I,p.classes):I},d?d.props.inputProps:{})},g&&v&&"outlined"===L?{notched:!0}:{},{ref:M,className:jx(P.props.className,a,A.root)},!d&&{variant:L},C))})}));yP.muiName="Select";var xP=yP,SP=(e={})=>Wo.createElement(nC,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:zw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const EP={MuiAccordion:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:zw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Zw,{"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 ${zw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,borderRadius:Gw,backgroundColor:zw.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 ${zw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:zw.WHITE,color:zw.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:Gw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:Gw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:zw.PURPLE,"&.Mui-focusVisible":{borderColor:zw.PURPLE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:zw.GREEN,"&.Mui-focusVisible":{borderColor:zw.GREEN,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:zw.BLUE,"&.Mui-focusVisible":{borderColor:zw.BLUE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:zw.ORANGE,"&.Mui-focusVisible":{borderColor:zw.ORANGE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:zw.RED,"&.Mui-focusVisible":{borderColor:zw.RED,boxShadow:`0 0 0 3px ${UR(zw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:zw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:zw.PURPLE_PALE},"&:active":{backgroundColor:zw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:zw.PURPLE_PALE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:zw.ORANGE_PALE},"&:active":{backgroundColor:zw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:zw.ORANGE_PALE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:zw.RED_PALE},"&:active":{backgroundColor:zw.RED_DARK},"&.Mui-focusVisible":{borderColor:zw.RED_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:zw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:zw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Gw,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:jw,borderRadius:Gw,color:zw.TEXT_PRIMARY,backgroundColor:zw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:zw.GREYSCALE_0_05,color:zw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:zw.GREEN,borderColor:zw.GREEN},"&.MuiChip-outlinedInfo":{color:zw.BLUE,borderColor:zw.BLUE},"&.MuiChip-outlinedWarning":{color:zw.ORANGE,borderColor:zw.ORANGE},"&.MuiChip-outlinedError":{color:zw.RED,borderColor:zw.RED}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Gw,boxShadow:"none",backgroundColor:zw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:zw.GREEN,borderColor:zw.GREEN},outlinedSecondary:{color:zw.BLUE,borderColor:zw.BLUE},label:{fontFamily:Kw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Zw,{"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:Gw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Gw,fontSize:$w,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:zw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${zw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:zw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:zw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:zw.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Gw,border:`solid 1px ${zw.GREYSCALE_0_15}`,color:zw.GREYSCALE_0_60,marginRight:0,width:Bw,height:Bw},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${zw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Gw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:zw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:$w}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:jw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:zw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:zw.GREYSCALE_25,fontSize:jw,fontFamily:Kw.FONT_FAMILY,fontWeight:Uw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:zw.TEXT_PRIMARY},"&.Mui-error":{color:zw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:zw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Vw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:zw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Vw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:$w,lineHeight:"16px",backgroundColor:zw.WHITE,borderRadius:Gw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_05}`,borderColor:zw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.RED}`,boxShadow:`0px 0px 0px 1px ${zw.RED}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_10}`,borderColor:zw.GREYSCALE_0_10,backgroundColor:zw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:zw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:zw.GREYSCALE_0_15,borderRadius:Gw,boxShadow:`inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Zw,{...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:zw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:zw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&:focus":{backgroundColor:zw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:zw.GREYSCALE_0_30,"&:hover":{backgroundColor:zw.GREYSCALE_0_0,borderColor:zw.GREYSCALE_0_15},"& ~svg":{color:zw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Gw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:zw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:$w,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:jw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:jw,fontWeight:Uw,color:zw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Uw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(iC,null),checkedIcon:Wo.createElement(aC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:zw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:zw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:zw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(SP,null),checkedIcon:Wo.createElement(rC,null),indeterminateIcon:Wo.createElement(oC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Gw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:zw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:zw.GREYSCALE_0_55,color:zw.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:zw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:zw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:zw.GREYSCALE_0_55,"&:hover":{color:zw.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:zw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:zw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:$w,color:zw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Uw},secondary:{fontSize:jw,color:zw.GREYSCALE_45,fontWeight:Vw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:$w,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:$w,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:zw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:jw,borderBottom:`solid 1px ${zw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:$w,color:zw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.RED}}},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.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:zw.GREEN,height:"24px","&.Mui-disabled":{color:zw.GREYSCALE_0_15}},rail:{backgroundColor:zw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw,boxShadow:`inset 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.WHITE,boxShadow:`0px 1px 2px 0px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`,"&:hover":{borderRadius:Gw,boxShadow:`0 2px 4px 0 ${zw.GREYSCALE_0_30}, 0 0 0 1px ${zw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:zw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:zw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:zw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:zw.GREYSCALE_0_15},markLabel:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:zw.WHITE,color:zw.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:zw.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:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:zw.GREYSCALE_0_15,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.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:$w,fontWeight:Uw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${zw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,backgroundColor:zw.GREYSCALE_0_03,borderRadius:Gw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:zw.GREYSCALE_25,"&.Mui-selected":{color:zw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:$w,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${zw.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${zw.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderRight:`1px solid ${zw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Uw,backgroundColor:zw.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:zw.GREYSCALE_98,borderBottom:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderTop:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:zw.GREYSCALE_0_05,"&:hover":{backgroundColor:zw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:zw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(lC,{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 ${zw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:$w,borderRadius:Gw,padding:"7px 16px",border:`1px solid ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_60,color:zw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:zw.GREYSCALE_0_03,border:`1px solid ${zw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:zw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`,border:`1px solid ${zw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:zw.GREYSCALE_25,backgroundColor:zw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:jw,height:24,width:24,padding:7},sizeLarge:{fontSize:Hw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:$w,borderRadius:Gw}}},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:zw.GREYSCALE_20},tooltip:{backgroundColor:zw.GREYSCALE_20,fontSize:jw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const wP={mode:"light",primary:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},secondary:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},error:{light:zw.RED_PALE,main:zw.RED,dark:zw.RED_DARK,contrastText:zw.WHITE},warning:{light:zw.ORANGE_PALE,main:zw.ORANGE,dark:zw.ORANGE_DARK,contrastText:zw.WHITE},success:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},info:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},text:{primary:zw.TEXT_PRIMARY,secondary:zw.TEXT_SECONDARY,disabled:zw.GREYSCALE_0_30},action:{hover:zw.GREYSCALE_0_03,hoverOpacity:.05,selected:zw.GREYSCALE_0_05,focus:zw.MISC_FOCUS_BORDER},amethyst:{main:zw.PURPLE,light:zw.PURPLE_PALE,dark:zw.PURPLE_DARK,contrastText:zw.WHITE},background:{paper:zw.WHITE,default:zw.GREYSCALE_95},divider:zw.GREYSCALE_0_15},CP=e=>({components:EP,palette:wP,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:$w,fontWeightLight:Ww,fontWeightRegular:Vw,fontWeightMedium:Uw,fontWeightBold:Yw,htmlFontSize:$w,fontFamily:Kw.FONT_FAMILY,button:{fontWeight:Uw,fontSize:$w,textTransform:"none"},body1:{fontSize:Hw,lineHeight:"24px"},body2:{fontSize:$w,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Bw,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Hw,fontWeight:Uw,lineHeight:"16px"},h6:{fontSize:$w,fontWeight:Uw,lineHeight:"16px"},caption:{color:zw.TEXT_SECONDARY},subtitle1:{fontSize:$w,color:zw.TEXT_SECONDARY},subtitle2:{fontSize:jw,color:zw.TEXT_SECONDARY}},shape:{borderRadius:Gw}}),RP={...Fw,MISC_FOCUS_BORDER:zw.MISC_FOCUS_BORDER},kP=CP().palette,LP={TEXT:kP.text.primary,DISABLED:kP.text.disabled,HOVER:kP.action.hover,WHITE:RP.GREYSCALE_100,BORDER_LIGHT:RP.GREYSCALE_90,BORDER_MEDIUM:RP.GREYSCALE_85,BORDER_HEAVY:RP.GREYSCALE_50,DARK_MODE_TEXT:RP.GREYSCALE_95,DARK_MODE_BORDER:RP.GREYSCALE_95,DARK_MODE_DISABLED:RP.GREYSCALE_70,DARK_MODE_BACKGROUND:RP.GREYSCALE_20,SELECTED:kP.primary.main},_P=(e,t)=>{const n=Gn(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()},AP=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,IP=e=>{const t=(e=>{const t=AP.exec(e);if(t){const[,e,n,r,o]=t;return gn(+n,+r,+o,+e/255)}return gn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},PP=e=>{e.stopPropagation(),e.preventDefault()},MP=Kk(eA,{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)":{[`& .${$e}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${$e}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),DP=Kk(eA)({position:"absolute",height:"100%",width:"3px"}),OP=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Go.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?He.PixelsMin:He.PixelsMinTable,f=n?0:1,h={left:r&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Be.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;m(t)},b=e=>{PP(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=e.touches[0].clientX-d.initX;m(t)},x=e=>{PP(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===ze.LEFT||e.key===ze.RIGHT){PP(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===ze.LEFT?t-n:t+n;m(r)}else e.key===ze.SPACE||e.key===ze.ENTER?(PP(e),s(e),g()):e.key===ze.ESC&&(PP(e),s(e),m(d.initWidth))}:void 0;return Wo.createElement(MP,{className:je,isLastColumn:n,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Be.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":je},Wo.createElement(DP,{className:$e}))};function TP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NP=(e,t)=>Wo.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){TP(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),Wo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),qP=Go.forwardRef(NP);function FP(){return FP=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},FP.apply(this,arguments)}const zP=Kk(eA,{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"}))),jP=Kk(qP,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),$P=Kk(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),HP=Kk(CA)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),BP=Kk(NI)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),GP=Kk(NI,{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")}))),WP=Kk("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"}))),VP=Kk("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),UP=Kk(t_)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),YP=Kk(oI)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function KP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XP=(e,t)=>Wo.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){KP(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),Wo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),QP=Go.forwardRef(XP);let JP={};const ZP=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Go.useState(!1),p=Go.useRef(null),f=Go.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wo.createElement(Wo.Fragment,null,Wo.createElement(GP,{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),JP={}),null!=a&&a.length&&(d(!0),JP[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wo.createElement(WP,null),Wo.createElement(VP,null,Wo.createElement(YP,null,Wo.createElement(o,null)),Wo.createElement(UP,{variant:"body2"},r)),null!=a&&a.length?Wo.createElement(QP,null):null),(null==a?void 0:a.length)&&Wo.createElement(tM,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=JP,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},eM=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wo.createElement(BP,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wo.createElement(ZP,FP({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),tM=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Wo.createElement($P,FP({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[eM({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wo.createElement(HP,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,nM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},rM=(e,t)=>e.some((e=>t[e]>0));function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iM=(e,t)=>Wo.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){oM(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),Wo.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"})),aM=Go.forwardRef(iM);function lM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sM=(e,t)=>Wo.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){lM(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),Wo.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"})),uM=Go.forwardRef(sM);function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dM=(e,t)=>Wo.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){cM(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),Wo.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"})),pM=Go.forwardRef(dM);function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hM=(e,t)=>Wo.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){fM(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),Wo.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"})),mM=Go.forwardRef(hM);function gM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vM=(e,t)=>Wo.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){gM(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),Wo.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"})),bM=Go.forwardRef(vM);function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xM=(e,t)=>Wo.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){yM(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),Wo.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"})),SM=Go.forwardRef(xM);function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wM=(e,t)=>Wo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wo.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"})),CM=Go.forwardRef(wM);function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kM=(e,t)=>Wo.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){RM(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),Wo.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"})),LM=Go.forwardRef(kM);function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AM=(e,t)=>Wo.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){_M(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),Wo.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"})),IM=Go.forwardRef(AM);function PM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MM=(e,t)=>Wo.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){PM(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),Wo.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"})),DM=Go.forwardRef(MM);let OM=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const TM=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[OM.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:aM,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:mM,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[OM.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:bM,enabled:!0}]}]),n[OM.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DM,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:SM,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:IM,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:CM,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:LM,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:uM,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[OM.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:pM,enabled:!0}]}]),p},NM=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=ug({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Go.useState(null),[o,i]=Go.useState(nM);return Go.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Go.useCallback((()=>i(nM)),[]),updateSelectionActionsEnabledStatus:Go.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:rM(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:rM(["qSelected"],n.qStateCounts),canSelectPossible:rM(["qOption"],n.qStateCounts),canSelectAlternative:rM(["qAlternative"],n.qStateCounts),canSelectExcluded:rM(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Go.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]);Go.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 w=Go.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wo.createElement(zP,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&Wo.createElement(jP,{height:qe,className:Fe,"data-testid":Fe,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wo.createElement(qP,null)),Wo.createElement(tM,{open:e,anchorEl:n.current,onClose:w,menuGroups:TM({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},qM=e=>e.isDark?{background:e.color,borderColor:LP.DARK_MODE_BORDER,color:LP.DARK_MODE_TEXT,disabledColor:LP.DARK_MODE_DISABLED,iconColor:LP.DARK_MODE_TEXT}:{background:e.color,borderColor:LP.BORDER_MEDIUM,color:LP.TEXT,disabledColor:LP.DISABLED},FM=Kk(eA,{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}`}))),zM=Kk(xP,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),jM=Kk(dA,{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)}))),$M=Kk(t_)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),HM=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Go.useMemo((()=>qM(r.background)),[r]);if(!n.active)return null;const a=o?Wo.createElement(FM,{footerStyle:i},e):null;return t?ig.createPortal(e,t):a},BM={},GM=Go.createContext(BM),WM=()=>Go.useContext(GM),VM=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=Go.useMemo((()=>qM(p.background)),[p]),b=o?o.getBoundingClientRect().width:h.width,y=ug({translator:d}),x=Go.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:h,layout:m,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,v,g,b]);return Wo.createElement(GM.Provider,{value:x},e)};let UM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),YM=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 KM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XM=(e,t)=>Wo.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){KM(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),Wo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),QM=Go.forwardRef(XM);function JM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZM=(e,t)=>Wo.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){JM(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),Wo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),eD=Go.forwardRef(ZM);function tD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nD=(e,t)=>Wo.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){tD(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),Wo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),rD=Go.forwardRef(nD),oD={FirstPage:eD,PreviousPage:QM,NextPage:QP,LastPage:rD,FirstPageRTL:rD,PreviousPageRTL:QP,NextPageRTL:QM,LastPageRTL:eD},iD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=WM(),u=oD[`${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}},aD=()=>{const{pageInfo:e,width:t}=WM(),n=0===e.page,{IconComponent:r,styledProps:o}=iD({type:UM.FirstPage,disabledCondition:n,pageNumber:0});return t<=YM.FirstPage?null:Wo.createElement(jM,o,Wo.createElement(r,{height:qe}))},lD=(e,t,n=!1)=>{n&&e.key===ze.TAB&&!e.shiftKey&&(PP(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))},sD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>lD(e,t,r):null;return o<=YM.LastPage?null:Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},uD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>YM.FirstPage&&o>YM.LastPage)&&t.enabled?e=>lD(e,t,r):null;return Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},cD=()=>{const{pageInfo:e}=WM(),t=0===e.page,{IconComponent:n,styledProps:r}=iD({type:UM.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wo.createElement(jM,r,Wo.createElement(n,{height:qe}))},dD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=WM(),{page:o,rowsPerPage:i}=n;if(t<=YM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wo.createElement($M,{variant:"caption"},a)},pD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=WM(),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 Wo.createElement(Wo.Fragment,null,Wo.createElement($M,{variant:"caption",id:d},u,":"),Wo.createElement(zM,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},fD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=WM();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>YM.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wo.createElement(Wo.Fragment,null,t.rowsPerPageOptions.map((e=>Wo.createElement("option",{key:e,value:e},e))));return Wo.createElement(pD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},hD=1e3,mD="…",gD=({totalPages:e,page:t})=>{const n=Math.min(e,hD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-hD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wo.createElement("option",{key:"startMoreOptions",value:mD,disabled:!0},mD)),o<e-1&&a.push(Wo.createElement("option",{key:"endMoreOptions",value:mD,disabled:!0},mD)),Wo.createElement(Wo.Fragment,null,a)},vD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=WM(),{page:o}=e;if(t<=YM.SelectPage)return null;const i=Wo.createElement(gD,{totalPages:n,page:o});return Wo.createElement(pD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},bD=e=>Wo.createElement(VM,e,Wo.createElement(fD,null),Wo.createElement(vD,null),Wo.createElement(dD,null),Wo.createElement(aD,null),Wo.createElement(cD,null),Wo.createElement(uD,null),Wo.createElement(sD,null));var yD=Go.memo(bD);const xD=e=>Wo.createElement(HM,e,Wo.createElement(yD,e)),SD={},ED=Go.createContext(SD),wD=()=>Go.useContext(ED),CD=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=Go.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return yg.jsx(ED.Provider,{value:s,children:e})},RD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=wD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:ft;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:yg.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:yg.jsx("span",{style:{...Ct,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},kD={},LD=Go.createContext(kD),_D=()=>Go.useContext(LD),AD=({children:e,styleService:t})=>yg.jsx(LD.Provider,{value:t,children:e}),ID=21,PD=20,MD=PD,DD=16+bt+1,OD=.75;let TD=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),ND=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qD=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===TD.Image},FD="/qHyperCubeDef",zD=-1,jD="PSEUDO-DIM",$D=e=>void 0===e?ht:e,HD=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,BD=e=>HD(e,He.PixelsDefault),GD=(e,t)=>HD(e,He.PercentageDefault)*t/100,WD=(e,t,n)=>{switch(null==t?void 0:t.type){case Be.Pixels:return BD(t.pixels);case Be.Percentage:return GD(t.percentage,e);case Be.FitToContent:case Be.Auto:default:return n}},VD=({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===jD)return e+0;const h=n(p),m=!u&&f&&d<s-1?ID:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+DD+m+h+g)}),0),UD=({layoutService:e,headersData:t,columnWidths:n,measureTextForHeader:r,estimateWidthForDimensionValue:o})=>{let i=[];const a=t.data[t.data.length-1][0],l=n.at(-1),s=VD({headers:a,layoutService:e,estimateWidthForDimensionValue:o}),u=((e,t)=>e.reduce(((e,n)=>Math.max(e,DD+t(n.qFallbackTitle))),0))(e.visibleMeasureInfo,r);let c=0;const d=a.findIndex((e=>e.id===jD));if(e.hasPseudoDimOnLeft)if(0===d){const e=Math.max(l,s,u);i=[Math.max(24,e-l),l]}else{c=VD({headers:a.slice(0,d),layoutService:e,estimateWidthForDimensionValue:o,shouldConsiderCombinatedLength:!0,measureTextForHeader:r,longestMeasureValuePossible:u});const t=Math.max(l,s,c);i=[Math.max(24,t-l),l]}else i=[Math.max(24,s-l),l];const p=i.reduce(((e,t)=>e+t),0);return{leftGridWidth:p,leftGridColumnWidths:i,leftGridFullWidth:p}};function YD({layoutService:e,tableWidth:t,headersData:n}){const r=_D(),{measureText:o}=Xo(r.header),{estimateWidth:i}=Xo({...r.dimensionValues,fontWeight:$D(r.dimensionValues.fontWeight)}),{measureText:a}=Xo({...r.dimensionValues,...r.measureLabels}),l=Go.useCallback(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+DD,l=Math.max(i,e);return Math.max(n,p?l:WD(t,o,l))}),0),h=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===jD)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?MD:0;return DD+o(t)+PD+r})(r);return Math.max(i,t)}),0);let m=0,g=n.data.at(-1);p&&n.size.x>1&&g&&g[0]&&(g=g[0]);const v=g.map(((n,o)=>{let a=DD;if(r&&void 0!==l&&l===n.colIdx)a=r;else{let r;n.columnWidthLocation===Qe.Pivot?r=u:n.columnWidthLocation===Qe.Dimension&&({columnWidth:r}=n);let l=0;n.isLeftDimension?l=n.id===jD?f():Math.max(h(o),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(qD(l))return He.PixelsDefault;const u=!d&&o&&n<s-1?ID:0;return DD+i(r)+u})(n,o)):n.isLeftDimension||(l=h(o),n.columnWidthLocation===Qe.Measures&&(l=f(l))),a=p?l:WD(t,r,l)}return m+=a,a}));return p&&n.size.x>1?UD({layoutService:e,headersData:n,columnWidths:v,measureTextForHeader:o,estimateWidthForDimensionValue:i}):{leftGridWidth:Math.min(t*OD,m),leftGridColumnWidths:v,leftGridFullWidth:m}}),[i,n,e,o,a,t]),[s,u]=Go.useState(l);lg((()=>{u(l())}),[l]);const c=Go.useCallback(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=_D(),{estimateWidth:c,measureText:d}=Xo(u.measureValues),{estimateWidth:p}=Xo({...u.dimensionValues,fontWeight:$D(u.dimensionValues.fontWeight)}),f=t-o-bt,h=n.at(-1),m=h===zD,g=a.length-i>n.length?ID:0,v=Go.useMemo((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(He.PixelsMax,Math.max(He.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 Be.Pixels:i(t,BD(o));break;case Be.Percentage:i(t,GD(a,f));break;case Be.FitToContent:i(t,((e,t,n)=>n?He.PixelsDefault:DD+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,qD(e)));break;case Be.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(He.AutoMin,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),b=Go.useMemo((()=>{if(m){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[m,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Go.useCallback((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[m,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let XD;const QD=new Uint8Array(16);function JD(){if(!XD&&(XD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!XD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return XD(QD)}const ZD=[];for(let e=0;e<256;++e)ZD.push((e+256).toString(16).slice(1));var eO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tO(e,t,n){if(eO.randomUUID&&!t&&!e)return eO.randomUUID();const r=(e=e||{}).random||(e.rng||JD)();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 ZD[e[t+0]]+ZD[e[t+1]]+ZD[e[t+2]]+ZD[e[t+3]]+"-"+ZD[e[t+4]]+ZD[e[t+5]]+"-"+ZD[e[t+6]]+ZD[e[t+7]]+"-"+ZD[e[t+8]]+ZD[e[t+9]]+"-"+ZD[e[t+10]]+ZD[e[t+11]]+ZD[e[t+12]]+ZD[e[t+13]]+ZD[e[t+14]]+ZD[e[t+15]]}(r)}const nO=()=>{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:tO()},rO=e=>e===zD?jD:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:nO()})(e),oO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{var o,i;n&&(n.canBeResized=!0,n.isActivelySorted=r===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),n.colIdx=n.colIdx||r,n.dimensionInfoIndex===zD?n.columnWidthLocation=Qe.Measures:n.isLeftDimension?n.columnWidthLocation=Qe.Dimension:t.at(-1)===zD?n.columnWidthLocation=Qe.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Qe.Pivot))},iO=(e,t,n)=>{var r;const o=rO(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===zD?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Dimension}},aO=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===zD?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]=iO(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=iO(e,t,o)})),l},lO=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(zD)?aO({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(aO({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++)oO({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else oO({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 sO(e){return sO="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},sO(e)}function uO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(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 dO(e,t,n){return t&&cO(e.prototype,t),n&&cO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pO(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&&hO(e,t)}function fO(e){return fO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fO(e)}function hO(e,t){return hO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hO(e,t)}function mO(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 gO(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=fO(e);if(t){var o=fO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mO(this,n)}}function vO(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 bO(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 bO(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 bO(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 yO={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:xO(e),value:xO(t),useEqualSign:n}}(n,o,i))}})),t}};function xO(e){try{return decodeURIComponent(e)}catch(t){return e}}function SO(e){if(!(this instanceof SO))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 yO.fromSearchString(t.search)}}})}function EO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}SO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},SO.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 wO,CO=function(){function e(t){uO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return dO(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(){uO(this,e)}return dO(e,[{key:"decode",value:function(e){for(var t,n="",r=new CO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),kO=function(e){return e>=0&&e<=1114111},LO=function(e){return e.match(/[\s]/)},_O=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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())&&!LO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return kO(a)?String.fromCharCode(a):"�"}}]),n}(RO),AO=function(){function e(t,n){uO(this,e),this._key=t,this._value=n}return dO(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}(),IO=function(){function e(){uO(this,e)}return dO(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 AO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return AO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||AO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),PO=function(){function e(){uO(this,e),this.clear()}return dO(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 IO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),MO=function(){var e,t,n,r=[],o=[],i=new PO;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){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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,MO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=MO.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)&&kO(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)&&kO(r)?String.fromCharCode(r):null}}]),n}(RO),OO=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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),kO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(RO),TO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(wO=document.createElement("div"));var NO=Array.prototype.indexOf,qO=[",",".","_"," "],FO={default:[",",".","-","_"," "]},zO={width:["%"],height:["%"]},jO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},$O={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":jO.image,"background-color":jO.color,"border-color":jO.color,"border-image":jO.image,color:jO.color,icon:jO.image,"list-style-image":jO.image,"outline-color":jO.color},HO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function BO(e,t,n){var r;if(t){if(NO)return NO.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 GO(e){if(null==e)return"";var t,n=document.createTextNode(e);return wO.appendChild(n),t=wO.innerHTML,wO.removeChild(n),t}function WO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<HO.attr_val;i++)if(t.toLowerCase().match(HO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=zO[e])||(r=FO.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]/)&&BO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function VO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<HO.css_val.length;r++)if(t.toLowerCase().indexOf(HO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=$O[e])||(o=jO.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]/)&&BO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function UO(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 OO,new _O];!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 YO=[],KO=0;KO<255;KO++)YO[KO]=KO>=48&&KO<=57||KO>=65&&KO<=90||KO>=97&&KO<=122?null:KO.toString(16);var XO=function(e){return GO(e.unsafe)},QO=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]=VO(t,n[t],!0),i+=VO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},JO=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]=WO(i,t[i],!0),o+=WO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function ZO(e,t){throw new Error(t)}var eT={canonicalize:UO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===sO(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?XO(e):"css"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),QO(e)):"attr"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),JO(e)):void ZO(this,"Invalid parameter type")},encodeForAttr:WO,encodeForAttr2:function(e){return WO("nonsens",e,!0)},encodeForCSS:VO,encodeForHref:function(e){UO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new SO(e),n=SO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+SO.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=qO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),BO(o,t)>=0||null==YO[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:GO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=UO(t).toLowerCase():ZO(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=vO(null!==(t=TO.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 tT=(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]},nT=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"}}},rT=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&eT.isSafeDataURL(t)?{type:TD.Image,url:t,text:e,imageSize:n,resolvedImagePosition:nT(r)}:{type:TD.Text,url:void 0,text:e},oT=(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)===ND.Attribute||null==n?void 0:n.urlLabel},iT=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:TD.Link,url:eT.encodeForHref(t),text:e}}catch(t){return{type:TD.Text,url:void 0,text:e}}},aT=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return TD.Link;case"image":return TD.Image;default:return TD.Text}})(t)){case TD.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=tT(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return rT({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return rT({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=tT(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return rT({text:n,url:t,imageSize:o,imagePosition:i})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,o,i);case TD.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===ND.Attribute){const r=oT(n,e,t),o=e.qText||r||"";return iT({text:o,url:r})}if(o===ND.Dimension){const n=oT(r,e,t)||e.qText;return iT({text:n,url:e.qText})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:TD.Text,url:void 0,text:e.qText}}},lT=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?IP(a):null,s=i?IP(i):null,u=((e,t)=>e||!t?null:Un(t)?LP.WHITE:LP.TEXT)(s,l);return{color:null!=u?u:s,background:l}},sT=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:sT(e,t)),e),uT=(e,t,n,r,o,i)=>{if(o)return sT(0,e);const a=i?mt-n:gt-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%mt;l=e.qDown+n}return Math.min(a,sT(l,e))},cT=({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})=>{const p=!c&&e.qType===tt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;f=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else f=e.qText;const h={id:nO(),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:uT(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===tt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===tt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===tt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:lT(s,e),selectionCellType:u?Xe.NX_CELL_LEFT:Xe.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:aT({...e,qText:f},l===zD?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},dT=(e,t,n,r,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(zD);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const v=n.qTop-r.page*r.rowsPerPage,b=Math.max(0,v+s-d.qUp),y=n.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===tt.NX_DIM_CELL_NORMAL||d.qType===tt.NX_DIM_CELL_NULL||d.qType===tt.NX_DIM_CELL_TOTAL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===tt.NX_DIM_CELL_PSEUDO){var x,S,E,w,C;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(w=null===(C=c||u)||void 0===C?void 0:C.indentLevel)&&void 0!==w?w:0}}let R=p;l&&(R=f===h?f+1:f,0===f&&0===h&&0===d.qSubNodes.length&&(R=0));const k=l&&void 0===(null===(g=e[p][b])||void 0===g?void 0:g.ref.qText)||!e[p][b]?cT({node:d,parent:c,root:u,x:R,y:y,pageY:b,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][b];if(e[p][b]=k,d.qSubNodes.length){const e=l?0:p+1;t(u||k,k,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},pT=(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)}))}))},fT=(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},hT=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=dT(e.grid,a,l,n,r,o,i);pT(s,n.rowsOnCurrentPage);const u=fT(s,r);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},mT=({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===tt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:nO(),ref:t,isNull:u}}))})),o},gT=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?mT({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},vT=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:cT({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},bT=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=vT(e.grid,a,l,n,r,o,i);pT(s,n.size.x);const u=fT(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},yT=e=>{if(e===zD)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,n=t.findIndex((({id:e})=>e===Je.CellForegroundColor.toString())),r=t.findIndex((({id:e})=>e===Je.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===Je.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===Je.ImageLabel.toString())),a=t.findIndex((({id:e})=>e===Je.Link.toString())),l=t.findIndex((({id:e})=>e===Je.LinkLabel.toString()));return{cellForegroundColor:n,cellBackgroundColor:r,imageUrl:o,link:a,linkLabel:l,imageLabel:i}},xT=(e,t,n,r,o)=>{const[i,a]=Go.useState(null),l=((e,t,n)=>Go.useMemo((()=>({left:e.map(yT),top:t.map(yT),measures:n.map(yT)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=Go.useMemo((()=>lO(t,o,r)),[t,o,r]),u=Go.useCallback((()=>e.slice(1).reduce(((e,t)=>gT({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return mT({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),c=Go.useCallback((()=>e.slice(1).reduce(((e,n)=>bT({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=vT([],a,i,t,n,r,o);pT(l,t.size.x);const s=fT(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=Go.useCallback((()=>e.slice(1).reduce(((e,o)=>hT({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=dT([],a,i,n,t,r,o);pT(l,n.rowsOnCurrentPage);const s=fT(l,t);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=Go.useState((()=>u())),[h,m]=Go.useState((()=>c())),[g,v]=Go.useState((()=>d()));lg((()=>{f(u())}),[u]),lg((()=>{m(c())}),[c]),lg((()=>{v(d())}),[d]),lg((()=>{i&&i.forEach((e=>{f((t=>gT({prevData:t,dataPage:e,pageInfo:n}))),m((n=>bT({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),v((o=>hT({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const b=Go.useCallback((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:b}},ST=Math.sqrt(1e4),ET=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/ST),r=Math.ceil(e.qHeight/ST);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*ST,qTop:e.qTop+n*ST,qWidth:Math.min(ST,e.qWidth-o*ST),qHeight:Math.min(ST,e.qHeight-n*ST)});return t};function wT({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Go.useRef(e);return t.current=e,t})(n.page),i=e,a=Go.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,FD,e,t,!1))}),[i]),l=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(FD,e,t,!1))}),[i]),s=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(FD,e,t,!1))}),[i]),u=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(FD,e,t,!1))}),[i]),c=Go.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(FD,e.reduce(((e,t)=>[...e,...ET(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Go.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 Qe.Dimension:c=[{qPath:`${FD}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Qe.Measures:if(o)c=l.map(((e,t)=>({qPath:`${FD}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${FD}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Qe.Pivot:c=[{qPath:`${FD}/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]);return Go.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const CT=(e,t)=>e>t?et.Forward:e<t?et.Backward:et.None,RT=(e,t,n)=>(r,o)=>{if(r===tt.NX_DIM_CELL_PSEUDO)return zD;const i=t[n+o];return e[i]},kT=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},LT=({width:e,height:t,children:n,isLeftGrid:r})=>yg.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+bt},children:n}),_T=e=>`scrollable-container--${e}`,AT=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=wD();return yg.jsx("div",{ref:t,"data-key":_T(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 IT=Wo.forwardRef(AT);const PT=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>yg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function MT(){return MT=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},MT.apply(this,arguments)}function DT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OT(e,t){return OT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OT(e,t)}function TT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,OT(e,t)}var NT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qT(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||NT(r)&&NT(o)))return!1;var r,o;return!0}function FT(e,t){var n;void 0===t&&(t=qT);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 zT(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 jT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $T(e){cancelAnimationFrame(e.id)}function HT(e,t){var n=jT();var r={id:requestAnimationFrame((function o(){jT()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var BT=-1;function GT(e){if(void 0===e&&(e=!1),-1===BT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),BT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BT}var WT=null;function VT(e){if(void 0===e&&(e=!1),null===WT||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?WT="positive-descending":(t.scrollLeft=1,WT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),WT}return WT}var UT=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YT(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,DT(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:DT(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=FT((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=FT((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return KT(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=GT();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,m,this._instanceProps,x):m,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(VT()){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&&$T(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?UT:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],L=[];if(r>0&&g)for(var _=R;_<=k;_++)for(var A=E;A<=w;A++)L.push(Go.createElement(t,{columnIndex:A,data:d,isScrolling:b?x:void 0,key:f({columnIndex:A,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,A)}));var I=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Go.createElement(u||c||"div",{children:L,ref:s,style:{height:I,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],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KT=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XT=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},QT=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},JT=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]},ZT=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?eN(e,t,n,i,0,r):tN(e,t,n,Math.max(0,i),r)},eN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=JT(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&&JT(e,t,r,n).offset<o;)r+=a,a*=2;return eN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},nN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=JT(e,t,n,i),u="column"===e?QT(t,i):XT(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}},rN=YT({getColumnOffset:function(e,t,n){return JT("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ZT("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=JT("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:XT,getEstimatedTotalWidth:QT,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return nN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return nN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return JT("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ZT("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=JT("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("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}}),oN=function(e,t){return e};function iN(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,DT(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:DT(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=FT((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=FT((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return aN(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?GT():0:s.scrollHeight>s.clientHeight?GT():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(VT()){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&&$T(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?oN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Go.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Go.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lN=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]},sN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=lN(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},uN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&lN(e,n,t).offset<r;)n+=i,i*=2;return sN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},cN=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},dN=iN({getItemOffset:function(e,t,n){return lN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:cN,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=lN(e,t,o),p=cN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?sN(e,t,o,0,n):uN(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=lN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=lN(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 pN(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 fN=["style"],hN=["style"];function mN(e,t){var n=e.style,r=zT(e,fN),o=t.style,i=zT(t,hN);return!pN(n,o)&&!pN(r,i)}const gN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vN=10,bN=(e,t)=>e.current===et.Backward?t:0,yN=(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},xN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,SN=({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(yN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&xN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},EN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===et.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return SN({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},wN=({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=bN(n,vN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+vN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=SN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...EN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},CN=(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},RN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,kN=({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(CN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&RN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},LN=({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=bN(n,vN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+vN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=kN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===et.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=kN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},_N=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==et.None&&(d=LN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==et.None&&(p=wN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===et.None&&a.current===et.None&&(d=kN({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},AN=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))}}(_N,100),IN=function(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)}}(_N,75),PN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=_D();return yg.jsx("div",{style:{...e,...wt,...Lt(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},MN=({children:e,verticalAlign:t,width:n,right:r})=>yg.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}),DN=e=>{const{type:t,imageSize:n}=e;return t!==TD.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"};function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TN=(e,t)=>Wo.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){ON(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),Wo.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"})),NN=Go.forwardRef(TN);function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FN=(e,t)=>Wo.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){qN(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),Wo.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"})),zN=Go.forwardRef(FN),jN=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(je)};function $N(e,t){const n=e.isActive(),[r,o]=Go.useState(new Map),[i,a]=Go.useState(null);Go.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=Go.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Xe.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Go.useCallback((t=>async n=>{if(jN(n))return;if(e.isActive()||await e.begin([FD]),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===Xe.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[FD,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=Go.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Go.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const HN={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},BN=Go.createContext(HN),GN=()=>Go.useContext(BN),WN=({children:e,selections:t,updatePageInfo:n})=>{const r=$N(t,n);return yg.jsx(BN.Provider,{value:r,children:e})};var VN;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(VN||(VN={}));const UN={brighter:.5,darker:.3,opacity:.03},YN=(e,{cell:t,styleService:n})=>{if(e===VN.Background||e===VN.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]},KN=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return LP.SELECTED;const o=YN(VN.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?YN(VN.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${_P(i=o,UN)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},XN=({cell:e,styleService:t,isCellSelected:n})=>n?LP.WHITE:YN(VN.Color,{cell:e,styleService:t}),QN=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=YN(VN.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?ht:o},JN=({cell:e,styleService:t})=>YN(VN.FontStyle,{cell:e,styleService:t}),ZN=({cell:e,styleService:t})=>YN(VN.TextDecoration,{cell:e,styleService:t}),eq=e=>e?"pointer":"default",tq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},nq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=_D(),{interactions:i}=wD(),{isActive:a}=GN();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=XN({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?zN:NN;let p;return p=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,yg.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:tq({cell:e,expandOrCollapse:p})})},rq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},oq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},iq=({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}}},aq=(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"}},lq=e=>{if("alwaysFit"===e)return"contain"},sq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=n;return yg.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...iq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:yg.jsx("img",{src:a,alt:l,style:{width:oq(s),height:rq(s),objectFit:lq(s),objectPosition:aq(s,u),...d}})})},uq=(e,t,n)=>{if(!n.isEnabled(Ge)||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}},cq={display:"flex",flexDirection:"row",alignItems:"center"},dq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},pq=(e,t,n,r)=>t?{...dq,...e.nullValues}:n?{...cq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...cq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},fq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Ct,...!n&&Rt(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?ht:s,fontStyle:u,textDecoration:c}},hq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==TD.Image?uq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},mq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const{flags:l}=wD(),s=e.isNull?t.getNullValueText():r.text,u=fq(n,o,i,a,e.isNull);return r.type===TD.Image&&!e.isNull&&l.isEnabled(Ve)?yg.jsx(sq,{representation:r,styleService:n,textStyle:u,isLeftColumn:!0}):yg.jsx("span",{style:{padding:4,...u},children:s})},gq=(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},vq="flex-start",bq=(e,t)=>{return e.isNull?vq:t.type===TD.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:vq;var n},yq=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=_D(),{flags:a}=wD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return yg.jsx(PN,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?gq(g,t):gq(m,e),E=u.visibleMeasureInfo[S],w=aT(b.ref,E.representation,-1,-1,v[S].imageUrl,v[S].imageLabel),C=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():w.text,k=!b.isNull||!Number.isNaN(+R),L=lT(v[S],b.ref),_={...pq(i,b.isNull,C,L.background),...Lt(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...wt,padding:"0px 4px",display:"flex",justifyContent:hq(b,E,w,k,a)};return yg.jsx("div",{title:R,style:{..._,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:yg.jsx(MN,{width:DN(w),verticalAlign:bq(b,w),children:yg.jsx(mq,{cell:b,layoutService:u,styleService:i,representation:w,isNumeric:k,isTotalValueCell:C,color:L.color})})})};var xq=Wo.memo(yq,mN);const Sq=(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()},Eq=({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}`},wq={...Et,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Cq=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=_D(),x={...wq,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Go.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 gN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Go.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return gN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),w=((e,t,n,r)=>Go.useCallback(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),C=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>Go.useCallback((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===et.None?0:vN),h=e.gridHeight+a+(l.current===et.None?0:vN);let m=AN;h*f>1500&&(m=IN),await m(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return lg((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Go.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:yg.jsx(rN,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:w,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:C,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:Eq,children:xq})};var Rq=Go.memo(Cq);function kq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lq=(e,t)=>Wo.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){kq(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),Wo.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"}),Wo.createElement("use",{fillRule:"evenodd"})),_q=Go.forwardRef(Lq),Aq=e=>{const[t,n]=Go.useState(!1);return lg((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},Iq=({interactions:e,dataModel:t})=>{const[n,r]=Go.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Aq([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!jN(t)&&!o&&r(!0),setIsAdjustingWidth:i}};const Pq=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=wD(),{isActive:l}=GN(),s=_D(),[,u]=Go.useState({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(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===yt.Transparent?LP.WHITE:l,u=null===(o=pn(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=pn(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}(s,e);return yg.jsx(OP,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},Mq=e=>e.scrollTop;function Dq(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 Oq(e){return Bx("MuiPaper",e)}Gx("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 Tq=["className","component","elevation","square","variant"],Nq=Iw("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 wg({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&&wg({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${aE("#fff",Dw(t.elevation))}, ${aE("#fff",Dw(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var qq=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Cg(n,Tq),u=wg({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Oq,o)})(u);return yg.jsx(Nq,wg({as:o,ownerState:u,className:jx(c.root,r),ref:t},s))}));function Fq(e){return"string"==typeof e}function zq(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 jq(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 $q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hq(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cg(e,$q),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=jx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=wg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=wg({},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=zq(wg({},o,r)),l=jq(r),s=jq(o),u=t(a),c=jx(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=wg({},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=wg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Fq(e)?t:wg({},t,{ownerState:wg({},t.ownerState,n)})}(n,wg({},s,{ref:_S(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Bq=Gx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Gq=["center","classes","className"];let Wq,Vq,Uq,Yq,Kq=e=>e;const Xq=uy(Wq||(Wq=Kq`
120
120
  0% {
121
121
  transform: scale(0);
122
122
  opacity: 0.1;
@@ -126,7 +126,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
126
126
  transform: scale(1);
127
127
  opacity: 0.3;
128
128
  }
129
- `)),Uq=sy(Bq||(Bq=Wq`
129
+ `)),Qq=uy(Vq||(Vq=Kq`
130
130
  0% {
131
131
  opacity: 1;
132
132
  }
@@ -134,7 +134,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
134
134
  100% {
135
135
  opacity: 0;
136
136
  }
137
- `)),Yq=sy(Hq||(Hq=Wq`
137
+ `)),Jq=uy(Uq||(Uq=Kq`
138
138
  0% {
139
139
  transform: scale(1);
140
140
  }
@@ -146,7 +146,7 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
146
146
  100% {
147
147
  transform: scale(1);
148
148
  }
149
- `)),Kq=Aw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Xq=Aw((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]=Ho.useState(!1),p=zx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=zx(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Ho.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),bg.jsx("span",{className:p,style:f,children:bg.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Gq||(Gq=Wq`
149
+ `)),Zq=Iw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),eF=Iw((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]=Go.useState(!1),p=jx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=jx(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),Go.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),yg.jsx("span",{className:p,style:f,children:yg.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Yq||(Yq=Kq`
150
150
  opacity: 0;
151
151
  position: absolute;
152
152
 
@@ -189,4 +189,4 @@ function xC(e,t){let n;return n=t?iy(e).withConfig({displayName:t.label,shouldFo
189
189
  animation-iteration-count: infinite;
190
190
  animation-delay: 200ms;
191
191
  }
192
- `),zq.rippleVisible,Vq,550,(({theme:e})=>e.transitions.easing.easeInOut),zq.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),zq.child,zq.childLeaving,Uq,550,(({theme:e})=>e.transitions.easing.easeInOut),zq.childPulsate,Yq,(({theme:e})=>e.transitions.easing.easeInOut)),Qq=Ho.forwardRef((function(e,t){const n=QE({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=wg(n,jq),[l,s]=Ho.useState([]),u=Ho.useRef(0),c=Ho.useRef(null);Ho.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Ho.useRef(!1),p=IS(),f=Ho.useRef(null),h=Ho.useRef(null),m=Ho.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,bg.jsx(Xq,{classes:{ripple:zx(o.ripple,zq.ripple),rippleVisible:zx(o.rippleVisible,zq.rippleVisible),ripplePulsate:zx(o.ripplePulsate,zq.ripplePulsate),child:zx(o.child,zq.child),childLeaving:zx(o.childLeaving,zq.childLeaving),childPulsate:zx(o.childPulsate,zq.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Ho.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),v=Ho.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Ho.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 Ho.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),bg.jsx(Kq,Eg({className:zx(zq.root,o.root,i),ref:h},a,{children:bg.jsx(mL,{component:null,exit:!0,children:l})}))}));var Jq=Qq;function Zq(e){return Bx("MuiButtonBase",e)}var eF=Hx("MuiButtonBase",["root","disabled","focusVisible"]);const tF=["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"],nF=Aw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rF=Ho.forwardRef((function(e,t){const n=QE({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:_,type:P}=n,I=wg(n,tF),M=Ho.useRef(null),D=Ho.useRef(null),O=LS(D,_),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=jS(),[z,j]=Ho.useState(!1);s&&z&&j(!1),Ho.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,B]=Ho.useState(!1);Ho.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function G(e,t,n=c){return kS((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Ho.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=kS((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Ho.useRef(!1),re=kS((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(),h&&h(e))})),oe=kS((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(I.href||I.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===P?"button":P,ae.disabled=s):(I.href||I.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=LS(t,F,M),se=Eg({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},Zq,o);return n&&r&&(i.root+=` ${r}`),i})(se);return bg.jsxs(nF,Eg({as:ie,className:zx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:P},ae,I,{children:[i,H?bg.jsx(Jq,Eg({ref:O,center:o},A)):null]}))}));var oF=rF;const iF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function aF(e){const t=[],n=[];return Array.from(e.querySelectorAll(iF)).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 lF(){return!0}function sF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=aF,isEnabled:a=lF,open:l}=e,s=Ho.useRef(!1),u=Ho.useRef(null),c=Ho.useRef(null),d=Ho.useRef(null),p=Ho.useRef(null),f=Ho.useRef(!1),h=Ho.useRef(null),m=LS(t.ref,h),g=Ho.useRef(null);Ho.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Ho.useEffect((()=>{if(!l||!h.current)return;const e=wS(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Ho.useEffect((()=>{if(!l||!h.current)return;const e=wS(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return bg.jsxs(Ho.Fragment,{children:[bg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Ho.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),bg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const uF=Ho.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Ho.useState(null),l=LS(Ho.isValidElement(n)?n.ref:null,t);if(gS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),gS((()=>{if(i&&!o)return RS(t,i),()=>{RS(t,null)}}),[t,i,o]),o){if(Ho.isValidElement(n)){const e={ref:l};return Ho.cloneElement(n,e)}return bg.jsx(Ho.Fragment,{children:n})}return bg.jsx(Ho.Fragment,{children:i?rg.createPortal(n,i):i})}));function cF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dF(e){return parseInt(CS(e).getComputedStyle(e).paddingRight,10)||0}function pF(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&&cF(e,o)}))}function fF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function hF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=wS(e);return t.body===e?CS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=$S(wS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dF(r)+e}px`;const t=wS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${dF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=wS(r).body;else{const t=r.parentElement,n=CS(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 mF=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&&cF(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);pF(t,e.mount,e.modalRef,r,!0);const o=fF(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=fF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=hF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=fF(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&&cF(e.modalRef,t),pF(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&&cF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Ho.useRef({}),f=Ho.useRef(null),h=Ho.useRef(null),m=LS(h,d),[g,v]=Ho.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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=kS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||wS(f.current).body;o.add(x(),e),h.current&&S()})),w=Ho.useCallback((()=>o.isTopModal(x())),[o]),C=kS((e=>{f.current=e,e&&(c&&w()?S():h.current&&cF(h.current,y))})),R=Ho.useCallback((()=>{o.remove(x(),y)}),[y,o]);Ho.useEffect((()=>()=>{R()}),[R]),Ho.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=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=Tq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Eg({},n,t);return Eg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>Eg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:SS((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:SS((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const vF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bF={entering:{opacity:1},entered:{opacity:1}},yF=Ho.forwardRef((function(e,t){const n=XE(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=uL}=e,b=wg(e,vF),y=Ho.useRef(null),x=LS(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{Aq(e);const r=_q({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(h),k=S((e=>{const t=_q({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return bg.jsx(v,Eg({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Ho.cloneElement(a,Eg({style:Eg({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},bF[e],m,a.props.style),ref:x},t))}))}));var xF=yF;function SF(e){return Bx("MuiBackdrop",e)}Hx("MuiBackdrop",["root","invisible"]);const EF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],wF=Aw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Eg({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"}))),CF=Ho.forwardRef((function(e,t){var n,r,o;const i=QE({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=xF,transitionDuration:g}=i,v=wg(i,EF),b=Eg({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},SF,t)})(b),x=null!=(n=f.root)?n:c.root;return bg.jsx(m,Eg({in:p,timeout:g},v,{children:bg.jsx(wF,Eg({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:zx(y.root,l,null==x?void 0:x.className),ownerState:Eg({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var RF=CF;var kF=Hx("MuiBox",["root"]);const LF=YE(),AF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=gy("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Cx);return Ho.forwardRef((function(e,a){const l=Ix(n),s=Ox(e),{className:u,component:c="div"}=s,d=wg(s,jx);return bg.jsx(i,Eg({as:c,ref:a,className:zx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Sg,defaultTheme:LF,defaultClassName:kF.root,generateClassName:qx.generate});var _F=AF;function PF(e){return Bx("MuiModal",e)}Hx("MuiModal",["root","hidden","backdrop"]);const IF=["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"],MF=Aw("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})=>Eg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),DF=Aw(RF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),OF=Ho.forwardRef((function(e,t){var n,r,o,i,a,l;const s=QE({name:"MuiModal",props:e}),{BackdropComponent:u=DF,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:A,slots:_}=s,P=wg(s,IF),I=Eg({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=gF(Eg({},I,{rootRef:t})),z=Eg({},I,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PF,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:MF,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==A?void 0:A.root)?a:v.root,W=null!=(l=null==A?void 0:A.backdrop)?l:v.backdrop,V=Fq({elementType:B,externalSlotProps:G,externalForwardedProps:P,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:zx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Fq({elementType:H,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(Eg({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:zx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?bg.jsx(uF,{ref:T,container:h,disablePortal:S,children:bg.jsxs(B,Eg({},V,{children:[!C&&u?bg.jsx(H,Eg({},U)):null,bg.jsx(sF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Ho.cloneElement(f,$)})]}))}):null}));var TF=OF;var NF=Hx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const qF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FF(e){return`scale(${e}, ${e**2})`}const zF={entering:{opacity:1,transform:FF(1)},entered:{opacity:1,transform:"none"}},jF="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$F=Ho.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=uL}=e,g=wg(e,qF),v=IS(),b=Ho.useRef(),y=XE(),x=Ho.useRef(null),S=LS(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{Aq(e);const{duration:n,delay:r,easing:o}=_q({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:jF?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=_q({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:jF?o:.666*o,delay:jF?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=FF(.75),c&&c(e)})),A=E(d);return bg.jsx(m,Eg({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:A,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Ho.cloneElement(o,Eg({style:Eg({opacity:0,transform:FF(.75),visibility:"exited"!==e||a?void 0:"hidden"},zF[e],f,o.props.style),ref:S},t))}))}));$F.muiSupportAuto=!0;var BF=$F;var HF=Ho.createContext({});function GF(e){return Bx("MuiList",e)}Hx("MuiList",["root","padding","dense","subheader"]);const WF=["children","className","component","dense","disablePadding","subheader"],VF=Aw("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})=>Eg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var UF=Ho.forwardRef((function(e,t){const n=QE({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=wg(n,WF),c=Ho.useMemo((()=>({dense:a})),[a]),d=Eg({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},GF,t)})(d);return bg.jsx(HF.Provider,{value:c,children:bg.jsxs(VF,Eg({as:i,className:zx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var YF=Hx("MuiListItemIcon",["root","alignItemsFlexStart"]);var KF=Hx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const XF=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function QF(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function JF(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ZF(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 ez(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")&&ZF(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var tz=Ho.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=wg(e,XF),p=Ho.useRef(null),f=Ho.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gS((()=>{r&&p.current.focus()}),[r]),Ho.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${$S(wS(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=LS(p,t);let m=-1;Ho.Children.forEach(i,((e,t)=>{Ho.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=Ho.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Ho.cloneElement(e,t)}return e}));return bg.jsx(UF,Eg({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=wS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ez(t,r,s,l,QF);else if("ArrowUp"===n)e.preventDefault(),ez(t,r,s,l,JF);else if("Home"===n)e.preventDefault(),ez(t,null,s,l,QF);else if("End"===n)e.preventDefault(),ez(t,null,s,l,JF);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&&ZF(r,o);o.previousKeyMatched&&(s||ez(t,r,!1,l,QF,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function nz(e){return Bx("MuiPopover",e)}Hx("MuiPopover",["root","paper"]);const rz=["onEntering"],oz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],iz=["slotProps"];function az(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function sz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uz(e){return"function"==typeof e?e():e}const cz=Aw(TF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dz=Aw(Dq,{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 pz=Ho.forwardRef((function(e,t){var n,r,o;const i=QE({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=BF,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=wg(i.TransitionProps,rz),k=wg(i,oz),L=null!=(n=null==y?void 0:y.paper)?n:v,A=Ho.useRef(),_=LS(A,L.ref),P=Eg({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),I=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},nz,t)})(P),M=Ho.useCallback((()=>{if("anchorPosition"===c)return u;const e=uz(l),t=(e&&1===e.nodeType?e:wS(A.current).body).getBoundingClientRect();return{top:t.top+az(t,s.vertical),left:t.left+lz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Ho.useCallback((e=>({vertical:az(e,x.vertical),horizontal:lz(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Ho.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:sz(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=CS(uz(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:sz(n)}}),[l,c,M,D,m]),[T,N]=Ho.useState(g),q=Ho.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Ho.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Ho.useEffect((()=>{g&&q()})),Ho.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Ho.useEffect((()=>{if(!g)return;const e=ES((()=>{q()})),t=CS(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?wS(uz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:cz,$=null!=(o=null==b?void 0:b.paper)?o:dz,B=Fq({elementType:$,externalSlotProps:Eg({},L,{style:T?L.style:Eg({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:P,className:zx(I.paper,null==L?void 0:L.className)}),H=Fq({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:zx(I.root,p)}),{slotProps:G}=H,W=wg(H,iz);return bg.jsx(j,Eg({},W,!Oq(j)&&{slotProps:G,disableScrollLock:C},{children:bg.jsx(S,Eg({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:bg.jsx($,Eg({},B,{children:d}))}))}))}));function fz(e){return Bx("MuiMenu",e)}Hx("MuiMenu",["root","paper","list"]);const hz=["onEntering"],mz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gz={vertical:"top",horizontal:"right"},vz={vertical:"top",horizontal:"left"},bz=Aw(pz,{shouldForwardProp:e=>Lw(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yz=Aw(dz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xz=Aw(tz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Sz=Ho.forwardRef((function(e,t){var n,r;const o=QE({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=wg(o.TransitionProps,hz),x=wg(o,mz),S=(()=>{const e=Ho.useContext(YS);return null!=e&&e})(),E=Eg({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},fz,t)})(E),C=i&&!s&&d,R=Ho.useRef(null);let k=-1;Ho.Children.map(a,((e,t)=>{Ho.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:yz,A=null!=(r=b.paper)?r:p,_=Fq({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[w.root,l]}),P=Fq({elementType:L,externalSlotProps:A,ownerState:E,className:w.paper});return bg.jsx(bz,Eg({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?gz:vz,slots:{paper:L,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Eg({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:bg.jsx(xz,Eg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:C,variant:g},u,{className:zx(w.list,u.className),children:a}))}))}));function Ez(e){return Bx("MuiMenuItem",e)}var wz=Hx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Cz=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rz=Aw(oF,{shouldForwardProp:e=>Lw(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})=>Eg({},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"}},[`&.${wz.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iE(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wz.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iE(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wz.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iE(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})`:iE(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wz.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wz.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${NF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${NF.inset}`]:{marginLeft:52},[`& .${KF.root}`]:{marginTop:0,marginBottom:0},[`& .${KF.inset}`]:{paddingLeft:36},[`& .${YF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Eg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YF.root} svg`]:{fontSize:"1.25rem"}}))));var kz=Ho.forwardRef((function(e,t){const n=QE({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=wg(n,Cz),f=Ho.useContext(HF),h=Ho.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Ho.useRef(null);gS((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Eg({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Eg({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Ez,a))})(n),b=LS(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),bg.jsx(HF.Provider,{value:h,children:bg.jsx(Rz,Eg({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:zx(v.focusVisible,s),className:zx(v.root,d)},p,{ownerState:g,classes:v}))})}));const Lz=Aw(_F,{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}}))),Az=Aw("div")({position:"absolute",left:0,bottom:0}),_z=Aw("div")({...xt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),Pz=Aw("div")((()=>({...xt}))),Iz=Aw("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}))),Mz=Aw(Sz)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Dz=Aw(kz,{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}}}))),Oz=Aw("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:_D,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Tz={[MM.SORTING]:!0,[MM.SELECTIONS]:!0,[MM.SEARCHING]:!0},Nz=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=Ho.useRef(null),m=kD(),{app:g,model:v,interactions:b,embed:y,flags:x}=SD(),{fontSize:S,fontFamily:E,fontStyle:w,fontWeight:C,textDecoration:R,color:k,background:L,hoverBackground:A,activeBackground:_}=m.header,P=Ho.useRef(null),{shouldShowLockIcon:I,shouldShowMenuIcon:M}=u,{open:D,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:N}=kq({interactions:b,dataModel:e}),q={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:y,listboxRef:h},z={model:v,app:g},{labelTextAlign:j}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=iq(j,"flex-start",x);return bg.jsxs(Lz,{title:t.label,interactions:b,background:D?_:L,hoverBackground:A,shouldShowMenuIcon:M,isDimension:t.isDim,style:{...n,...Et,...Lt(t,i,r,o,m.grid.border),color:k},"data-testid":"title-cell",onClick:T,children:[bg.jsxs(_z,{children:[I&&bg.jsx(Pz,{children:bg.jsx(Cq,{height:12})}),bg.jsx(Iz,{fontFamily:E,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:R,justifyContent:$,children:bg.jsx("span",{style:wt,children:t.label})})]}),t.isDim&&bg.jsxs(bg.Fragment,{children:[bg.jsx(OM,{headerData:t,translator:a,anchorRef:P,open:D,setOpen:O,interactions:b,menuAvailabilityFlags:Tz,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:M}),bg.jsx(Az,{ref:h}),bg.jsx(Az,{ref:P})]}),bg.jsx(Lq,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},qz=({rowSpan:e,columnSpan:t})=>{const n=kD();return e>0&&t>0?bg.jsx("div",{style:{...St,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 Fz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zz=(e,t)=>Go.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){Fz(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),Go.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),jz=Ho.forwardRef(zz);function $z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bz=(e,t)=>Go.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){$z(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),Go.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Go.createElement("use",{fillRule:"evenodd"})),Hz=Ho.forwardRef(Bz);function Gz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wz=(e,t)=>Go.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){Gz(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),Go.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"})),Vz=Ho.forwardRef(Wz),Uz=({cell:e,translator:t,dataModel:n,changeSortOrder:r,changeActivelySortedHeader:o})=>{const i=Ho.useRef(null),a=Ho.useRef(null),{app:l,model:s,interactions:u,embed:c}=SD(),{open:d,setOpen:p,handleOpenMenu:f}=kq({interactions:u,dataModel:n});return bg.jsxs(Dz,{component:"div",onClick:f,isActive:d,children:[bg.jsx("span",{children:e.label}),bg.jsxs(Oz,{className:"indent-mode-dropdown-more",visible:d,children:[bg.jsx(Vz,{}),e.isDim&&bg.jsxs(bg.Fragment,{children:[bg.jsx(OM,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:Tz,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),bg.jsx(Az,{ref:a}),bg.jsx(Az,{ref:i})]})]})]})},Yz=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,changeActivelySortedHeader:i})=>{const a=kD(),{interactions:l}=SD(),[s,u]=Ho.useState(!1),c=Ho.useRef(null),{headerCellHeight:d}=a,{color:p,background:f,hoverBackground:h,activeBackground:m,fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x}=a.header,S=e=>e.stopPropagation(),E={height:d,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return bg.jsxs(Lz,{isDimension:!0,background:s?m:f,interactions:l,hoverBackground:h,style:{...E,...Et,color:p},onClick:()=>l.active&&u(!s),children:[bg.jsxs(_z,{children:[bg.jsx(Iz,{fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x,justifyContent:"flex-start",children:bg.jsx("span",{style:wt,children:r.get("SNPivotTable.IndentMode.Rows")})}),s?bg.jsx(Hz,{}):bg.jsx(jz,{}),bg.jsx(Az,{ref:c})]}),bg.jsx(Mz,{open:s,anchorEl:c.current,children:t.map(((e,a)=>[e&&(null==e?void 0:e.id)!==FD&&bg.jsx("li",{role:"presentation",onClick:S,onKeyDown:S,children:bg.jsx(Uz,{cell:e,translator:r,dataModel:n,changeSortOrder:o,changeActivelySortedHeader:i})}),a<t.length-1&&bg.jsx(jI,{"data-testid":"group-divider",variant:"middle"},"divider")]))})]})},Kz={display:"grid",width:"fit-content"},Xz=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>bg.jsxs("div",{style:{...Kz,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s},children:[r.size.y>1&&bg.jsx(qz,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&r.size.x>1&&d+1===r.size.y){const t=r.data.at(-1);return p.push(bg.jsx(Yz,{headersData:r,menuItems:t[0],dataModel:e,translator:o,changeSortOrder:i,changeActivelySortedHeader:a},t[0][0].id)),p}return p=s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(bg.jsx(Nz,{dataModel:e,style:{width:t[f],height:n,gridColumn:c.isIndentModeEnabled&&r.size.x>1?2:f+1,gridRow:d+1,zIndex:r.size.x-f},isLastRow:d===r.size.y-1,isFirstColumn:0===f,isLastColumn:f===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[]),p}))]});var Qz=Ho.memo(Xz);const Jz=(e,t,n,r,o)=>{Ho.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])},Zz=(e,t)=>{ag((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},ej=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===DD.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 iq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return iq(u,i,r)},tj=()=>{},nj=({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=kD(),{interactions:f,flags:h}=SD(),{select:m,isLocked:g}=jN(),{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?m(r):void 0;return bg.jsx("div",{title:f.passive?t:void 0,style:{...n,...kt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Et,padding:"0px 4px",cursor:XN(x),background:WN({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:ej(r,v,s,h),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:tj,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})},rj=e=>e.stopPropagation(),oj=({href:e,text:t,interactions:n,color:r})=>Go.createElement(V_,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:rj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),ij=e=>e.contentRowHeight/2-e.contentTextHeight/2,aj=({children:e,styleService:t,isLeftColumn:n,textStyle:r})=>bg.jsx("span",{style:{...r,marginTop:n?ij(t):void 0,padding:"0px 4px"},children:e}),lj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=jN(),{interactions:i,flags:a}=SD();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...wt,...Ct(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:VN({cell:e,styleService:t,isCellSelected:n}),fontWeight:UN({cell:e,styleService:t}),fontStyle:YN({cell:e,styleService:t}),textDecoration:KN({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type===DD.Image&&!e.isTotal&&a.isEnabled(Ve)?bg.jsx(oq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:s,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand}):(e.representation.type!==DD.Link||o||e.isTotal||!a.isEnabled(Ue)||(l=bg.jsx(oj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),bg.jsx(aj,{isLeftColumn:r,textStyle:s,styleService:t,children:l}))},sj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==DD.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},uj=({index:e,style:t,data:n})=>{const r=kD(),{isSelected:o}=jN(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Rq([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,v=pN(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return bg.jsx(LN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(h);return bg.jsxs(nj,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:h,data:n,isAdjustingWidth:i,children:[bg.jsxs(AN,{verticalAlign:sj(h),width:_N(h.representation),right:h.isLeftColumn?void 0:4,children:[bg.jsx(JN,{isLeftColumn:s,isCellSelected:b,cell:h,dataModel:l}),bg.jsx(lj,{isLeftColumn:s,isCellSelected:b,cell:h,styleService:r})]}),bg.jsx(Lq,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Qe.Measures:Qe.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var cj=Go.memo(uj,dN);const dj=({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()},pj=(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}},fj=(e,t)=>n=>{e.current&&(e.current[t]=n)},hj={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...St},mj={overflow:"hidden",willChange:"auto",flexShrink:0},gj=({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}}=kD();Zz(t,a),Jz(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return bg.jsx("div",{style:{...hj,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=ZD(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=pj(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,h,c.qcy);return bg.jsx(lN,{ref:fj(t,p),style:{...mj,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:vq,estimatedItemSize:v,children:cj},m)}))})};var vj=Ho.memo(gj);const bj={overflow:"hidden",willChange:"auto"},yj={...St,borderWidth:"0px 0px 0px 1px"},xj=({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}=kD(),p={...yj,borderColor:c,height:o};Zz(t,a),Jz(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?bg.jsx("div",{style:{width:r,height:o,...yj}}):bg.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=pj(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?ZD(g):`empty ${c}`;return bg.jsx(lN,{ref:fj(t,c),style:bj,height:n(),width:r,itemCount:p,itemSize:dj({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:vq,estimatedItemSize:h,children:cj},v)}))})};var Sj=Ho.memo(xj);const Ej=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=kD(),u=((e,t,n)=>Ho.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 Ho.useMemo((()=>{var e,n,a,l;const s=ET(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=ET(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(ST(i,o,0)),visibleTopDimensionInfo:u.map(ST(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const n=Ho.useMemo((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return n})(e,r.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:v,attrExprInfoIndexes:b,nextPageHandler:y}=gT(o,r,i,c,d),x=yT({model:e,nextPageHandler:y,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:S,onVerticalScrollHandler:E,verticalScrollableContainerRef:w,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:R,dataGridRef:k,leftGridRef:L,topGridRef:A,verticalScrollbarWidth:_,horizontalScrollbarHeight:P,horizontalScrollbarHeightSetter:I,verticalScrollDirection:M,horizontalScrollDirection:D}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=SD(),f=Ho.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=Ho.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=Ho.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Ho.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Ho.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Ho.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Ho.useRef(0),x=Ho.useRef(0),S=Ho.useRef(et.None),E=Ho.useRef(et.None),[w,C]=Ho.useState(0),[R,k]=Ho.useState(0),L=d.name(),A=e=>{E.current=xT(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=xT(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Ho.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Ho.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=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]),Ho.useLayoutEffect((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const _=Ho.useCallback((e=>{if(e)return void k(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}k(t)}),[k]);return Ho.useLayoutEffect((()=>{if(f.current){const e=f.current,n=e.offsetWidth-e.clientWidth;C(n),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&n>0&&(t.verticalScrollbarWidth=n)}_()}),[_,e,t,r.width,r.height,L,p]),Ho.useLayoutEffect((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,C(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ze.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ze.DATA_GRID}`&&(A(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&&(A(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:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:_,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:O,headerGridHeight:T,topGridHeight:N,leftGridHeight:q,dataGridHeight:F,allRowsVisible:z}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=kD(),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-vt,l),dataGridHeight:Math.min(r.height-c-vt,l),allRowsVisible:c+vt+l+o<=r.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:P}),{leftGridWidth:j,leftGridColumnWidths:$,rightGridWidth:B,totalWidth:H,showLastRightBorder:G,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:V,overrideLeftGridWidth:U}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=kD(),{measureText:l}=Ko(a.header),s=GD({layoutService:e,tableWidth:t,headersData:n}),u=WD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+vt,d=c<t,p=Ho.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+ID;return t&&a+PD<=r&&(i=!0,a+=PD),a+_D<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Ho.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:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:_,horizontalScrollbarHeightSetter:I}),{rootWrapper:Y,leftWrapper:K,rightWrapper:X}=(({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+vt,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,v=e.height-m,b=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+vt-h,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:O,headerGridHeight:T,leftGridHeight:q,topGridHeight:N,dataGridHeight:F,allRowsVisible:z,totalWidth:H,leftGridWidth:j,rightGridWidth:B,verticalScrollbarWidth:_,horizontalScrollbarHeight:P}),Q=Ho.useCallback((()=>l),[l]),J=Ho.useCallback((()=>s),[s]);return bg.jsx(kT,{ref:w,...Y.scrollable,onScroll:E,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ze.CONTAINER_GRID,children:bg.jsx(wT,{...Y.fullSize,children:bg.jsxs(LT,{...Y.sticky,style:{display:"grid",gridTemplateColumns:j?`${K.containers.scrollable.width}px ${X.containers.scrollable.width}px`:`${X.containers.scrollable.width}px`},children:[Boolean(j)&&bg.jsx(kT,{ref:C,...K.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.LEFT_GRID,children:bg.jsx(wT,{isLeftGrid:!0,...K.containers.fullSize,children:bg.jsxs(LT,{isLeftGrid:!0,...K.containers.sticky,children:[bg.jsx(Qz,{dataModel:x,columnWidths:$,getHeaderCellsIconsVisibilityStatus:V,rowHight:l,height:K.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:U,layoutService:r}),bg.jsx(vj,{dataModel:x,leftGridRef:L,...K.leftGrid,columnWidths:$,layoutService:r,leftDimensionData:v,showLastBorder:{right:!1,bottom:z},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),bg.jsx(kT,{ref:R,...X.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.DATA_GRID,children:bg.jsx(wT,{...X.containers.fullSize,children:bg.jsxs(LT,{...X.containers.sticky,children:[bg.jsx(Sj,{dataModel:x,topGridRef:A,rowHightCallback:Q,...X.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:G,bottom:!1},getRightGridColumnWidth:W,headersData:h}),bg.jsx(Sq,{dataModel:x,dataGridRef:k,rowHightCallback:J,...X.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:v,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:G,bottom:z},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:M,horizontalScrollDirection:D})]})})})]})})})},wj=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=SD(),{layout:u,hasData:c}=t;return bg.jsxs(bg.Fragment,{children:[c&&bg.jsx(Ej,{...e}),bg.jsx(wD,{translator:n,layoutService:t}),bg.jsx(bD,{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})]})},Cj={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",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:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Rj=12,kj=14,Lj=16,Aj=24,_j=3,Pj=300,Ij=400,Mj=600,Dj=700,Oj={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dw(Cj.GREYSCALE_0,.05),Dw(Cj.GREEN_PALE,.5),Dw(Cj.BLUE_PALE,.5),Dw(Cj.GREEN_PALE,.5),Dw(Cj.BLUE_PALE,.5),Dw(Cj.GREEN_PALE,.5),Dw(Cj.BLUE_PALE,.5);var Tj;function Nj(){return Nj=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},Nj.apply(this,arguments)}Dw(Cj.GREEN_PALE,.5),Dw(Cj.BLUE_PALE,.5),Dw(Cj.GREEN_PALE,.5),Dw(Cj.BLUE_PALE,.5);var qj,Fj=function(e){return Ho.createElement("svg",Nj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Tj||(Tj=Ho.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function zj(){return zj=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},zj.apply(this,arguments)}var jj=function(e){return Ho.createElement("svg",zj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),qj||(qj=Ho.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 $j({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Go.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 Bj=(e={})=>Go.createElement($j,{...e},Go.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Go.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Go.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"}))),Hj=(e={})=>Go.createElement($j,{...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Go.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Gj=(e={})=>Go.createElement($j,{fontSize:"medium",...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Go.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Wj=(e={})=>Go.createElement($j,{fontSize:"medium",...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Go.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"}))),Vj=({className:e})=>Go.createElement($j,{fontSize:"small",className:e},Go.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Go.createElement("g",{transform:"translate(4.324187, 1.300372)"},Go.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"}),Go.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"})))))),Uj=(e={})=>Go.createElement($j,{...e},Go.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Go.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Go.createElement("rect",{stroke:Cj.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Yj={MuiAccordion:{styleOverrides:{root:{backgroundColor:Cj.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Cj.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Go.createElement(Fj,{"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 ${Cj.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Cj.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`,borderRadius:_j,backgroundColor:Cj.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 ${Cj.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Cj.WHITE,color:Cj.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:_j},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Cj.GREYSCALE_0_15,backgroundColor:Cj.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Cj.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Cj.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Cj.GREEN_PALE},"&:active":{backgroundColor:Cj.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Cj.GREEN_PALE,boxShadow:`0 0 0 3px ${xS(Cj.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Cj.BLUE_PALE},"&:active":{backgroundColor:Cj.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Cj.BLUE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.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:_j,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Cj.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Cj.GREYSCALE_0_15,backgroundColor:Cj.GREYSCALE_100_60,"&:active":{backgroundColor:Cj.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Cj.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Cj.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Cj.PURPLE,"&.Mui-focusVisible":{borderColor:Cj.PURPLE,boxShadow:`0 0 0 3px ${xS(Cj.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Cj.GREEN,"&.Mui-focusVisible":{borderColor:Cj.GREEN,boxShadow:`0 0 0 3px ${xS(Cj.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Cj.BLUE,"&.Mui-focusVisible":{borderColor:Cj.BLUE,boxShadow:`0 0 0 3px ${xS(Cj.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Cj.ORANGE,"&.Mui-focusVisible":{borderColor:Cj.ORANGE,boxShadow:`0 0 0 3px ${xS(Cj.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Cj.RED,"&.Mui-focusVisible":{borderColor:Cj.RED,boxShadow:`0 0 0 3px ${xS(Cj.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Cj.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Cj.PURPLE_PALE},"&:active":{backgroundColor:Cj.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Cj.PURPLE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Cj.GREEN_PALE},"&:active":{backgroundColor:Cj.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Cj.GREEN_PALE,boxShadow:`0 0 0 3px ${xS(Cj.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Cj.BLUE_PALE},"&:active":{backgroundColor:Cj.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Cj.BLUE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Cj.ORANGE_PALE},"&:active":{backgroundColor:Cj.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Cj.ORANGE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Cj.RED_PALE},"&:active":{backgroundColor:Cj.RED_DARK},"&.Mui-focusVisible":{borderColor:Cj.RED_PALE,boxShadow:`0 0 0 3px ${xS(Cj.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:Cj.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Cj.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_j,boxShadow:`inset 0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Go.createElement(jj,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Rj,borderRadius:_j,color:Cj.TEXT_PRIMARY,backgroundColor:Cj.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Cj.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Cj.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Cj.GREYSCALE_0_05,color:Cj.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Cj.GREEN,borderColor:Cj.GREEN},"&.MuiChip-outlinedInfo":{color:Cj.BLUE,borderColor:Cj.BLUE},"&.MuiChip-outlinedWarning":{color:Cj.ORANGE,borderColor:Cj.ORANGE},"&.MuiChip-outlinedError":{color:Cj.RED,borderColor:Cj.RED}},outlined:{border:`solid 1px ${Cj.GREYSCALE_0_15}`,backgroundColor:Cj.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_j,boxShadow:"none",backgroundColor:Cj.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Cj.GREEN,borderColor:Cj.GREEN},outlinedSecondary:{color:Cj.BLUE,borderColor:Cj.BLUE},label:{fontFamily:Oj.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Go.createElement(jj,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Go.createElement(Fj,{"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:_j},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_j,fontSize:kj,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Cj.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Cj.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Cj.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Cj.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Cj.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_j,border:`solid 1px ${Cj.GREYSCALE_0_15}`,color:Cj.GREYSCALE_0_60,marginRight:0,width:Aj,height:Aj},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Cj.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_j,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Cj.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:kj}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Rj,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Cj.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Cj.GREYSCALE_25,fontSize:Rj,fontFamily:Oj.FONT_FAMILY,fontWeight:Mj,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Cj.TEXT_PRIMARY},"&.Mui-error":{color:Cj.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Cj.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ij,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Cj.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ij,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:kj,lineHeight:"16px",backgroundColor:Cj.WHITE,borderRadius:_j,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Cj.GREYSCALE_0_05}`,borderColor:Cj.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Cj.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Cj.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Cj.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Cj.RED}`,boxShadow:`0px 0px 0px 1px ${Cj.RED}, inset 0 2px 0 0 ${Cj.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Cj.GREYSCALE_0_10}`,borderColor:Cj.GREYSCALE_0_10,backgroundColor:Cj.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Cj.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Cj.GREYSCALE_0_15,borderRadius:_j,boxShadow:`inset 0 2px 0 0 ${Cj.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Go.createElement(Fj,{...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:Cj.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Cj.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Cj.GREYSCALE_0_03},"&:active":{backgroundColor:Cj.GREYSCALE_0_10},"&:focus":{backgroundColor:Cj.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Cj.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Cj.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Cj.GREYSCALE_0_30,"&:hover":{backgroundColor:Cj.GREYSCALE_0_0,borderColor:Cj.GREYSCALE_0_15},"& ~svg":{color:Cj.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Cj.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_j}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Cj.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Cj.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:kj,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Rj,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Rj,fontWeight:Mj,color:Cj.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Mj}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Cj.GREYSCALE_0_15}, 0px 0px 0px 1px ${Cj.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Go.createElement(Gj,null),checkedIcon:Go.createElement(Wj,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Cj.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Cj.GREEN_PALE,boxShadow:`0 0 0 3px ${xS(Cj.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Cj.BLUE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Cj.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Cj.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Go.createElement(Uj,null),checkedIcon:Go.createElement(Bj,null),indeterminateIcon:Go.createElement(Hj,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_j,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Cj.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Cj.GREYSCALE_0_55,color:Cj.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:Cj.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Cj.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Cj.GREYSCALE_0_55,"&:hover":{color:Cj.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:Cj.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Cj.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:kj,color:Cj.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Mj},secondary:{fontSize:Rj,color:Cj.GREYSCALE_45,fontWeight:Ij,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:kj,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Cj.GREYSCALE_0_03},"&:active":{backgroundColor:Cj.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:kj,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Cj.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Rj,borderBottom:`solid 1px ${Cj.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:kj,color:Cj.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Cj.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Cj.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Cj.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:Cj.RED}}},"&.Mui-focusVisible":{backgroundColor:Cj.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:Cj.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:Cj.GREEN,height:"24px","&.Mui-disabled":{color:Cj.GREYSCALE_0_15}},rail:{backgroundColor:Cj.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Cj.GREYSCALE_0_05}`,borderRadius:_j,boxShadow:`inset 0px 0px 0px 1px ${Cj.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Cj.GREYSCALE_0_05}`,borderRadius:_j},thumb:{height:"16px",width:"16px",borderRadius:_j,backgroundColor:Cj.WHITE,boxShadow:`0px 1px 2px 0px ${Cj.GREYSCALE_0_15}, 0px 0px 0px 1px ${Cj.GREYSCALE_0_05}`,"&:hover":{borderRadius:_j,boxShadow:`0 2px 4px 0 ${Cj.GREYSCALE_0_30}, 0 0 0 1px ${Cj.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Cj.GREYSCALE_0_15}, 0 0 0 1px ${Cj.GREYSCALE_0_06}, 0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Cj.GREYSCALE_0_15}, 0 0 0 1px ${Cj.GREYSCALE_0_06}, 0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Cj.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Cj.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Cj.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Cj.GREYSCALE_0_15},markLabel:{color:Cj.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Cj.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Cj.WHITE,color:Cj.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:Cj.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:Cj.GREEN_PALE,boxShadow:`0 0 0 3px ${xS(Cj.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Cj.BLUE_PALE,boxShadow:`0 0 0 3px ${xS(Cj.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Cj.GREYSCALE_0_15,borderRadius:_j},thumb:{height:"16px",width:"16px",borderRadius:_j,backgroundColor:Cj.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:kj,fontWeight:Mj,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Cj.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Cj.MISC_FOCUS_BORDER}`,backgroundColor:Cj.GREYSCALE_0_03,borderRadius:_j},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Cj.GREYSCALE_25,"&.Mui-selected":{color:Cj.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:kj,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Cj.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Cj.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Cj.GREYSCALE_85}`,borderRight:`1px solid ${Cj.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Mj,backgroundColor:Cj.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:Cj.GREYSCALE_98,borderBottom:`1px solid ${Cj.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Cj.GREYSCALE_85}`,borderTop:`1px solid ${Cj.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Cj.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Cj.GREYSCALE_0_05,"&:hover":{backgroundColor:Cj.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Cj.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Go.createElement(Vj,{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 ${Cj.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:kj,borderRadius:_j,padding:"7px 16px",border:`1px solid ${Cj.GREYSCALE_0_15}`,backgroundColor:Cj.GREYSCALE_100_60,color:Cj.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Cj.GREYSCALE_0_10,border:`1px solid ${Cj.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Cj.GREYSCALE_0_03,border:`1px solid ${Cj.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Cj.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Cj.MISC_FOCUS_BORDER}`,border:`1px solid ${Cj.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Cj.GREYSCALE_25,backgroundColor:Cj.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Cj.GREYSCALE_0_10,border:`1px solid ${Cj.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Rj,height:24,width:24,padding:7},sizeLarge:{fontSize:Lj,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:kj,borderRadius:_j}}},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:Cj.GREYSCALE_20},tooltip:{backgroundColor:Cj.GREYSCALE_20,fontSize:Rj,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Kj=e=>Yj;const Xj={mode:"light",primary:{light:Cj.GREEN_PALE,main:Cj.GREEN,dark:Cj.GREEN_DARK,contrastText:Cj.WHITE},secondary:{light:Cj.BLUE_PALE,main:Cj.BLUE,dark:Cj.BLUE_DARK,contrastText:Cj.WHITE},error:{light:Cj.RED_PALE,main:Cj.RED,dark:Cj.RED_DARK,contrastText:Cj.WHITE},warning:{light:Cj.ORANGE_PALE,main:Cj.ORANGE,dark:Cj.ORANGE_DARK,contrastText:Cj.WHITE},success:{light:Cj.GREEN_PALE,main:Cj.GREEN,dark:Cj.GREEN_DARK,contrastText:Cj.WHITE},info:{light:Cj.BLUE_PALE,main:Cj.BLUE,dark:Cj.BLUE_DARK,contrastText:Cj.WHITE},text:{primary:Cj.TEXT_PRIMARY,secondary:Cj.TEXT_SECONDARY,disabled:Cj.GREYSCALE_0_30},action:{hover:Cj.GREYSCALE_0_03,hoverOpacity:.05,selected:Cj.GREYSCALE_0_05,focus:Cj.MISC_FOCUS_BORDER},amethyst:{main:Cj.PURPLE,light:Cj.PURPLE_PALE,dark:Cj.PURPLE_DARK,contrastText:Cj.WHITE},background:{paper:Cj.WHITE,default:Cj.GREYSCALE_95},divider:Cj.GREYSCALE_0_15},Qj=e=>Xj,Jj=(e="light")=>({components:Kj(),palette:Qj(),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:kj,fontWeightLight:Pj,fontWeightRegular:Ij,fontWeightMedium:Mj,fontWeightBold:Dj,htmlFontSize:kj,fontFamily:Oj.FONT_FAMILY,button:{fontWeight:Mj,fontSize:kj,textTransform:"none"},body1:{fontSize:Lj,lineHeight:"24px"},body2:{fontSize:kj,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Aj,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lj,fontWeight:Mj,lineHeight:"16px"},h6:{fontSize:kj,fontWeight:Mj,lineHeight:"16px"},caption:{color:Cj.TEXT_SECONDARY},subtitle1:{fontSize:kj,color:Cj.TEXT_SECONDARY},subtitle2:{fontSize:Rj,color:Cj.TEXT_SECONDARY}},shape:{borderRadius:_j}});const Zj=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=Jj();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),YE({...n,direction:e})}("ltr");e.render(bg.jsx(Go.StrictMode,{children:bg.jsx(Pw,{theme:d,children:bg.jsx(ED,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:bg.jsx($N,{selections:n,updatePageInfo:t.updatePageInfo,children:bg.jsx(LD,{styleService:r,children:bg.jsx(wj,{...t})})})})})}))},e$={darker:.15,brighter:.3,opacity:.03},t$={darker:.3,brighter:.5,opacity:.05};var n$,r$,o$,i$;!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"}(n$||(n$={})),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"}(r$||(r$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(o$||(o$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(i$||(i$={}));const a$=e=>e?`${parseInt(e,10)}px`:void 0,l$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?bt.Transparent:n}},s$=(e,t)=>+(parseInt(e,10)*gt*t+8).toFixed(2),u$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ft:"normal",c$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",d$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",p$=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,f$=(t,n,r)=>e.useMemo((()=>(({layout:e,flags:t,effectiveProperties:n})=>{var r,o;const{qHyperCube:i,nullValueRepresentation:a,snapshotData:l}=e,{qNoOfLeftDims:s,qEffectiveInterColumnSortOrder:u,qMeasureInfo:c,qDimensionInfo:d}=i,p=!!l,f={x:Math.min(e.qHyperCube.qSize.qcx,mt),y:Math.min(e.qHyperCube.qSize.qcy,ht)},h=u.slice(0,s),m=e=>h.some((t=>t===e)),g=m(qD),v=new Map(u.map((e=>{var t;return[null!==(t=d[e])&&void 0!==t?t:qD,e]}))),b=c.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==a?void 0:a.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(g)return 0;const n=e%b.length;return t?n:c.findIndex((e=>e===b[n]))},getDimensionInfo:e=>e===qD?qD:d[e],getDimensionInfoIndex:e=>{var t;return null!==(t=v.get(e))&&void 0!==t?t:-1},size:f,isSnapshot:p,hasLimitedData:!p&&f.x<e.qHyperCube.qSize.qcx,hasData:f.x>0&&f.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==n||null===(r=n.qHyperCubeDef)||void 0===r||!r.qShowTotalsAbove),hasPseudoDimOnLeft:g,leftDimensionInfoIndexes:h,isLeftDimension:m,isFullyExpanded:!(null==n||null===(o=n.qHyperCubeDef)||void 0===o||!o.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:b,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(Ye)}})({layout:t,flags:n,effectiveProperties:r})),[t,r,n]),h$={},m$=t=>{const n=(t=>{const n=e.useMemo((()=>({current:h$})),[]);return n.current=n.current===h$?t:n.current,n})(t);return n.current=t,n},g$=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=m$((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Be.PixelsMin)}))(o));return Yn((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(mt,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(ND,bT(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},v$=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),b$=(e,t)=>{const n=ht;return{rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:v$({rowsPerPage:n,totalRowCount:e,page:t})}},y$=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var x$={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 S$=()=>{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(x$).forEach((t=>{e.add(x$[t])}))}}(t)),[t]),{translator:t,language:n}},E$=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>ng(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,p]=((e,t)=>Yn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),f=f$(i,n,d),h=e.useSelections(),m=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:Un(o,t,n,r)})),[o.name(),t,n,r])})(r),g=m.name(),{translator:v,language:b}=S$(),{pageInfo:y,updatePageInfo:x}=(t=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=t,[o,i]=e.useState({page:0,shouldShowPagination:r.qcy>n.y,...b$(r.qcy,0)});return e.useEffect((()=>{i((e=>({...e,...b$(t.layout.qHyperCube.qSize.qcy,e.page),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,i]),e.useEffect((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,n=v$({...o,page:e});i({...o,page:e,rowsOnCurrentPage:n})}}),[o]),{pageInfo:o,updatePageInfo:e=>i({...o,...e,rowsOnCurrentPage:v$({...o,...e})})}})(f),S=((t,n)=>{const{viewState:r}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R;return{gridColumnStartIndex:null!==(n=null!==(r=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==r?r:null==e?void 0:e.gridColumnStartIndex)&&void 0!==n?n:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(v=null!==(b=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==b?b:null==e?void 0:e.scrollLeft)&&void 0!==v?v:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(w=null!==(C=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==C?C:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==w?w:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData])})(y,i),E=(({layoutService:t,viewService:n,rect:r,model:o})=>{var i;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=y$(n);e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(ND,[{qLeft:n.gridColumnStartIndex,qTop:n.gridRowStartIndex,qWidth:n.gridWidth,qHeight:n.gridHeight}]),gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>y$(n)})),[n]),null!==(i=t.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r})({rect:e.useRect(),layoutService:f,viewService:S,model:a}),[w,C]=g$({model:a,layoutService:f,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R,k,L,A,_,P,I,M,D,O,T,N,q,F,z,j,$,B,H,G,W,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[n$.LineClamp])&&void 0!==i?i:oe(r$.Grid,o$.Grid,i$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled(Ve)?+(null!==(a=null!==(l=null==re?void 0:re[n$.ColumnLineClamp])&&void 0!==l?l:oe(r$.Grid,o$.Grid,i$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=l$(e,null==Q?void 0:Q[n$.Background]))&&void 0!==u?u:oe(r$.Dimension,o$.LabelName,i$.BackgroundColor))&&void 0!==s?s:bt.Transparent,se={header:{fontSize:null!==(c=null!==(d=a$(null==Q?void 0:Q[n$.FontSize]))&&void 0!==d?d:oe(r$.Dimension,o$.LabelName,i$.FontSize))&&void 0!==c?c:dt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[n$.FontFamily])&&void 0!==f?f:oe(r$.Dimension,o$.LabelName,i$.FontFamily))&&void 0!==p?p:pt,fontWeight:u$(null==Q?void 0:Q[n$.FontStyle],ft),fontStyle:c$(null==Q?void 0:Q[n$.FontStyle]),textDecoration:d$(null==Q?void 0:Q[n$.FontStyle]),color:null!==(h=null!==(m=l$(e,null==Q?void 0:Q[n$.FontColor]))&&void 0!==m?m:oe(r$.Dimension,o$.LabelName,i$.Color))&&void 0!==h?h:RI.TEXT,background:le,hoverBackground:kI(le,e$),activeBackground:kI(le,t$)},dimensionValues:{fontSize:null!==(g=null!==(v=a$(null==J?void 0:J[n$.FontSize]))&&void 0!==v?v:oe(r$.Dimension,o$.LabelValue,i$.FontSize))&&void 0!==g?g:dt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[n$.FontFamily])&&void 0!==y?y:oe(r$.Dimension,o$.LabelValue,i$.FontFamily))&&void 0!==b?b:pt,fontWeight:u$(null==J?void 0:J[n$.FontStyle],void 0),fontStyle:c$(null==J?void 0:J[n$.FontStyle]),textDecoration:d$(null==J?void 0:J[n$.FontStyle]),color:null!==(x=null!==(S=l$(e,null==J?void 0:J[n$.FontColor]))&&void 0!==S?S:oe(r$.Dimension,o$.LabelValue,i$.Color))&&void 0!==x?x:RI.TEXT,background:null!==(E=null!==(w=l$(e,null==J?void 0:J[n$.Background]))&&void 0!==w?w:oe(r$.Dimension,o$.LabelValue,i$.BackgroundColor))&&void 0!==E?E:bt.Transparent},measureValues:{fontSize:null!==(C=null!==(R=a$(null==Z?void 0:Z[n$.FontSize]))&&void 0!==R?R:oe(r$.Measure,o$.LabelValue,i$.FontSize))&&void 0!==C?C:dt,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[n$.FontFamily])&&void 0!==L?L:oe(r$.Measure,o$.LabelValue,i$.FontFamily))&&void 0!==k?k:pt,fontWeight:u$(null==Z?void 0:Z[n$.FontStyle],"normal"),fontStyle:c$(null==Z?void 0:Z[n$.FontStyle]),textDecoration:d$(null==Z?void 0:Z[n$.FontStyle]),color:null!==(A=null!==(_=l$(e,null==Z?void 0:Z[n$.FontColor]))&&void 0!==_?_:oe(r$.Measure,o$.LabelValue,i$.Color))&&void 0!==A?A:bt.FontSecondary,background:null!==(P=null!==(I=l$(e,null==Z?void 0:Z[n$.Background]))&&void 0!==I?I:oe(r$.Measure,o$.LabelValue,i$.BackgroundColor))&&void 0!==P?P:bt.Transparent},measureLabels:{fontWeight:u$(null==ee?void 0:ee[n$.FontStyle],"normal"),fontStyle:c$(null==ee?void 0:ee[n$.FontStyle]),textDecoration:d$(null==ee?void 0:ee[n$.FontStyle]),color:null!==(M=null!==(D=l$(e,null==ee?void 0:ee[n$.FontColor]))&&void 0!==D?D:oe(r$.Measure,o$.LabelName,i$.Color))&&void 0!==M?M:bt.FontSecondary,background:null!==(O=null!==(T=l$(e,null==ee?void 0:ee[n$.Background]))&&void 0!==T?T:oe(r$.Measure,o$.LabelName,i$.BackgroundColor))&&void 0!==O?O:bt.Transparent},totalValues:{fontWeight:u$(null==te?void 0:te[n$.FontStyle],ft),fontStyle:c$(null==te?void 0:te[n$.FontStyle]),textDecoration:d$(null==te?void 0:te[n$.FontStyle]),color:null!==(N=null!==(q=l$(e,null==te?void 0:te[n$.FontColor]))&&void 0!==q?q:oe(r$.Total,o$.LabelValue,i$.Color))&&void 0!==N?N:RI.TEXT,background:null!==(F=null!==(z=l$(e,null==te?void 0:te[n$.Background]))&&void 0!==z?z:oe(r$.Total,o$.LabelValue,i$.BackgroundColor))&&void 0!==F?F:bt.Transparent},nullValues:{fontWeight:u$(null==ne?void 0:ne[n$.FontStyle],"normal"),fontStyle:c$(null==ne?void 0:ne[n$.FontStyle]),textDecoration:d$(null==ne?void 0:ne[n$.FontStyle]),color:null!==(j=null!==($=l$(e,null==ne?void 0:ne[n$.FontColor]))&&void 0!==$?$:oe(r$.Null,o$.LabelValue,i$.Color))&&void 0!==j?j:RI.TEXT,background:null!==(B=null!==(H=l$(e,null==ne?void 0:ne[n$.Background]))&&void 0!==H?H:oe(r$.Null,o$.LabelValue,i$.BackgroundColor))&&void 0!==B?B:bt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(G=null!==(W=l$(e,null==re?void 0:re[n$.Border]))&&void 0!==W?W:oe(r$.Grid,o$.Grid,i$.BorderColor))&&void 0!==G?G:bt.DividerLight,divider:null!==(V=null!==(U=l$(e,null==re?void 0:re[n$.Divider]))&&void 0!==U?U:oe(r$.Grid,o$.Divider,i$.BorderColor))&&void 0!==V?V:bt.DividerDark,background:null!==(Y=null!==(K=l$(e,null==re?void 0:re[n$.Background]))&&void 0!==K?K:oe(r$.Grid,o$.Grid,i$.BackgroundColor))&&void 0!==Y?Y:bt.Transparent}};return se.headerCellHeight=Math.max(s$(se.header.fontSize,ae),s$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(s$(se.measureValues.fontSize,ie),s$(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(s$(se.measureValues.fontSize,1),s$(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(m,f,n)),[m.name(),f,n]),k=(t=>e.useMemo((()=>[...new Set([p$(t.header),p$(t.dimensionValues),p$({...t.dimensionValues,...t.measureLabels}),p$({...t.dimensionValues,...t.nullValues}),p$({...t.dimensionValues,...t.totalValues}),p$(t.measureValues),p$({...t.measureValues,...t.nullValues}),p$({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(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})(k);e.useEffect((()=>{!C&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&f&&R&&!!w&&!p&&L&&Zj(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:f,qPivotDataPages:w,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:m,flags:n})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,f,C,w,R,o,L,v,b,y,x,d,p,s,u,m,g,n])},w$={version:"3.3.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};return function(e){return{qae:{properties:{initial:w$},data:Ae(e)},ext:Wt(e),component(){E$(e)}}}}));
192
+ `),Bq.rippleVisible,Xq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bq.child,Bq.childLeaving,Qq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.childPulsate,Jq,(({theme:e})=>e.transitions.easing.easeInOut)),tF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Cg(n,Gq),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=MS(),f=Go.useRef(null),h=Go.useRef(null),m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(eF,{classes:{ripple:jx(o.ripple,Bq.ripple),rippleVisible:jx(o.rippleVisible,Bq.rippleVisible),ripplePulsate:jx(o.ripplePulsate,Bq.ripplePulsate),child:jx(o.child,Bq.child),childLeaving:jx(o.childLeaving,Bq.childLeaving),childPulsate:jx(o.childPulsate,Bq.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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 Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(Zq,wg({className:jx(Bq.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var nF=tF;function rF(e){return Bx("MuiButtonBase",e)}var oF=Gx("MuiButtonBase",["root","disabled","focusVisible"]);const iF=["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"],aF=Iw("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"},[`&.${oF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=Cg(n,iF),M=Go.useRef(null),D=Go.useRef(null),O=_S(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=$S(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return LS((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=LS((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=LS((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(),h&&h(e))})),oe=LS((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=_S(t,F,M),se=wg({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},rF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(aF,wg({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(nF,wg({ref:O,center:o},_)):null]}))}));var sF=lF;const uF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cF(e){const t=[],n=[];return Array.from(e.querySelectorAll(uF)).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 dF(){return!0}function pF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cF,isEnabled:a=dF,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const fF=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.isValidElement(n)?n.ref:null,t);if(vS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vS((()=>{if(i&&!o)return kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function hF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mF(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function gF(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&&hF(e,o)}))}function vF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mF(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 yF=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&&hF(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);gF(t,e.mount,e.modalRef,r,!0);const o=vF(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=vF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vF(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&&hF(e.modalRef,t),gF(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&&hF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function xF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.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=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&hF(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=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=zq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const SF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],EF={entering:{opacity:1},entered:{opacity:1}},wF=Go.forwardRef((function(e,t){const n=JE(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=dL}=e,b=Cg(e,SF),y=Go.useRef(null),x=_S(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{Mq(e);const r=Dq({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(h),k=S((e=>{const t=Dq({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return yg.jsx(v,wg({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,wg({style:wg({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},EF[e],m,a.props.style),ref:x},t))}))}));var CF=wF;function RF(e){return Bx("MuiBackdrop",e)}Gx("MuiBackdrop",["root","invisible"]);const kF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],LF=Iw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wg({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"}))),_F=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=CF,transitionDuration:g}=i,v=Cg(i,kF),b=wg({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},RF,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,wg({in:p,timeout:g},v,{children:yg.jsx(LF,wg({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:wg({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var AF=_F;var IF=Gx("MuiBox",["root"]);const PF=XE(),MF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vy("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rx);return Go.forwardRef((function(e,a){const l=Mx(n),s=Tx(e),{className:u,component:c="div"}=s,d=Cg(s,$x);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Eg,defaultTheme:PF,defaultClassName:IF.root,generateClassName:Fx.generate});var DF=MF;function OF(e){return Bx("MuiModal",e)}Gx("MuiModal",["root","hidden","backdrop"]);const TF=["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"],NF=Iw("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})=>wg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qF=Iw(AF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FF=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ZE({name:"MuiModal",props:e}),{BackdropComponent:u=qF,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=Cg(s,TF),P=wg({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=xF(wg({},P,{rootRef:t})),z=wg({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OF,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:NF,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=Hq({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Hq({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(wg({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(fF,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,wg({},V,{children:[!C&&u?yg.jsx(B,wg({},U)):null,yg.jsx(pF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var zF=FF;var jF=Gx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const $F=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HF(e){return`scale(${e}, ${e**2})`}const BF={entering:{opacity:1,transform:HF(1)},entered:{opacity:1,transform:"none"}},GF="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),WF=Go.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=dL}=e,g=Cg(e,$F),v=MS(),b=Go.useRef(),y=JE(),x=Go.useRef(null),S=_S(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{Mq(e);const{duration:n,delay:r,easing:o}=Dq({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:GF?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=Dq({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:GF?o:.666*o,delay:GF?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HF(.75),c&&c(e)})),_=E(d);return yg.jsx(m,wg({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,wg({style:wg({opacity:0,transform:HF(.75),visibility:"exited"!==e||a?void 0:"hidden"},BF[e],f,o.props.style),ref:S},t))}))}));WF.muiSupportAuto=!0;var VF=WF;var UF=Go.createContext({});function YF(e){return Bx("MuiList",e)}Gx("MuiList",["root","padding","dense","subheader"]);const KF=["children","className","component","dense","disablePadding","subheader"],XF=Iw("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})=>wg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var QF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Cg(n,KF),c=Go.useMemo((()=>({dense:a})),[a]),d=wg({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},YF,t)})(d);return yg.jsx(UF.Provider,{value:c,children:yg.jsxs(XF,wg({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var JF=Gx("MuiListItemIcon",["root","alignItemsFlexStart"]);var ZF=Gx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ez=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function rz(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 oz(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")&&rz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var iz=Go.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=Cg(e,ez),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vS((()=>{r&&p.current.focus()}),[r]),Go.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${HS(CS(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=_S(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=Go.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Go.cloneElement(e,t)}return e}));return yg.jsx(QF,wg({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=CS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),oz(t,r,s,l,tz);else if("ArrowUp"===n)e.preventDefault(),oz(t,r,s,l,nz);else if("Home"===n)e.preventDefault(),oz(t,null,s,l,tz);else if("End"===n)e.preventDefault(),oz(t,null,s,l,nz);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&&rz(r,o);o.previousKeyMatched&&(s||oz(t,r,!1,l,tz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function az(e){return Bx("MuiPopover",e)}Gx("MuiPopover",["root","paper"]);const lz=["onEntering"],sz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uz=["slotProps"];function cz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function dz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function fz(e){return"function"==typeof e?e():e}const hz=Iw(zF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mz=Iw(qq,{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 gz=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=VF,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Cg(i.TransitionProps,lz),k=Cg(i,sz),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=_S(_,L.ref),I=wg({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},az,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=fz(l),t=(e&&1===e.nodeType?e:CS(_.current).body).getBoundingClientRect();return{top:t.top+cz(t,s.vertical),left:t.left+dz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:cz(e,x.vertical),horizontal:dz(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:pz(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=RS(fz(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:pz(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.useEffect((()=>{if(!g)return;const e=wS((()=>{q()})),t=RS(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?CS(fz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hz,$=null!=(o=null==b?void 0:b.paper)?o:mz,H=Hq({elementType:$,externalSlotProps:wg({},L,{style:T?L.style:wg({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=Hq({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=Cg(B,uz);return yg.jsx(j,wg({},W,!Fq(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,wg({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,wg({},H,{children:d}))}))}))}));function vz(e){return Bx("MuiMenu",e)}Gx("MuiMenu",["root","paper","list"]);const bz=["onEntering"],yz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Ez=Iw(gz,{shouldForwardProp:e=>Aw(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wz=Iw(mz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cz=Iw(iz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Rz=Go.forwardRef((function(e,t){var n,r;const o=ZE({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Cg(o.TransitionProps,bz),x=Cg(o,yz),S=(()=>{const e=Go.useContext(KS);return null!=e&&e})(),E=wg({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},vz,t)})(E),C=i&&!s&&d,R=Go.useRef(null);let k=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:wz,_=null!=(r=b.paper)?r:p,A=Hq({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[w.root,l]}),I=Hq({elementType:L,externalSlotProps:_,ownerState:E,className:w.paper});return yg.jsx(Ez,wg({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?xz:Sz,slots:{paper:L,root:v.root},slotProps:{root:A,paper:I},open:d,ref:t,transitionDuration:h,TransitionProps:wg({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:yg.jsx(Cz,wg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:C,variant:g},u,{className:jx(w.list,u.className),children:a}))}))}));function kz(e){return Bx("MuiMenuItem",e)}var Lz=Gx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const _z=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Az=Iw(sF,{shouldForwardProp:e=>Aw(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})=>wg({},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"}},[`&.${Lz.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lz.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:aE(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lz.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:aE(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})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lz.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lz.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jF.inset}`]:{marginLeft:52},[`& .${ZF.root}`]:{marginTop:0,marginBottom:0},[`& .${ZF.inset}`]:{paddingLeft:36},[`& .${JF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${JF.root} svg`]:{fontSize:"1.25rem"}}))));var Iz=Go.forwardRef((function(e,t){const n=ZE({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=Cg(n,_z),f=Go.useContext(UF),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);vS((()=>{r&&m.current&&m.current.focus()}),[r]);const g=wg({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wg({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kz,a))})(n),b=_S(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(UF.Provider,{value:h,children:yg.jsx(Az,wg({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));const Pz=Iw(DF,{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}}))),Mz=Iw("div")({position:"absolute",left:0,bottom:0}),Dz=Iw("div")({...St,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),Oz=Iw("div")((()=>({...St}))),Tz=Iw("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}))),Nz=Iw(Rz)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),qz=Iw(Iz,{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}}}))),Fz=Iw("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:PD,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),zz={[OM.SORTING]:!0,[OM.SELECTIONS]:!0,[OM.SEARCHING]:!0},jz=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=Go.useRef(null),m=_D(),{app:g,model:v,interactions:b,embed:y,flags:x}=wD(),{fontSize:S,fontFamily:E,fontStyle:w,fontWeight:C,textDecoration:R,color:k,background:L,hoverBackground:_,activeBackground:A}=m.header,I=Go.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:M}=u,{open:D,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:N}=Iq({interactions:b,dataModel:e}),q={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:y,listboxRef:h},z={model:v,app:g},{labelTextAlign:j}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=uq(j,"flex-start",x);return yg.jsxs(Pz,{title:t.label,interactions:b,background:D?A:L,hoverBackground:_,shouldShowMenuIcon:M,isDimension:t.isDim,style:{...n,...wt,..._t(t,i,r,o,m.grid.border),color:k},"data-testid":"title-cell",onClick:T,children:[yg.jsxs(Dz,{children:[P&&yg.jsx(Oz,{children:yg.jsx(_q,{height:12})}),yg.jsx(Tz,{fontFamily:E,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:R,justifyContent:$,children:yg.jsx("span",{style:Ct,children:t.label})})]}),t.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:t,translator:a,anchorRef:I,open:D,setOpen:O,interactions:b,menuAvailabilityFlags:zz,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:M}),yg.jsx(Mz,{ref:h}),yg.jsx(Mz,{ref:I})]}),yg.jsx(Pq,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},$z=({rowSpan:e,columnSpan:t})=>{const n=_D();return e>0&&t>0?yg.jsx("div",{style:{...Et,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 Hz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bz=(e,t)=>Wo.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){Hz(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),Wo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Gz=Go.forwardRef(Bz);function Wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vz=(e,t)=>Wo.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){Wz(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),Wo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wo.createElement("use",{fillRule:"evenodd"})),Uz=Go.forwardRef(Vz);function Yz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kz=(e,t)=>Wo.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){Yz(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),Wo.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"})),Xz=Go.forwardRef(Kz),Qz=({cell:e,translator:t,dataModel:n,changeSortOrder:r,changeActivelySortedHeader:o})=>{const i=Go.useRef(null),a=Go.useRef(null),{app:l,model:s,interactions:u,embed:c}=wD(),{open:d,setOpen:p,handleOpenMenu:f}=Iq({interactions:u,dataModel:n});return yg.jsxs(qz,{component:"div",onClick:f,isActive:d,children:[yg.jsx("span",{children:e.label}),yg.jsxs(Fz,{className:"indent-mode-dropdown-more",visible:d,children:[yg.jsx(Xz,{}),e.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:zz,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),yg.jsx(Mz,{ref:a}),yg.jsx(Mz,{ref:i})]})]})]})},Jz=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,changeActivelySortedHeader:i})=>{const a=_D(),{interactions:l}=wD(),[s,u]=Go.useState(!1),c=Go.useRef(null),{headerCellHeight:d}=a,{color:p,background:f,hoverBackground:h,activeBackground:m,fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x}=a.header,S=e=>e.stopPropagation(),E={height:d,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return yg.jsxs(Pz,{isDimension:!0,background:s?m:f,interactions:l,hoverBackground:h,style:{...E,...wt,color:p},onClick:()=>l.active&&u(!s),children:[yg.jsxs(Dz,{children:[yg.jsx(Tz,{fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x,justifyContent:"flex-start",children:yg.jsx("span",{style:Ct,children:r.get("SNPivotTable.IndentMode.Rows")})}),s?yg.jsx(Uz,{}):yg.jsx(Gz,{}),yg.jsx(Mz,{ref:c})]}),yg.jsx(Nz,{open:s,anchorEl:c.current,children:t.map(((e,a)=>[e&&(null==e?void 0:e.id)!==jD&&yg.jsx("li",{role:"presentation",onClick:S,onKeyDown:S,children:yg.jsx(Qz,{cell:e,translator:r,dataModel:n,changeSortOrder:o,changeActivelySortedHeader:i})}),a<t.length-1&&yg.jsx(HP,{"data-testid":"group-divider",variant:"middle"},"divider")]))})]})},Zz={display:"grid",width:"fit-content"},ej=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>yg.jsxs("div",{style:{...Zz,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s},children:[r.size.y>1&&yg.jsx($z,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&r.size.x>1&&d+1===r.size.y){const t=r.data.at(-1);return p.push(yg.jsx(Jz,{headersData:r,menuItems:t[0],dataModel:e,translator:o,changeSortOrder:i,changeActivelySortedHeader:a},t[0][0].id)),p}return p=s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(yg.jsx(jz,{dataModel:e,style:{width:t[f],height:n,gridColumn:c.isIndentModeEnabled&&r.size.x>1?2:f+1,gridRow:d+1,zIndex:r.size.x-f},isLastRow:d===r.size.y-1,isFirstColumn:0===f,isLastColumn:f===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[]),p}))]});var tj=Go.memo(ej);const nj=(e,t,n,r,o)=>{Go.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])},rj=(e,t)=>{lg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},oj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===TD.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 uq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return uq(u,i,r)},ij=()=>{},aj=({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=_D(),{interactions:f,flags:h}=wD(),{select:m,isLocked:g}=GN(),{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?m(r):void 0;return yg.jsx("div",{title:f.passive?t:void 0,style:{...n,...Lt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...wt,padding:"0px 4px",cursor:eq(x),background:KN({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:oj(r,v,s,h),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:ij,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})},lj=e=>e.stopPropagation(),sj=({href:e,text:t,interactions:n,color:r})=>Wo.createElement(YA,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:lj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),uj=e=>e.contentRowHeight/2-e.contentTextHeight/2,cj=({children:e,styleService:t,isLeftColumn:n,textStyle:r})=>yg.jsx("span",{style:{...r,marginTop:n?uj(t):void 0,padding:"0px 4px"},children:e}),dj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=GN(),{interactions:i,flags:a}=wD();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Ct,...Rt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:XN({cell:e,styleService:t,isCellSelected:n}),fontWeight:QN({cell:e,styleService:t}),fontStyle:JN({cell:e,styleService:t}),textDecoration:ZN({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type===TD.Image&&!e.isTotal&&a.isEnabled(Ve)?yg.jsx(sq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:s,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand}):(e.representation.type!==TD.Link||o||e.isTotal||!a.isEnabled(Ue)||(l=yg.jsx(sj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),yg.jsx(cj,{isLeftColumn:r,textStyle:s,styleService:t,children:l}))},pj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==TD.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},fj=({index:e,style:t,data:n})=>{const r=_D(),{isSelected:o}=GN(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Aq([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,v=gN(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return yg.jsx(PN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(h);return yg.jsxs(aj,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:h,data:n,isAdjustingWidth:i,children:[yg.jsxs(MN,{verticalAlign:pj(h),width:DN(h.representation),right:h.isLeftColumn?void 0:4,children:[yg.jsx(nq,{isLeftColumn:s,isCellSelected:b,cell:h,dataModel:l}),yg.jsx(dj,{isLeftColumn:s,isCellSelected:b,cell:h,styleService:r})]}),yg.jsx(Pq,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Qe.Measures:Qe.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var hj=Wo.memo(fj,mN);const mj=({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()},gj=(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}},vj=(e,t)=>n=>{e.current&&(e.current[t]=n)},bj={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Et},yj={overflow:"hidden",willChange:"auto",flexShrink:0},xj=({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}}=_D();rj(t,a),nj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return yg.jsx("div",{style:{...bj,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=rO(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=gj(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,h,c.qcy);return yg.jsx(dN,{ref:vj(t,p),style:{...yj,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:Sq,estimatedItemSize:v,children:hj},m)}))})};var Sj=Go.memo(xj);const Ej={overflow:"hidden",willChange:"auto"},wj={...Et,borderWidth:"0px 0px 0px 1px"},Cj=({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}=_D(),p={...wj,borderColor:c,height:o};rj(t,a),nj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?yg.jsx("div",{style:{width:r,height:o,...wj}}):yg.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=gj(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?rO(g):`empty ${c}`;return yg.jsx(dN,{ref:vj(t,c),style:Ej,height:n(),width:r,itemCount:p,itemSize:mj({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:Sq,estimatedItemSize:h,children:hj},v)}))})};var Rj=Go.memo(Cj);const kj=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=_D(),u=((e,t,n)=>Go.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 Go.useMemo((()=>{var e,n,a,l;const s=kT(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=kT(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(RT(i,o,0)),visibleTopDimensionInfo:u.map(RT(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const n=Go.useMemo((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return n})(e,r.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:v,attrExprInfoIndexes:b,nextPageHandler:y}=xT(o,r,i,c,d),x=wT({model:e,nextPageHandler:y,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:S,onVerticalScrollHandler:E,verticalScrollableContainerRef:w,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:R,dataGridRef:k,leftGridRef:L,topGridRef:_,verticalScrollbarWidth:A,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:P,verticalScrollDirection:M,horizontalScrollDirection:D}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=wD(),f=Go.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=Go.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=Go.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Go.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Go.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Go.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Go.useRef(0),x=Go.useRef(0),S=Go.useRef(et.None),E=Go.useRef(et.None),[w,C]=Go.useState(0),[R,k]=Go.useState(0),L=d.name(),_=e=>{E.current=CT(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=CT(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Go.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Go.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=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]),Go.useLayoutEffect((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const A=Go.useCallback((e=>{if(e)return void k(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}k(t)}),[k]);return Go.useLayoutEffect((()=>{if(f.current){const e=f.current,n=e.offsetWidth-e.clientWidth;C(n),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&n>0&&(t.verticalScrollbarWidth=n)}A()}),[A,e,t,r.width,r.height,L,p]),Go.useLayoutEffect((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,C(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ze.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ze.DATA_GRID}`&&(_(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&&(_(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:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:A,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:O,headerGridHeight:T,topGridHeight:N,leftGridHeight:q,dataGridHeight:F,allRowsVisible:z}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=_D(),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-bt,l),dataGridHeight:Math.min(r.height-c-bt,l),allRowsVisible:c+bt+l+o<=r.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:j,leftGridColumnWidths:$,rightGridWidth:H,totalWidth:B,showLastRightBorder:G,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:V,overrideLeftGridWidth:U}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=_D(),{measureText:l}=Xo(a.header),s=YD({layoutService:e,tableWidth:t,headersData:n}),u=KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+bt,d=c<t,p=Go.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+DD;return t&&a+MD<=r&&(i=!0,a+=MD),a+PD<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Go.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:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:A,horizontalScrollbarHeightSetter:P}),{rootWrapper:Y,leftWrapper:K,rightWrapper:X}=(({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+bt,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,v=e.height-m,b=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+bt-h,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:O,headerGridHeight:T,leftGridHeight:q,topGridHeight:N,dataGridHeight:F,allRowsVisible:z,totalWidth:B,leftGridWidth:j,rightGridWidth:H,verticalScrollbarWidth:A,horizontalScrollbarHeight:I}),Q=Go.useCallback((()=>l),[l]),J=Go.useCallback((()=>s),[s]);return yg.jsx(IT,{ref:w,...Y.scrollable,onScroll:E,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ze.CONTAINER_GRID,children:yg.jsx(LT,{...Y.fullSize,children:yg.jsxs(PT,{...Y.sticky,style:{display:"grid",gridTemplateColumns:j?`${K.containers.scrollable.width}px ${X.containers.scrollable.width}px`:`${X.containers.scrollable.width}px`},children:[Boolean(j)&&yg.jsx(IT,{ref:C,...K.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.LEFT_GRID,children:yg.jsx(LT,{isLeftGrid:!0,...K.containers.fullSize,children:yg.jsxs(PT,{isLeftGrid:!0,...K.containers.sticky,children:[yg.jsx(tj,{dataModel:x,columnWidths:$,getHeaderCellsIconsVisibilityStatus:V,rowHight:l,height:K.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:U,layoutService:r}),yg.jsx(Sj,{dataModel:x,leftGridRef:L,...K.leftGrid,columnWidths:$,layoutService:r,leftDimensionData:v,showLastBorder:{right:!1,bottom:z},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),yg.jsx(IT,{ref:R,...X.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.DATA_GRID,children:yg.jsx(LT,{...X.containers.fullSize,children:yg.jsxs(PT,{...X.containers.sticky,children:[yg.jsx(Rj,{dataModel:x,topGridRef:_,rowHightCallback:Q,...X.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:G,bottom:!1},getRightGridColumnWidth:W,headersData:h}),yg.jsx(Rq,{dataModel:x,dataGridRef:k,rowHightCallback:J,...X.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:v,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:G,bottom:z},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:M,horizontalScrollDirection:D})]})})})]})})})},Lj=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=wD(),{layout:u,hasData:c}=t;return yg.jsxs(yg.Fragment,{children:[c&&yg.jsx(kj,{...e}),yg.jsx(RD,{translator:n,layoutService:t}),yg.jsx(xD,{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})]})},_j={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)"},Aj=12,Ij=14,Pj=16,Mj=24,Dj=3,Oj=300,Tj=400,Nj=600,qj=700,Fj={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tw(_j.GREYSCALE_0,.05),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var zj;function jj(){return jj=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},jj.apply(this,arguments)}Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var $j,Hj=function(e){return Go.createElement("svg",jj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zj||(zj=Go.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bj(){return Bj=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},Bj.apply(this,arguments)}var Gj=function(e){return Go.createElement("svg",Bj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$j||($j=Go.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 Wj({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wo.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 Vj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wo.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"}))),Uj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Kj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wo.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"}))),Xj=({className:e})=>Wo.createElement(Wj,{fontSize:"small",className:e},Wo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wo.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"}),Wo.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"})))))),Qj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:_j.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Jj={MuiAccordion:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_j.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Hj,{"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 ${_j.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,borderRadius:Dj,backgroundColor:_j.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 ${_j.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_j.WHITE,color:_j.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:Dj},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:Dj,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_j.PURPLE,"&.Mui-focusVisible":{borderColor:_j.PURPLE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_j.GREEN,"&.Mui-focusVisible":{borderColor:_j.GREEN,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_j.BLUE,"&.Mui-focusVisible":{borderColor:_j.BLUE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_j.ORANGE,"&.Mui-focusVisible":{borderColor:_j.ORANGE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_j.RED,"&.Mui-focusVisible":{borderColor:_j.RED,boxShadow:`0 0 0 3px ${SS(_j.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_j.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_j.PURPLE_PALE},"&:active":{backgroundColor:_j.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_j.PURPLE_PALE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_j.ORANGE_PALE},"&:active":{backgroundColor:_j.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_j.ORANGE_PALE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_j.RED_PALE},"&:active":{backgroundColor:_j.RED_DARK},"&.Mui-focusVisible":{borderColor:_j.RED_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:_j.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_j.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Dj,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Aj,borderRadius:Dj,color:_j.TEXT_PRIMARY,backgroundColor:_j.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:_j.GREYSCALE_0_05,color:_j.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_j.GREEN,borderColor:_j.GREEN},"&.MuiChip-outlinedInfo":{color:_j.BLUE,borderColor:_j.BLUE},"&.MuiChip-outlinedWarning":{color:_j.ORANGE,borderColor:_j.ORANGE},"&.MuiChip-outlinedError":{color:_j.RED,borderColor:_j.RED}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Dj,boxShadow:"none",backgroundColor:_j.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_j.GREEN,borderColor:_j.GREEN},outlinedSecondary:{color:_j.BLUE,borderColor:_j.BLUE},label:{fontFamily:Fj.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Hj,{"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:Dj},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Dj,fontSize:Ij,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_j.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_j.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_j.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_j.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_j.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Dj,border:`solid 1px ${_j.GREYSCALE_0_15}`,color:_j.GREYSCALE_0_60,marginRight:0,width:Mj,height:Mj},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_j.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Dj,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_j.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ij}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Aj,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_j.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_j.GREYSCALE_25,fontSize:Aj,fontFamily:Fj.FONT_FAMILY,fontWeight:Nj,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_j.TEXT_PRIMARY},"&.Mui-error":{color:_j.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_j.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tj,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_j.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tj,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ij,lineHeight:"16px",backgroundColor:_j.WHITE,borderRadius:Dj,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_05}`,borderColor:_j.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.RED}`,boxShadow:`0px 0px 0px 1px ${_j.RED}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_10}`,borderColor:_j.GREYSCALE_0_10,backgroundColor:_j.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_j.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_j.GREYSCALE_0_15,borderRadius:Dj,boxShadow:`inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Hj,{...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:_j.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_j.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&:focus":{backgroundColor:_j.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_j.GREYSCALE_0_30,"&:hover":{backgroundColor:_j.GREYSCALE_0_0,borderColor:_j.GREYSCALE_0_15},"& ~svg":{color:_j.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Dj}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_j.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ij,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Aj,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Aj,fontWeight:Nj,color:_j.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nj}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(Yj,null),checkedIcon:Wo.createElement(Kj,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_j.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_j.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_j.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(Qj,null),checkedIcon:Wo.createElement(Vj,null),indeterminateIcon:Wo.createElement(Uj,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Dj,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_j.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_j.GREYSCALE_0_55,color:_j.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:_j.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_j.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_j.GREYSCALE_0_55,"&:hover":{color:_j.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:_j.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_j.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ij,color:_j.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nj},secondary:{fontSize:Aj,color:_j.GREYSCALE_45,fontWeight:Tj,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ij,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ij,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_j.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Aj,borderBottom:`solid 1px ${_j.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ij,color:_j.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.RED}}},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.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:_j.GREEN,height:"24px","&.Mui-disabled":{color:_j.GREYSCALE_0_15}},rail:{backgroundColor:_j.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj,boxShadow:`inset 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.WHITE,boxShadow:`0px 1px 2px 0px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`,"&:hover":{borderRadius:Dj,boxShadow:`0 2px 4px 0 ${_j.GREYSCALE_0_30}, 0 0 0 1px ${_j.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_j.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_j.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_j.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_j.GREYSCALE_0_15},markLabel:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_j.WHITE,color:_j.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:_j.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:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_j.GREYSCALE_0_15,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.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:Ij,fontWeight:Nj,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_j.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,backgroundColor:_j.GREYSCALE_0_03,borderRadius:Dj},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_j.GREYSCALE_25,"&.Mui-selected":{color:_j.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ij,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${_j.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${_j.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderRight:`1px solid ${_j.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nj,backgroundColor:_j.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:_j.GREYSCALE_98,borderBottom:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderTop:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_j.GREYSCALE_0_05,"&:hover":{backgroundColor:_j.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_j.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(Xj,{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 ${_j.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ij,borderRadius:Dj,padding:"7px 16px",border:`1px solid ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_60,color:_j.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_j.GREYSCALE_0_03,border:`1px solid ${_j.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_j.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`,border:`1px solid ${_j.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_j.GREYSCALE_25,backgroundColor:_j.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Aj,height:24,width:24,padding:7},sizeLarge:{fontSize:Pj,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ij,borderRadius:Dj}}},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:_j.GREYSCALE_20},tooltip:{backgroundColor:_j.GREYSCALE_20,fontSize:Aj,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Zj=e=>Jj;const e$={mode:"light",primary:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},secondary:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},error:{ultraLight:_j.RED_ULTRA_LIGHT,light:_j.RED_PALE,main:_j.RED,dark:_j.RED_DARK,extraDark:_j.RED_EXTRA_DARK,contrastText:_j.WHITE},warning:{ultraLight:_j.ORANGE_ULTRA_LIGHT,light:_j.ORANGE_PALE,main:_j.ORANGE,dark:_j.ORANGE_DARK,extraDark:_j.ORANGE_EXTRA_DARK,contrastText:_j.WHITE},success:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},info:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},text:{primary:_j.TEXT_PRIMARY,secondary:_j.TEXT_SECONDARY,disabled:_j.GREYSCALE_0_30},action:{hover:_j.GREYSCALE_0_03,hoverOpacity:.05,selected:_j.GREYSCALE_0_05,focus:_j.MISC_FOCUS_BORDER},amethyst:{ultraLight:_j.WHITE,main:_j.PURPLE,light:_j.PURPLE_PALE,dark:_j.PURPLE_DARK,extraDark:_j.GREYSCALE_0_0,contrastText:_j.WHITE},background:{paper:_j.WHITE,default:_j.GREYSCALE_95},divider:_j.GREYSCALE_0_15},t$=e=>e$,n$=(e="light")=>({components:Zj(),palette:t$(),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:Ij,fontWeightLight:Oj,fontWeightRegular:Tj,fontWeightMedium:Nj,fontWeightBold:qj,htmlFontSize:Ij,fontFamily:Fj.FONT_FAMILY,button:{fontWeight:Nj,fontSize:Ij,textTransform:"none"},body1:{fontSize:Pj,lineHeight:"24px"},body2:{fontSize:Ij,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mj,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Pj,fontWeight:Nj,lineHeight:"16px"},h6:{fontSize:Ij,fontWeight:Nj,lineHeight:"16px"},caption:{color:_j.TEXT_SECONDARY},subtitle1:{fontSize:Ij,color:_j.TEXT_SECONDARY},subtitle2:{fontSize:Aj,color:_j.TEXT_SECONDARY}},shape:{borderRadius:Dj}});const r$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=n$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),XE({...n,direction:e})}("ltr");e.render(yg.jsx(Wo.StrictMode,{children:yg.jsx(Mw,{theme:d,children:yg.jsx(CD,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:yg.jsx(WN,{selections:n,updatePageInfo:t.updatePageInfo,children:yg.jsx(AD,{styleService:r,children:yg.jsx(Lj,{...t})})})})})}))},o$={darker:.15,brighter:.3,opacity:.03},i$={darker:.3,brighter:.5,opacity:.05};var a$,l$,s$,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"}(a$||(a$={})),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"}(l$||(l$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(s$||(s$={})),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 c$=e=>e?`${parseInt(e,10)}px`:void 0,d$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?yt.Transparent:n}},p$=(e,t)=>+(parseInt(e,10)*vt*t+8).toFixed(2),f$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ht:"normal",h$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",m$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",g$=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,v$=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,gt),y:Math.min(e.qHyperCube.qSize.qcy,mt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(zD),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:zD,e]}))),v=u.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const n=e%v.length;return t?n:u.findIndex((e=>e===v[n]))},getDimensionInfo:e=>e===zD?zD:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(Ye)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[t,a,l,n])},b$={},y$=t=>{const n=(t=>{const n=e.useMemo((()=>({current:b$})),[]);return n.current=n.current===b$?t:n.current,n})(t);return n.current=t,n},x$=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=y$((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/He.PixelsMin)}))(o));return Kn((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(gt,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(FD,ET(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},S$=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),E$=(e,t)=>{const n=mt;return{rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:S$({rowsPerPage:n,totalRowCount:e,page:t})}},w$=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var C$={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 R$=()=>{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(C$).forEach((t=>{e.add(C$[t])}))}}(t)),[t]),{translator:t,language:n}},k$=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>rg(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,p]=((e,t)=>Kn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),f=v$(i,n,d),h=e.useSelections(),m=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:Yn(o,t,n,r)})),[o.name(),t,n,r])})(r),g=m.name(),{translator:v,language:b}=R$(),{pageInfo:y,updatePageInfo:x}=(t=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=t,[o,i]=e.useState({page:0,shouldShowPagination:r.qcy>n.y,...E$(r.qcy,0)});return e.useEffect((()=>{i((e=>({...e,...E$(t.layout.qHyperCube.qSize.qcy,e.page),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,i]),e.useEffect((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,n=S$({...o,page:e});i({...o,page:e,rowsOnCurrentPage:n})}}),[o]),{pageInfo:o,updatePageInfo:e=>i({...o,...e,rowsOnCurrentPage:S$({...o,...e})})}})(f),S=((t,n)=>{const{viewState:r}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R;return{gridColumnStartIndex:null!==(n=null!==(r=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==r?r:null==e?void 0:e.gridColumnStartIndex)&&void 0!==n?n:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(v=null!==(b=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==b?b:null==e?void 0:e.scrollLeft)&&void 0!==v?v:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(w=null!==(C=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==C?C:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==w?w:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData])})(y,i),E=(({layoutService:t,viewService:n,rect:r,model:o})=>{var i;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=w$(n);e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(FD,[{qLeft:n.gridColumnStartIndex,qTop:n.gridRowStartIndex,qWidth:n.gridWidth,qHeight:n.gridHeight}]),gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>w$(n)})),[n]),null!==(i=t.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r})({rect:e.useRect(),layoutService:f,viewService:S,model:a}),[w,C]=x$({model:a,layoutService:f,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R,k,L,_,A,I,P,M,D,O,T,N,q,F,z,j,$,H,B,G,W,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[a$.LineClamp])&&void 0!==i?i:oe(l$.Grid,s$.Grid,u$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled(Ve)?+(null!==(a=null!==(l=null==re?void 0:re[a$.ColumnLineClamp])&&void 0!==l?l:oe(l$.Grid,s$.Grid,u$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=d$(e,null==Q?void 0:Q[a$.Background]))&&void 0!==u?u:oe(l$.Dimension,s$.LabelName,u$.BackgroundColor))&&void 0!==s?s:yt.Transparent,se={header:{fontSize:null!==(c=null!==(d=c$(null==Q?void 0:Q[a$.FontSize]))&&void 0!==d?d:oe(l$.Dimension,s$.LabelName,u$.FontSize))&&void 0!==c?c:pt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[a$.FontFamily])&&void 0!==f?f:oe(l$.Dimension,s$.LabelName,u$.FontFamily))&&void 0!==p?p:ft,fontWeight:f$(null==Q?void 0:Q[a$.FontStyle],ht),fontStyle:h$(null==Q?void 0:Q[a$.FontStyle]),textDecoration:m$(null==Q?void 0:Q[a$.FontStyle]),color:null!==(h=null!==(m=d$(e,null==Q?void 0:Q[a$.FontColor]))&&void 0!==m?m:oe(l$.Dimension,s$.LabelName,u$.Color))&&void 0!==h?h:LP.TEXT,background:le,hoverBackground:_P(le,o$),activeBackground:_P(le,i$)},dimensionValues:{fontSize:null!==(g=null!==(v=c$(null==J?void 0:J[a$.FontSize]))&&void 0!==v?v:oe(l$.Dimension,s$.LabelValue,u$.FontSize))&&void 0!==g?g:pt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[a$.FontFamily])&&void 0!==y?y:oe(l$.Dimension,s$.LabelValue,u$.FontFamily))&&void 0!==b?b:ft,fontWeight:f$(null==J?void 0:J[a$.FontStyle],void 0),fontStyle:h$(null==J?void 0:J[a$.FontStyle]),textDecoration:m$(null==J?void 0:J[a$.FontStyle]),color:null!==(x=null!==(S=d$(e,null==J?void 0:J[a$.FontColor]))&&void 0!==S?S:oe(l$.Dimension,s$.LabelValue,u$.Color))&&void 0!==x?x:LP.TEXT,background:null!==(E=null!==(w=d$(e,null==J?void 0:J[a$.Background]))&&void 0!==w?w:oe(l$.Dimension,s$.LabelValue,u$.BackgroundColor))&&void 0!==E?E:yt.Transparent},measureValues:{fontSize:null!==(C=null!==(R=c$(null==Z?void 0:Z[a$.FontSize]))&&void 0!==R?R:oe(l$.Measure,s$.LabelValue,u$.FontSize))&&void 0!==C?C:pt,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[a$.FontFamily])&&void 0!==L?L:oe(l$.Measure,s$.LabelValue,u$.FontFamily))&&void 0!==k?k:ft,fontWeight:f$(null==Z?void 0:Z[a$.FontStyle],"normal"),fontStyle:h$(null==Z?void 0:Z[a$.FontStyle]),textDecoration:m$(null==Z?void 0:Z[a$.FontStyle]),color:null!==(_=null!==(A=d$(e,null==Z?void 0:Z[a$.FontColor]))&&void 0!==A?A:oe(l$.Measure,s$.LabelValue,u$.Color))&&void 0!==_?_:yt.FontSecondary,background:null!==(I=null!==(P=d$(e,null==Z?void 0:Z[a$.Background]))&&void 0!==P?P:oe(l$.Measure,s$.LabelValue,u$.BackgroundColor))&&void 0!==I?I:yt.Transparent},measureLabels:{fontWeight:f$(null==ee?void 0:ee[a$.FontStyle],"normal"),fontStyle:h$(null==ee?void 0:ee[a$.FontStyle]),textDecoration:m$(null==ee?void 0:ee[a$.FontStyle]),color:null!==(M=null!==(D=d$(e,null==ee?void 0:ee[a$.FontColor]))&&void 0!==D?D:oe(l$.Measure,s$.LabelName,u$.Color))&&void 0!==M?M:yt.FontSecondary,background:null!==(O=null!==(T=d$(e,null==ee?void 0:ee[a$.Background]))&&void 0!==T?T:oe(l$.Measure,s$.LabelName,u$.BackgroundColor))&&void 0!==O?O:yt.Transparent},totalValues:{fontWeight:f$(null==te?void 0:te[a$.FontStyle],ht),fontStyle:h$(null==te?void 0:te[a$.FontStyle]),textDecoration:m$(null==te?void 0:te[a$.FontStyle]),color:null!==(N=null!==(q=d$(e,null==te?void 0:te[a$.FontColor]))&&void 0!==q?q:oe(l$.Total,s$.LabelValue,u$.Color))&&void 0!==N?N:LP.TEXT,background:null!==(F=null!==(z=d$(e,null==te?void 0:te[a$.Background]))&&void 0!==z?z:oe(l$.Total,s$.LabelValue,u$.BackgroundColor))&&void 0!==F?F:yt.Transparent},nullValues:{fontWeight:f$(null==ne?void 0:ne[a$.FontStyle],"normal"),fontStyle:h$(null==ne?void 0:ne[a$.FontStyle]),textDecoration:m$(null==ne?void 0:ne[a$.FontStyle]),color:null!==(j=null!==($=d$(e,null==ne?void 0:ne[a$.FontColor]))&&void 0!==$?$:oe(l$.Null,s$.LabelValue,u$.Color))&&void 0!==j?j:LP.TEXT,background:null!==(H=null!==(B=d$(e,null==ne?void 0:ne[a$.Background]))&&void 0!==B?B:oe(l$.Null,s$.LabelValue,u$.BackgroundColor))&&void 0!==H?H:yt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(G=null!==(W=d$(e,null==re?void 0:re[a$.Border]))&&void 0!==W?W:oe(l$.Grid,s$.Grid,u$.BorderColor))&&void 0!==G?G:yt.DividerLight,divider:null!==(V=null!==(U=d$(e,null==re?void 0:re[a$.Divider]))&&void 0!==U?U:oe(l$.Grid,s$.Divider,u$.BorderColor))&&void 0!==V?V:yt.DividerDark,background:null!==(Y=null!==(K=d$(e,null==re?void 0:re[a$.Background]))&&void 0!==K?K:oe(l$.Grid,s$.Grid,u$.BackgroundColor))&&void 0!==Y?Y:yt.Transparent}};return se.headerCellHeight=Math.max(p$(se.header.fontSize,ae),p$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(p$(se.measureValues.fontSize,ie),p$(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(p$(se.measureValues.fontSize,1),p$(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(m,f,n)),[m.name(),f,n]),k=(t=>e.useMemo((()=>[...new Set([g$(t.header),g$(t.dimensionValues),g$({...t.dimensionValues,...t.measureLabels}),g$({...t.dimensionValues,...t.nullValues}),g$({...t.dimensionValues,...t.totalValues}),g$(t.measureValues),g$({...t.measureValues,...t.nullValues}),g$({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(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})(k);e.useEffect((()=>{!C&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&f&&R&&!!w&&!p&&L&&r$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:f,qPivotDataPages:w,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:m,flags:n})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,f,C,w,R,o,L,v,b,y,x,d,p,s,u,m,g,n])},L$={version:"3.4.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:[]};return function(e){return{qae:{properties:{initial:L$},data:_e(e)},ext:Vt(e),component(){k$(e)}}}}));