@nebula.js/sn-pivot-table 3.8.3 → 3.9.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.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +15 -15
- package/dist/sn-pivot-table.js +17 -17
- package/dist/sn-pivot-table.systemjs.js +15 -15
- package/package.json +8 -8
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +17 -17
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
package/dist/sn-pivot-table.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.9.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=I(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):M(i)&&M(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&I(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!I(t[0])&&I(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Me=ke;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Ie(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(n++,"object"!==Ie(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(n)||Me.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(l++,"object"!==Ie(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!_e[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const I=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),I(g,t,r),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Ie,arrayName:Me,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],f=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${I},${I},${I}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${M}\\)$`),T=new RegExp(`^rgba\\(${I},${I},${I},${M}\\)$`),O=new RegExp(`^hsl\\(${M},${I},${I}\\)$`),N=new RegExp(`^hsla\\(${M},${I},${I},${M}\\)$`),q={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new _e(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new _e(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ie)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Me(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ie(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _e(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}_e.prototype=Re.prototype={constructor:_e,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Me)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=function(e){
|
|
7
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},k=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||_(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=ke;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!_e[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=Object.prototype.hasOwnProperty,f=Object.prototype.toString,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===f.call(e)},v=function(e){if(!e||"[object Object]"!==f.call(e))return!1;var t,n=p.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||p.call(e,t)},b=function(e,t){m&&"__proto__"===t.name?m(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},y=function(e,t){if("__proto__"===t){if(!p.call(e,t))return;if(h)return h(e,t).value}return e[t]};function x(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function S(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function E(){}!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=y(l,n),l!==(o=y(t,n))&&(c&&o&&(v(o)||(i=g(o)))?(i?(i=!1,a=r&&g(r)?r:[]):a=r&&v(r)?r:{},b(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&b(l,{name:n,newValue:o}));return l}));var C=1/.7,w="\\s*([+-]?\\d+)\\s*",R="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k=/^#([0-9a-f]{3,8})$/,I=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),M=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),_=new RegExp(`^rgba\\(${w},${w},${w},${R}\\)$`),P=new RegExp(`^rgba\\(${L},${L},${L},${R}\\)$`),A=new RegExp(`^hsl\\(${R},${L},${L}\\)$`),D=new RegExp(`^hsla\\(${R},${L},${L},${R}\\)$`),T={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 O(){return this.rgb().formatHex()}function N(){return this.rgb().formatRgb()}function q(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=k.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?F(t):3===n?new B(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?z(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 B(t[1],t[2],t[3],1):(t=M.exec(e))?new B(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_.exec(e))?z(t[1],t[2],t[3],t[4]):(t=P.exec(e))?z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=A.exec(e))?Y(t[1],t[2]/100,t[3]/100,1):(t=D.exec(e))?Y(t[1],t[2]/100,t[3]/100,t[4]):T.hasOwnProperty(e)?F(T[e]):"transparent"===e?new B(NaN,NaN,NaN,0):null}function F(e){return new B(e>>16&255,e>>8&255,255&e,1)}function z(e,t,n,r){return r<=0&&(e=t=n=NaN),new B(e,t,n,r)}function j(e){return e instanceof E||(e=q(e)),e?new B((e=e.rgb()).r,e.g,e.b,e.opacity):new B}function $(e,t,n,r){return 1===arguments.length?j(e):new B(e,t,n,null==r?1:r)}function B(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function H(){return`#${U(this.r)}${U(this.g)}${U(this.b)}`}function W(){const e=G(this.opacity);return`${1===e?"rgb(":"rgba("}${V(this.r)}, ${V(this.g)}, ${V(this.b)}${1===e?")":`, ${e})`}`}function G(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function V(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function U(e){return((e=V(e))<16?"0":"")+e.toString(16)}function Y(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new X(e,t,n,r)}function K(e){if(e instanceof X)return new X(e.h,e.s,e.l,e.opacity);if(e instanceof E||(e=q(e)),!e)return new X;if(e instanceof X)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 X(a,l,s,e.opacity)}function X(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Q(e){return(e=(e||0)%360)<0?e+360:e}function J(e){return Math.max(0,Math.min(1,e||0))}function Z(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}x(E,q,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return K(this).formatHsl()},formatRgb:N,toString:N}),x(B,$,S(E,{brighter(e){return e=null==e?C:Math.pow(C,e),new B(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new B(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new B(V(this.r),V(this.g),V(this.b),G(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H,formatHex:H,formatHex8:function(){return`#${U(this.r)}${U(this.g)}${U(this.b)}${U(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:W,toString:W})),x(X,(function(e,t,n,r){return 1===arguments.length?K(e):new X(e,t,n,null==r?1:r)}),S(E,{brighter(e){return e=null==e?C:Math.pow(C,e),new X(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new X(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 B(Z(e>=240?e-240:e+120,o,r),Z(e,o,r),Z(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new X(Q(this.h),J(this.s),J(this.l),G(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=G(this.opacity);return`${1===e?"hsl(":"hsla("}${Q(this.h)}, ${100*J(this.s)}%, ${100*J(this.l)}%${1===e?")":`, ${e})`}`}}));const ee=Math.PI/180,te=180/Math.PI,ne=4/29,re=6/29,oe=3*re*re;function ie(e){if(e instanceof ae)return new ae(e.l,e.a,e.b,e.opacity);if(e instanceof de)return pe(e);e instanceof B||(e=j(e));var t,n,r=ce(e.r),o=ce(e.g),i=ce(e.b),a=le((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=le((.4360747*r+.3850649*o+.1430804*i)/.96422),n=le((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ae(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ae(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function le(e){return e>.008856451679035631?Math.pow(e,1/3):e/oe+ne}function se(e){return e>re?e*e*e:oe*(e-ne)}function ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ce(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pe(e){if(isNaN(e.h))return new ae(e.l,0,0,e.opacity);var t=e.h*ee;return new ae(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}x(ae,(function(e,t,n,r){return 1===arguments.length?ie(e):new ae(e,t,n,null==r?1:r)}),S(E,{brighter(e){return new ae(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ae(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 B(ue(3.1338561*(t=.96422*se(t))-1.6168667*(e=1*se(e))-.4906146*(n=.82521*se(n))),ue(-.9787684*t+1.9161415*e+.033454*n),ue(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),x(de,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof ae||(e=ie(e)),0===e.a&&0===e.b)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*te;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new de(e,t,n,null==r?1:r)}),S(E,{brighter(e){return new de(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new de(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pe(this).rgb()}}));var fe=e=>()=>e;function me(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fe(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?me: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):fe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=$(e)).r,(t=$(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=me(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 he="center",ge="bottom";[{key:"NoDataExist",alignment:he,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:he,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:he,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:he},{key:"DataRangeIncludingZero",alignment:ge},{key:"LimitedData",alignment:ge},{key:"NegativeOrZeroValues",alignment:ge}].reduce((function(e,t){return e[t.key]=t,e}),{});var ve,be=["__proto__","constructor"];function ye(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!be.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 xe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function 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=we)):void 0===t&&(t=Ce);for(var n,r,o,i,a,l=new ke(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 ke(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Le)}function Ce(e){return e.children}function we(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 Le(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ke(e){this.data=e,this.depth=this.height=0,this.parent=null}function Ie(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")}}]}}ke.prototype=Ee.prototype={constructor:ke,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)}},ve=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Mt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),It=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,_t=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:It(o,n),borderBottom:It(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=_t(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=It(2,o)),n||(a.borderLeft=It(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=It(1,n)),t&&(r.borderRight=It(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(null,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var Mn=Array.isArray,In=Object.prototype.hasOwnProperty,_n={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)In.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:_n.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,Mn(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Mn(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:_n};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=_n.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)In.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var gr={black:"#000",white:"#fff"};var vr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var br={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var yr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var xr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Sr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var Er={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Cr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function wr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Mr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Ir=Object.freeze({__proto__:null,default:Mr}),_r=function(){return _r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_r.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Mo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Io(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Mo(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Mo(e.children,r))?e.return=e.value+"{"+n+"}":""}function _o(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Mo([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.12",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ri=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Mi=1,Ii=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Mi);)Mi++;var t=Mi++;return Li.set(e,t),ki.set(t,e),t},_i=function(e,t){Mi=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(_i(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Oi=function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ni=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},qi=function(){function e(e){this.element=Ni(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Fi=function(){function e(e){this.element=Ni(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),zi=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ji=qo,$i={isServer:!qo,useCSSOMInjection:!Fo},Bi=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=_r(_r({},$i),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&ji&&(ji=!1,Oi(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Ii(e)},e.prototype.rehydrate=function(){!this.server&&qo&&Oi(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(_r(_r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new zi(n):t?new qi(n):new Fi(n)}(this.options),new Ri(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Ii(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ii(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ii(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Hi=/&/g,Wi=/^\s*\/\/.*$/gm;function Gi(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Gi(e.children,t)),e}))}var Vi=new Bi,Ui=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Hi,n).replace(r,u))})),a.prefix&&c.push(_o),c.push(Io);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Wi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Gi(u,a.namespace));var d,p=[];return Mo(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Yi=Wn.createContext({shouldForwardProp:void 0,styleSheet:Vi,stylis:Ui});function Ki(){return Hn.useContext(Yi)}Yi.Consumer;var Xi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ui);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ui),this.name+e.hash},e}(),Qi=function(e){return e>="A"&&e<="Z"};function Ji(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Qi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zi=function(e){return null==e||!1===e||""===e},ea=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Zi(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Ji(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],ea(i),!1),["}"],!1)):r.push("".concat(Ji(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ta(e,t,n,r){return Zi(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ta(e(t),t,n,r):e instanceof Xi?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?ea(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ta(e,t,n,r)}))):[e.toString()];var o}function na(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var ra=Zo(Oo),oa=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&na(e),this.componentId=t,this.baseHash=Jo(ra,t),this.baseStyle=n,Bi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ta(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ta(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),ia=Wn.createContext(void 0);ia.Consumer;var aa={};new Set;function la(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);aa[n]=(aa[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+aa[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new oa(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(ia),c=Ki(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=_r(_r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?_r(_r({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Ki();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function sa(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ua=function(e){return Object.assign(e,{isCss:!0})};function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return ua(ta(sa(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ta(r):ua(ta(sa(r,t)))}function da(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ca.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return da(e,t,_r(_r({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return da(e,t,_r(_r({},n),r))},r}var pa=function(e){return da(la,e)},fa=pa;Ho.forEach((function(e){fa[e]=pa(e)}));var ma=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=na(e),Bi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ta(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Bi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ha(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ca.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Xi(o,r)}function ga(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}ga.propTypes={children:en.node,injectFirst:en.bool};const va=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ca.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new ma(r,o),a=function(e){var t=Ki(),n=Wn.useContext(ia),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=_r(_r({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var ba=va;
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},ve({exports:{}});const Me="qHyperCubeDef.qDimensions",_e="dimensions",Pe="qOtherTotalSpec.qTotalMode",Ae="totalMode",De={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Ae,arrayName:_e,itemPath:Pe})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Ae,arrayName:_e,itemPath:Pe})}};function Te(e){const t=Ie(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&ye(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],ye(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&ye(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),De.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Oe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;ye(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,ye(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),ye(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),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"}}}}};let qe=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Fe=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const ze=e=>{switch(null==e?void 0:e.type){case"url":return qe.Link;case"image":return qe.Image;default:return qe.Text}},je=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,$e=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>je(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},Be=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>ze(e.qDef.representation)===qe.Link&&je(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Dimension&&je(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Attribute&&je(r,t)}}}},He=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>ze(e.qDef.representation)===qe.Image&&je(r,t),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"}]}}}}},We=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:$e(l,a,i),...Be(a,i),...He(l,i)}},Ge=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE");return{representationType:i?{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>je(n,a),options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>ze(e.qDef.representation)===qe.Image&&je(n,a),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0}};var Ve,Ue,Ye,Ke;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ve||(Ve={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ue||(Ue={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ye||(Ye={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ke||(Ke={}));const Xe="12px",Qe="nebula-table-utils-head-menu-button",Je="sn-copy-cell";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 et="nebula-table-utils-column-adjuster",tt=`${et}-border`;let nt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),rt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const ot={darker:.15,brighter:.3,opacity:.03},it={darker:.3,brighter:.5,opacity:.05};var at,lt;!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"}(at||(at={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(lt||(lt={}));var st=at;const ut="image",ct=(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},dt=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rt.Auto,translation:"Common.Auto"},{value:rt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(nt.PixelsMin,Math.min(nt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(nt.PercentageMin,Math.min(nt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),pt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==ut}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==ut)}}}},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht="TOTAL_OFF",gt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},vt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ct},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&ct(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...dt()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...dt()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ht,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ht,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ct},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ht&&ct(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:gt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...dt()}},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:gt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...dt()}}}}},bt=(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:"transparent"===i?"none":i}}});var yt=Object.prototype.hasOwnProperty,xt=Object.prototype.toString,St=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,Ct=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===xt.call(e)},wt=function(e){if(!e||"[object Object]"!==xt.call(e))return!1;var t,n=yt.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&yt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||yt.call(e,t)},Rt=function(e,t){St&&"__proto__"===t.name?St(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Lt=function(e,t){if("__proto__"===t){if(!yt.call(e,t))return;if(Et)return Et(e,t).value}return e[t]};function kt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function It(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mt(){}!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=Lt(l,n),l!==(o=Lt(t,n))&&(c&&o&&(wt(o)||(i=Ct(o)))?(i?(i=!1,a=r&&Ct(r)?r:[]):a=r&&wt(r)?r:{},Rt(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Rt(l,{name:n,newValue:o}));return l}));var _t=1/.7,Pt="\\s*([+-]?\\d+)\\s*",At="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tt=/^#([0-9a-f]{3,8})$/,Ot=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Nt=new RegExp(`^rgb\\(${Dt},${Dt},${Dt}\\)$`),qt=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${At}\\)$`),Ft=new RegExp(`^rgba\\(${Dt},${Dt},${Dt},${At}\\)$`),zt=new RegExp(`^hsl\\(${At},${Dt},${Dt}\\)$`),jt=new RegExp(`^hsla\\(${At},${Dt},${Dt},${At}\\)$`),$t={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 Bt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function Wt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gt(t):3===n?new Kt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vt(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=Ot.exec(e))?new Kt(t[1],t[2],t[3],1):(t=Nt.exec(e))?new Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qt.exec(e))?Vt(t[1],t[2],t[3],t[4]):(t=Ft.exec(e))?Vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?tn(t[1],t[2]/100,t[3]/100,1):(t=jt.exec(e))?tn(t[1],t[2]/100,t[3]/100,t[4]):$t.hasOwnProperty(e)?Gt($t[e]):"transparent"===e?new Kt(NaN,NaN,NaN,0):null}function Gt(e){return new Kt(e>>16&255,e>>8&255,255&e,1)}function Vt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kt(e,t,n,r)}function Ut(e){return e instanceof Mt||(e=Wt(e)),e?new Kt((e=e.rgb()).r,e.g,e.b,e.opacity):new Kt}function Yt(e,t,n,r){return 1===arguments.length?Ut(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xt(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function Qt(){const e=Jt(this.opacity);return`${1===e?"rgb(":"rgba("}${Zt(this.r)}, ${Zt(this.g)}, ${Zt(this.b)}${1===e?")":`, ${e})`}`}function Jt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function en(e){return((e=Zt(e))<16?"0":"")+e.toString(16)}function tn(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 nn(e){if(e instanceof rn)return new rn(e.h,e.s,e.l,e.opacity);if(e instanceof Mt||(e=Wt(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 on(e){return(e=(e||0)%360)<0?e+360:e}function an(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)}kt(Mt,Wt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bt,formatHex:Bt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Ht,toString:Ht}),kt(Kt,Yt,It(Mt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kt(Zt(this.r),Zt(this.g),Zt(this.b),Jt(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:Xt,formatHex:Xt,formatHex8:function(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qt,toString:Qt})),kt(rn,(function(e,t,n,r){return 1===arguments.length?nn(e):new rn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,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 Kt(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 rn(on(this.h),an(this.s),an(this.l),Jt(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=Jt(this.opacity);return`${1===e?"hsl(":"hsla("}${on(this.h)}, ${100*an(this.s)}%, ${100*an(this.l)}%${1===e?")":`, ${e})`}`}}));const sn=Math.PI/180,un=180/Math.PI,cn=4/29,dn=6/29,pn=3*dn*dn;function fn(e){if(e instanceof mn)return new mn(e.l,e.a,e.b,e.opacity);if(e instanceof yn)return xn(e);e instanceof Kt||(e=Ut(e));var t,n,r=bn(e.r),o=bn(e.g),i=bn(e.b),a=hn((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=hn((.4360747*r+.3850649*o+.1430804*i)/.96422),n=hn((.0139322*r+.0971045*o+.7141733*i)/.82521)),new mn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/pn+cn}function gn(e){return e>dn?e*e*e:pn*(e-cn)}function vn(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 yn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xn(e){if(isNaN(e.h))return new mn(e.l,0,0,e.opacity);var t=e.h*sn;return new mn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kt(mn,(function(e,t,n,r){return 1===arguments.length?fn(e):new mn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return new mn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mn(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 Kt(vn(3.1338561*(t=.96422*gn(t))-1.6168667*(e=1*gn(e))-.4906146*(n=.82521*gn(n))),vn(-.9787684*t+1.9161415*e+.033454*n),vn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),kt(yn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yn)return new yn(e.h,e.c,e.l,e.opacity);if(e instanceof mn||(e=fn(e)),0===e.a&&0===e.b)return new yn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*un;return new yn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return new yn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xn(this).rgb()}}));var Sn,En=e=>()=>e;function Cn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):En(isNaN(e)?t:e)}function wn(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 Rn(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 Ln(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=In)):void 0===t&&(t=kn);for(var n,r,o,i,a,l=new Pn(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 Pn(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(_n)}function kn(e){return e.children}function In(e){return Array.isArray(e)?e[1]:null}function Mn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _n(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pn(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Cn: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):En(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Yt(e)).r,(t=Yt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cn(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),Pn.prototype=Ln.prototype={constructor:Pn,count:function(){return this.eachAfter(Rn)},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 Ln(this).eachBefore(Mn)},[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)}},Sn=function(e){
|
|
10
|
+
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
11
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Sn({exports:{}});var An=["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"],Dn=["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 Tn(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Dn:An}const On=(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},Nn=({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:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>On(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Tn(r).filter((e=>!s.includes(e))).map((e=>On(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),qn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Fn=({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=>On(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...qn.filter((e=>!a.includes(e))).map((e=>On(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),zn=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Nn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(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:Fn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),jn=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),$n=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Bn="12px",Hn="Source Sans Pro, sans-serif",Wn="600",Gn=15e3,Vn=4/3,Un=1;var Yn,Kn;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Yn||(Yn={})),function(e){e.Solid="solid",e.None="none"}(Kn||(Kn={}));const Xn={display:"flex",justifyContent:"center",alignItems:"center"},Qn={borderStyle:"solid"},Jn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Zn={lineHeight:Vn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},er=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),tr=(e,t)=>e>0?`${e}px ${Kn.Solid} ${t}`:Kn.None,nr=(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:tr(o,n),borderBottom:tr(i,n),borderLeft:Kn.None,borderTop:Kn.None}},rr=(e,t,n,r,o,i)=>{const a=nr(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=tr(2,o)),n||(a.borderLeft=tr(1,o))),a},or=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=tr(1,n)),t&&(r.borderRight=tr(1,n)),r},ir=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:$n("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?$n("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bt("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:Yn.DividerLight})),divider:bt("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:Yn.DividerDark})),background:bt("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:Yn.Transparent}))}}}}),ar=(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}},lr=(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:zn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:ar}),dimensionValueSection:zn({section:"dimensionValues",translator:e,flags:t,getThemeValue:ar}),measureValueSection:zn({section:"measureValues",translator:e,flags:t,getThemeValue:ar}),measureLabelSection:jn({section:"measureLabels",getThemeValue:ar}),totalValuesSection:jn({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:ar}),nullValuesSection:jn({section:"nullValues",fallbackBackground:Yn.NullValueBackground,getThemeValue:ar}),gridSection:ir(t)}}]}),sr=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rt.Auto,translation:"Common.Auto"},{value:rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(nt.PixelsMin,Math.min(nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(nt.PercentageMin,Math.min(nt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),ur=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[lr(e,t),sr(t)]}}}),cr="auto",dr={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:cr,translation:"Object.Table.SortingInSearch",options:[{value:cr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function pr(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:vt(e),sorting:dr,addons:Ne,settings:ur(t,n)}}}function fr(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:pr(e),importProperties:Te(e),exportProperties:Oe}}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(null,arguments)}var hr={exports:{}};function gr(){}function vr(){}vr.resetWarningCache=gr;hr.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:vr,resetWarningCache:gr};return n.PropTypes=n,n}();var br=n(hr.exports);function yr(e){if(e.type)return e;if("#"===e.charAt(0))return yr(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 xr(e,t){return e=yr(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 Sr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}function Cr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Er(e,t)}var wr={exports:{}},Rr={},Lr=Symbol.for("react.element"),kr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),Mr=Symbol.for("react.strict_mode"),_r=Symbol.for("react.profiler"),Pr=Symbol.for("react.provider"),Ar=Symbol.for("react.context"),Dr=Symbol.for("react.forward_ref"),Tr=Symbol.for("react.suspense"),Or=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),qr=Symbol.iterator;var Fr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zr=Object.assign,jr={};function $r(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}function Br(){}function Hr(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}$r.prototype.isReactComponent={},$r.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")},$r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Br.prototype=$r.prototype;var Wr=Hr.prototype=new Br;Wr.constructor=Hr,zr(Wr,$r.prototype),Wr.isPureReactComponent=!0;var Gr=Array.isArray,Vr=Object.prototype.hasOwnProperty,Ur={current:null},Yr={key:!0,ref:!0,__self:!0,__source:!0};function Kr(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)Vr.call(t,r)&&!Yr.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:Lr,type:e,key:i,ref:a,props:o,_owner:Ur.current}}function Xr(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lr}var Qr=/\/+/g;function Jr(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 Zr(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 Lr:case kr:a=!0}}if(a)return o=o(a=e),e=""===r?"."+Jr(a,0):r,Gr(o)?(n="",null!=e&&(n=e.replace(Qr,"$&/")+"/"),Zr(o,t,n,"",(function(e){return e}))):null!=o&&(Xr(o)&&(o=function(e,t){return{$$typeof:Lr,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(Qr,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Gr(e))for(var l=0;l<e.length;l++){var s=r+Jr(i=e[l],l);a+=Zr(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qr&&e[qr]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Zr(i=i.value,t,n,s=r+Jr(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 eo(e,t,n){if(null==e)return e;var r=[],o=0;return Zr(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function to(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 no={current:null},ro={transition:null},oo={ReactCurrentDispatcher:no,ReactCurrentBatchConfig:ro,ReactCurrentOwner:Ur};function io(){throw Error("act(...) is not supported in production builds of React.")}Rr.Children={map:eo,forEach:function(e,t,n){eo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return eo(e,(function(){t++})),t},toArray:function(e){return eo(e,(function(e){return e}))||[]},only:function(e){if(!Xr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Rr.Component=$r,Rr.Fragment=Ir,Rr.Profiler=_r,Rr.PureComponent=Hr,Rr.StrictMode=Mr,Rr.Suspense=Tr,Rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oo,Rr.act=io,Rr.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=zr({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Ur.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Vr.call(t,s)&&!Yr.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:Lr,type:e.type,key:o,ref:i,props:r,_owner:a}},Rr.createContext=function(e){return(e={$$typeof:Ar,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Pr,_context:e},e.Consumer=e},Rr.createElement=Kr,Rr.createFactory=function(e){var t=Kr.bind(null,e);return t.type=e,t},Rr.createRef=function(){return{current:null}},Rr.forwardRef=function(e){return{$$typeof:Dr,render:e}},Rr.isValidElement=Xr,Rr.lazy=function(e){return{$$typeof:Nr,_payload:{_status:-1,_result:e},_init:to}},Rr.memo=function(e,t){return{$$typeof:Or,type:e,compare:void 0===t?null:t}},Rr.startTransition=function(e){var t=ro.transition;ro.transition={};try{e()}finally{ro.transition=t}},Rr.unstable_act=io,Rr.useCallback=function(e,t){return no.current.useCallback(e,t)},Rr.useContext=function(e){return no.current.useContext(e)},Rr.useDebugValue=function(){},Rr.useDeferredValue=function(e){return no.current.useDeferredValue(e)},Rr.useEffect=function(e,t){return no.current.useEffect(e,t)},Rr.useId=function(){return no.current.useId()},Rr.useImperativeHandle=function(e,t,n){return no.current.useImperativeHandle(e,t,n)},Rr.useInsertionEffect=function(e,t){return no.current.useInsertionEffect(e,t)},Rr.useLayoutEffect=function(e,t){return no.current.useLayoutEffect(e,t)},Rr.useMemo=function(e,t){return no.current.useMemo(e,t)},Rr.useReducer=function(e,t,n){return no.current.useReducer(e,t,n)},Rr.useRef=function(e){return no.current.useRef(e)},Rr.useState=function(e){return no.current.useState(e)},Rr.useSyncExternalStore=function(e,t,n){return no.current.useSyncExternalStore(e,t,n)},Rr.useTransition=function(){return no.current.useTransition()},Rr.version="18.3.1",wr.exports=Rr;var ao=wr.exports,lo=n(ao),so=t({__proto__:null,default:lo},[ao]);const uo={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"},co={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",...uo,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)"},po=12,fo=14,mo=16,ho=24,go=3,vo=300,bo=400,yo=600,xo=700,So={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(co.GREYSCALE_0,.05),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var Eo;function Co(){return Co=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},Co.apply(this,arguments)}xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var wo,Ro=function(e){return ao.createElement("svg",Co({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Eo||(Eo=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Lo(){return Lo=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},Lo.apply(this,arguments)}var ko=function(e){return ao.createElement("svg",Lo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),wo||(wo=ao.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 Io({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.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 Mo=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.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"}))),_o=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Po=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ao=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.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"}))),Do=({className:e})=>lo.createElement(Io,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.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"}),lo.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 To={black:"#000",white:"#fff"};var Oo={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 No={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 qo={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 Fo={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 zo={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 jo={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 $o={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 Bo(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 Ho="$$material";function Wo(){return Wo=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},Wo.apply(this,arguments)}function Go(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Vo(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 Uo=Object.freeze({__proto__:null,default:Vo}),Yo=function(){return Yo=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},Yo.apply(this,arguments)};function Ko(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 Xo="-ms-",Qo="-moz-",Jo="-webkit-",Zo="comm",ei="rule",ti="decl",ni="@import",ri="@keyframes",oi="@layer",ii=Math.abs,ai=String.fromCharCode,li=Object.assign;function si(e){return e.trim()}function ui(e,t){return(e=t.exec(e))?e[0]:e}function ci(e,t,n){return e.replace(t,n)}function di(e,t,n){return e.indexOf(t,n)}function pi(e,t){return 0|e.charCodeAt(t)}function fi(e,t,n){return e.slice(t,n)}function mi(e){return e.length}function hi(e){return e.length}function gi(e,t){return t.push(e),e}function vi(e,t){return e.filter((function(e){return!ui(e,t)}))}var bi=1,yi=1,xi=0,Si=0,Ei=0,Ci="";function wi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bi,column:yi,length:a,return:"",siblings:l}}function Ri(e,t){return li(wi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Li(e){for(;e.root;)e=Ri(e.root,{children:[e]});gi(e,e.siblings)}function ki(){return Ei=Si>0?pi(Ci,--Si):0,yi--,10===Ei&&(yi=1,bi--),Ei}function Ii(){return Ei=Si<xi?pi(Ci,Si++):0,yi++,10===Ei&&(yi=1,bi++),Ei}function Mi(){return pi(Ci,Si)}function _i(){return Si}function Pi(e,t){return fi(Ci,e,t)}function Ai(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 Di(e){return si(Pi(Si-1,Ni(91===e?e+2:40===e?e+1:e)))}function Ti(e){for(;(Ei=Mi())&&Ei<33;)Ii();return Ai(e)>2||Ai(Ei)>3?"":" "}function Oi(e,t){for(;--t&&Ii()&&!(Ei<48||Ei>102||Ei>57&&Ei<65||Ei>70&&Ei<97););return Pi(e,_i()+(t<6&&32==Mi()&&32==Ii()))}function Ni(e){for(;Ii();)switch(Ei){case e:return Si;case 34:case 39:34!==e&&39!==e&&Ni(Ei);break;case 40:41===e&&Ni(e);break;case 92:Ii()}return Si}function qi(e,t){for(;Ii()&&e+Ei!==57&&(e+Ei!==84||47!==Mi()););return"/*"+Pi(t,Si-1)+"*"+ai(47===e?e:Ii())}function Fi(e){for(;!Ai(Mi());)Ii();return Pi(e,Si)}function zi(e){return function(e){return Ci="",e}(ji("",null,null,null,[""],e=function(e){return bi=yi=1,xi=mi(Ci=e),Si=0,[]}(e),0,[0],e))}function ji(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=Ii()){case 40:if(108!=m&&58==pi(C,d-1)){-1!=di(C+=ci(Di(b),"&","&\f"),"&\f",ii(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Di(b);break;case 9:case 10:case 13:case 32:C+=Ti(m);break;case 92:C+=Oi(_i()-1,7);continue;case 47:switch(Mi()){case 42:case 47:gi(Bi(qi(Ii(),_i()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=mi(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=ci(C,/\f/g,"")),f>0&&mi(C)-d&&gi(f>32?Hi(C+";",r,n,d-1,s):Hi(ci(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(gi(E=$i(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)ji(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===pi(C,3)?100:p){case 100:case 108:case 109:case 115:ji(e,E,E,r&&gi($i(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:ji(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+mi(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==ki())continue;switch(C+=ai(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(mi(C)-1)*v,v=1;break;case 64:45===Mi()&&(C+=Di(Ii())),p=Mi(),c=d=mi(y=C+=Fi(_i())),b++;break;case 45:45===m&&2==mi(C)&&(h=0)}}return i}function $i(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=hi(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=fi(e,p+1,p=ii(g=a[h])),x=e;b<m;++b)(x=si(g>0?f[b]+" "+y:ci(y,/&\f/g,f[b])))&&(s[v++]=x);return wi(e,t,n,0===o?ei:l,s,u,c,d)}function Bi(e,t,n,r){return wi(e,t,n,Zo,ai(Ei),fi(e,2,-2),0,r)}function Hi(e,t,n,r,o){return wi(e,t,n,ti,fi(e,0,r),fi(e,r+1,-1),r,o)}function Wi(e,t,n){switch(function(e,t){return 45^pi(e,0)?(((t<<2^pi(e,0))<<2^pi(e,1))<<2^pi(e,2))<<2^pi(e,3):0}(e,t)){case 5103:return Jo+"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 Jo+e+e;case 4789:return Qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jo+e+Qo+e+Xo+e+e;case 5936:switch(pi(e,t+11)){case 114:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jo+e+Xo+e+e;case 6165:return Jo+e+Xo+"flex-"+e+e;case 5187:return Jo+e+ci(e,/(\w+).+(:[^]+)/,Jo+"box-$1$2"+Xo+"flex-$1$2")+e;case 5443:return Jo+e+Xo+"flex-item-"+ci(e,/flex-|-self/g,"")+(ui(e,/flex-|baseline/)?"":Xo+"grid-row-"+ci(e,/flex-|-self/g,""))+e;case 4675:return Jo+e+Xo+"flex-line-pack"+ci(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jo+e+Xo+ci(e,"shrink","negative")+e;case 5292:return Jo+e+Xo+ci(e,"basis","preferred-size")+e;case 6060:return Jo+"box-"+ci(e,"-grow","")+Jo+e+Xo+ci(e,"grow","positive")+e;case 4554:return Jo+ci(e,/([^-])(transform)/g,"$1"+Jo+"$2")+e;case 6187:return ci(ci(ci(e,/(zoom-|grab)/,Jo+"$1"),/(image-set)/,Jo+"$1"),e,"")+e;case 5495:case 3959:return ci(e,/(image-set\([^]*)/,Jo+"$1$`$1");case 4968:return ci(ci(e,/(.+:)(flex-)?(.*)/,Jo+"box-pack:$3"+Xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jo+e+e;case 4200:if(!ui(e,/flex-|baseline/))return Xo+"grid-column-align"+fi(e,t)+e;break;case 2592:case 3360:return Xo+ci(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,ui(e.props,/grid-\w+-end/)}))?~di(e+(n=n[t].value),"span",0)?e:Xo+ci(e,"-start","")+e+Xo+"grid-row-span:"+(~di(n,"span",0)?ui(n,/\d+/):+ui(n,/\d+/)-+ui(e,/\d+/))+";":Xo+ci(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return ui(e.props,/grid-\w+-start/)}))?e:Xo+ci(ci(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ci(e,/(.+)-inline(.+)/,Jo+"$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(mi(e)-1-t>6)switch(pi(e,t+1)){case 109:if(45!==pi(e,t+4))break;case 102:return ci(e,/(.+:)(.+)-([^]+)/,"$1"+Jo+"$2-$3$1"+Qo+(108==pi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~di(e,"stretch",0)?Wi(ci(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ci(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Xo+n+":"+r+l+(o?Xo+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===pi(e,t+6))return ci(e,":",":"+Jo)+e;break;case 6444:switch(pi(e,45===pi(e,14)?18:11)){case 120:return ci(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jo+(45===pi(e,14)?"inline-":"")+"box$3$1"+Jo+"$2$3$1"+Xo+"$2box$3")+e;case 100:return ci(e,":",":"+Xo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ci(e,"scroll-","scroll-snap-")+e}return e}function Gi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Vi(e,t,n,r){switch(e.type){case oi:if(e.children.length)break;case ni:case ti:return e.return=e.return||e.value;case Zo:return"";case ri:return e.return=e.value+"{"+Gi(e.children,r)+"}";case ei:if(!mi(e.value=e.props.join(",")))return""}return mi(n=Gi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ui(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ti:return void(e.return=Wi(e.value,e.length,n));case ri:return Gi([Ri(e,{value:ci(e.value,"@","@"+Jo)})],r);case ei:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(ui(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Li(Ri(e,{props:[ci(t,/:(read-\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)});break;case"::placeholder":Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Jo+"input-$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,Xo+"input-$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)})}return""}))}}var Yi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ki="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xi="active",Qi="data-styled-version",Ji="6.1.12",Zi="/*!sc*/\n",ea="undefined"!=typeof window&&"HTMLElement"in window,ta=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)),na={},ra=Object.freeze([]),oa=Object.freeze({});function ia(e,t,n){return void 0===n&&(n=oa),e.theme!==n.theme&&e.theme||t||n.theme}var aa=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"]),la=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,sa=/(^-|-$)/g;function ua(e){return e.replace(la,"-").replace(sa,"")}var ca=/(a)(d)/gi,da=52,pa=function(e){return String.fromCharCode(e+(e>25?39:97))};function fa(e){var t,n="";for(t=Math.abs(e);t>da;t=t/da|0)n=pa(t%da)+n;return(pa(t%da)+n).replace(ca,"$1-$2")}var ma,ha=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ga=function(e){return ha(5381,e)};function va(e){return fa(ga(e)>>>0)}function ba(e){return"string"==typeof e&&!0}var ya="function"==typeof Symbol&&Symbol.for,xa=ya?Symbol.for("react.memo"):60115,Sa=ya?Symbol.for("react.forward_ref"):60112,Ea={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ca={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ra=((ma={})[Sa]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ma[xa]=wa,ma);function La(e){return("type"in(t=e)&&t.type.$$typeof)===xa?wa:"$$typeof"in e?Ra[e.$$typeof]:Ea;var t}var ka=Object.defineProperty,Ia=Object.getOwnPropertyNames,Ma=Object.getOwnPropertySymbols,_a=Object.getOwnPropertyDescriptor,Pa=Object.getPrototypeOf,Aa=Object.prototype;function Da(e,t,n){if("string"!=typeof t){if(Aa){var r=Pa(t);r&&r!==Aa&&Da(e,r,n)}var o=Ia(t);Ma&&(o=o.concat(Ma(t)));for(var i=La(e),a=La(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ca||n&&n[s]||a&&s in a||i&&s in i)){var u=_a(t,s);try{ka(e,s,u)}catch(e){}}}}return e}function Ta(e){return"function"==typeof e}function Oa(e){return"object"==typeof e&&"styledComponentId"in e}function Na(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qa(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 Fa(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function za(e,t,n){if(void 0===n&&(n=!1),!n&&!Fa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=za(e[r],t[r]);else if(Fa(t))for(var r in t)e[r]=za(e[r],t[r]);return e}function ja(e,t){Object.defineProperty(e,"toString",{value:t})}function $a(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 Ba=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 $a(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(Zi);return t},e}(),Ha=new Map,Wa=new Map,Ga=1,Va=function(e){if(Ha.has(e))return Ha.get(e);for(;Wa.has(Ga);)Ga++;var t=Ga++;return Ha.set(e,t),Wa.set(t,e),t},Ua=function(e,t){Ga=t+1,Ha.set(e,t),Wa.set(t,e)},Ya="style[".concat(Ki,"][").concat(Qi,'="').concat(Ji,'"]'),Ka=new RegExp("^".concat(Ki,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xa=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)},Qa=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Zi),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ka);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ua(c,u),Xa(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Ja=function(e){for(var t=document.querySelectorAll(Ya),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ki)!==Xi&&(Qa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Za=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ki,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ki,Xi),r.setAttribute(Qi,Ji);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},el=function(){function e(e){this.element=Za(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 $a(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}(),tl=function(){function e(e){this.element=Za(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}(),nl=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}(),rl=ea,ol={isServer:!ea,useCSSOMInjection:!ta},il=function(){function e(e,t,n){void 0===e&&(e=oa),void 0===t&&(t={});var r=this;this.options=Yo(Yo({},ol),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ea&&rl&&(rl=!1,Ja(this)),ja(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Wa.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ki,".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(Zi)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Va(e)},e.prototype.rehydrate=function(){!this.server&&ea&&Ja(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Yo(Yo({},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 nl(n):t?new el(n):new tl(n)}(this.options),new Ba(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(Va(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(Va(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Va(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),al=/&/g,ll=/^\s*\/\/.*$/gm;function sl(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=sl(e.children,t)),e}))}var ul=new il,cl=function(e){var t,n,r,o=void 0===e?oa:e,i=o.options,a=void 0===i?oa:i,l=o.plugins,s=void 0===l?ra: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===ei&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(al,n).replace(r,u))})),a.prefix&&c.push(Ui),c.push(Vi);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(ll,""),u=zi(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=sl(u,a.namespace));var d,p=[];return Gi(u,function(e){var t=hi(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||$a(15),ha(e,t.name)}),5381).toString():"",d}(),dl=lo.createContext({shouldForwardProp:void 0,styleSheet:ul,stylis:cl});function pl(){return ao.useContext(dl)}dl.Consumer;var fl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=cl);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,ja(this,(function(){throw $a(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=cl),this.name+e.hash},e}(),ml=function(e){return e>="A"&&e<="Z"};function hl(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ml(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var gl=function(e){return null==e||!1===e||""===e},vl=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!gl(i)&&(Array.isArray(i)&&i.isCss||Ta(i)?r.push("".concat(hl(o),":"),i,";"):Fa(i)?r.push.apply(r,Ko(Ko(["".concat(o," {")],vl(i),!1),["}"],!1)):r.push("".concat(hl(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Yi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function bl(e,t,n,r){return gl(e)?[]:Oa(e)?[".".concat(e.styledComponentId)]:Ta(e)?!Ta(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:bl(e(t),t,n,r):e instanceof fl?n?(e.inject(n,r),[e.getName(r)]):[e]:Fa(e)?vl(e):Array.isArray(e)?Array.prototype.concat.apply(ra,e.map((function(e){return bl(e,t,n,r)}))):[e.toString()];var o}function yl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ta(n)&&!Oa(n))return!1}return!0}var xl=ga(Ji),Sl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&yl(e),this.componentId=t,this.baseHash=ha(xl,t),this.baseStyle=n,il.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=Na(r,this.staticRulesId);else{var o=qa(bl(this.rules,e,t,n)),i=fa(ha(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=Na(r,i),this.staticRulesId=i}else{for(var l=ha(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=qa(bl(c,e,t,n));l=ha(l,d+u),s+=d}}if(s){var p=fa(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Na(r,p)}}return r},e}(),El=lo.createContext(void 0);El.Consumer;var Cl={};new Set;function wl(e,t,n){var r=Oa(e),o=e,i=!ba(e),a=t.attrs,l=void 0===a?ra:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ua(e);Cl[n]=(Cl[n]||0)+1;var r="".concat(n,"-").concat(va(Ji+n+Cl[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ba(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ua(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new Sl(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=lo.useContext(El),c=pl(),d=e.shouldForwardProp||c.shouldForwardProp,p=ia(t,u,i)||oa,f=function(e,t,n){for(var r,o=Yo(Yo({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ta(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Na(o[l],a[l]):"style"===l?Yo(Yo({},o[l]),a[l]):a[l]}return t.className&&(o.className=Na(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=pl();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=Na(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ba(m)&&!aa.has(m)?"class":"className"]=b,h.ref=n,ao.createElement(m,h)}(y,e,t)}b.displayName=d;var y=lo.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Na(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++)za(e,o[r],!0);return e}({},o.defaultProps,e):e}}),ja(y,(function(){return".".concat(y.styledComponentId)})),i&&Da(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Rl(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 Ll=function(e){return Object.assign(e,{isCss:!0})};function kl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ta(e)||Fa(e))return Ll(bl(Rl(ra,Ko([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?bl(r):Ll(bl(Rl(r,t)))}function Il(e,t,n){if(void 0===n&&(n=oa),!t)throw $a(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,kl.apply(void 0,Ko([r],o,!1)))};return r.attrs=function(r){return Il(e,t,Yo(Yo({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Il(e,t,Yo(Yo({},n),r))},r}var Ml=function(e){return Il(wl,e)},_l=Ml;aa.forEach((function(e){_l[e]=Ml(e)}));var Pl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=yl(e),il.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(qa(bl(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&&il.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Al(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qa(kl.apply(void 0,Ko([e],t,!1))),o=va(r);return new fl(o,r)}function Dl(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}Dl.propTypes={children:br.node,injectFirst:br.bool};const Tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=kl.apply(void 0,Ko([e],t,!1)),o="sc-global-".concat(va(JSON.stringify(r))),i=new Pl(r,o),a=function(e){var t=pl(),n=lo.useContext(El),r=lo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,na,n,o);else{var l=Yo(Yo({},t),{theme:ia(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return lo.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ol=Tl;
|
|
10
12
|
/**
|
|
11
13
|
* @mui/styled-engine-sc v6.0.0-alpha.24
|
|
12
14
|
*
|
|
@@ -14,7 +16,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
14
16
|
* This source code is licensed under the MIT license found in the
|
|
15
17
|
* LICENSE file in the root directory of this source tree.
|
|
16
18
|
*/
|
|
17
|
-
function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):fa(e),n}va.propTypes={defaultTheme:en.object,styles:en.oneOfType([en.array,en.string,en.object,en.func])};const xa=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Sa=Object.freeze({__proto__:null,GlobalStyles:ba,StyledEngineProvider:ga,ThemeContext:ia,css:ca,default:ya,internal_processStyles:xa,keyframes:ha});function Ea(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ca(e){if(!Ea(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Ca(e[n])})),t}function wa(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return Ea(e)&&Ea(t)&&Object.keys(t).forEach((o=>{Ea(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ea(e[o])?r[o]=wa(e[o],t[o],n):n.clone?r[o]=Ea(t[o])?Ca(t[o]):t[o]:r[o]=t[o]})),r}var Ra,La=Object.freeze({__proto__:null,default:wa,isPlainObject:Ea}),ka={exports:{}},Ma={},Ia=Symbol.for("react.element"),_a=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),Aa=Symbol.for("react.strict_mode"),Da=Symbol.for("react.profiler"),Ta=Symbol.for("react.provider"),Oa=Symbol.for("react.context"),Na=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),ja=Symbol.for("react.memo"),$a=Symbol.for("react.lazy"),Ba=Symbol.for("react.offscreen");function Ha(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ia:switch(e=e.type){case Pa:case Da:case Aa:case Fa:case za:return e;default:switch(e=e&&e.$$typeof){case Na:case Oa:case qa:case $a:case ja:case Ta:return e;default:return t}}case _a:return t}}}Ra=Symbol.for("react.module.reference"),Ma.ContextConsumer=Oa,Ma.ContextProvider=Ta,Ma.Element=Ia,Ma.ForwardRef=qa,Ma.Fragment=Pa,Ma.Lazy=$a,Ma.Memo=ja,Ma.Portal=_a,Ma.Profiler=Da,Ma.StrictMode=Aa,Ma.Suspense=Fa,Ma.SuspenseList=za,Ma.isAsyncMode=function(){return!1},Ma.isConcurrentMode=function(){return!1},Ma.isContextConsumer=function(e){return Ha(e)===Oa},Ma.isContextProvider=function(e){return Ha(e)===Ta},Ma.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ia},Ma.isForwardRef=function(e){return Ha(e)===qa},Ma.isFragment=function(e){return Ha(e)===Pa},Ma.isLazy=function(e){return Ha(e)===$a},Ma.isMemo=function(e){return Ha(e)===ja},Ma.isPortal=function(e){return Ha(e)===_a},Ma.isProfiler=function(e){return Ha(e)===Da},Ma.isStrictMode=function(e){return Ha(e)===Aa},Ma.isSuspense=function(e){return Ha(e)===Fa},Ma.isSuspenseList=function(e){return Ha(e)===za},Ma.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pa||e===Da||e===Aa||e===Fa||e===za||e===Ba||"object"==typeof e&&null!==e&&(e.$$typeof===$a||e.$$typeof===ja||e.$$typeof===Ta||e.$$typeof===Oa||e.$$typeof===qa||e.$$typeof===Ra||void 0!==e.getModuleId)},Ma.typeOf=Ha,ka.exports=Ma;var Wa=ka.exports;const Ga=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Va(e){const t=`${e}`.match(Ga);return t&&t[1]||""}function Ua(e,t=""){return e.displayName||e.name||Va(e)||t}function Ya(e,t,n){const r=Ua(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ka=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ua(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Wa.ForwardRef:return Ya(e,e.render,"ForwardRef");case Wa.Memo:return Ya(e,e.type,"memo");default:return}}},getFunctionName:Va});function Xa(e){if("string"!=typeof e)throw new Error(Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Qa=Object.freeze({__proto__:null,default:Xa});function Ja(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Za(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function el(e){return e&&e.ownerDocument||document}function tl(e){return el(e).defaultView||window}function nl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var rl="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;function ol(e){const t=Hn.useRef(e);return rl((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function il(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{nl(e,t)}))}),e)}const al={};const ll=[];let sl=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function ul(){const e=function(e,t){const n=Hn.useRef(al);return n.current===al&&(n.current=e(t)),n}(sl.create).current;var t;return t=e.disposeEffect,Hn.useEffect(t,ll),e}let cl=!0,dl=!1;const pl=new sl,fl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ml(e){e.metaKey||e.altKey||e.ctrlKey||(cl=!0)}function hl(){cl=!1}function gl(){"hidden"===this.visibilityState&&dl&&(cl=!0)}function vl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bl(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ml,!0),t.addEventListener("mousedown",hl,!0),t.addEventListener("pointerdown",hl,!0),t.addEventListener("touchstart",hl,!0),t.addEventListener("visibilitychange",gl,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dl=!0,pl.start(100,(()=>{dl=!1})),t.current=!1,!0)},ref:e}}function yl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xl(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=xl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Sl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const El=e=>e;var Cl=(()=>{let e=El;return{configure(t){e=t},generate:t=>e(t),reset(){e=El}}})();const wl={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Rl(e,t,n="Mui"){const r=wl[t];return r?`${n}-${r}`:`${Cl.generate(e)}-${t}`}function Ll(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Rl(e,t,n)})),r}function kl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Ml=Object.freeze({__proto__:null,default:kl});function Il(e){return"string"==typeof e}function _l(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_l(e))&&(r&&(r+=" "),r+=t);return r}function Al(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Dl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Tl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ol(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,Tl),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Al(Xt({},o,r)),l=Dl(r),s=Dl(o),u=t(a),c=Pl(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Xt({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Il(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Nl=["values","unit","step"],ql=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Xt({},e,{[t.key]:t.val})),{})};var Fl={borderRadius:4};function zl(e,t){return t?wa(e,t,{clone:!1}):e}const jl={xs:0,sm:600,md:900,lg:1200,xl:1536},$l={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jl[e]}px)`};function Bl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||$l;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||$l;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||jl).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Hl(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Wl(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Hl(e,n)||r,t&&(o=t(o,r,e)),o}function Gl(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Hl(e.theme,r)||{};return Bl(e,i,(e=>{let r=Wl(a,o,e);return e===r&&"string"==typeof e&&(r=Wl(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Vl={m:"margin",p:"padding"},Ul={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kl=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Yl[e])return[e];e=Yl[e]}const[t,n]=e.split(""),r=Vl[t],o=Ul[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ql=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jl(e,t,n,r){var o;const i=null!=(o=Hl(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Zl(e){return Jl(e,"spacing",8)}function es(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ts(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=es(t,n),e)),{})}(Kl(n),r);return Bl(e,e[n],o)}function ns(e,t){const n=Zl(e.theme);return Object.keys(e).map((r=>ts(e,t,r,n))).reduce(zl,{})}function rs(e){return ns(e,Xl)}function os(e){return ns(e,Ql)}function is(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?zl(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function as(e){return"number"!=typeof e?e:`${e}px solid`}function ls(e,t){return Gl({prop:e,themeKey:"borders",transform:t})}rs.propTypes={},rs.filterProps=Xl,os.propTypes={},os.filterProps=Ql;const ss=ls("border",as),us=ls("borderTop",as),cs=ls("borderRight",as),ds=ls("borderBottom",as),ps=ls("borderLeft",as),fs=ls("borderColor"),ms=ls("borderTopColor"),hs=ls("borderRightColor"),gs=ls("borderBottomColor"),vs=ls("borderLeftColor"),bs=ls("outline",as),ys=ls("outlineColor"),xs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jl(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:es(t,e)});return Bl(e,e.borderRadius,n)}return null};xs.propTypes={},xs.filterProps=["borderRadius"],is(ss,us,cs,ds,ps,fs,ms,hs,gs,vs,xs,bs,ys);const Ss=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jl(e.theme,"spacing",8),n=e=>({gap:es(t,e)});return Bl(e,e.gap,n)}return null};Ss.propTypes={},Ss.filterProps=["gap"];const Es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jl(e.theme,"spacing",8),n=e=>({columnGap:es(t,e)});return Bl(e,e.columnGap,n)}return null};Es.propTypes={},Es.filterProps=["columnGap"];const Cs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jl(e.theme,"spacing",8),n=e=>({rowGap:es(t,e)});return Bl(e,e.rowGap,n)}return null};Cs.propTypes={},Cs.filterProps=["rowGap"];function ws(e,t){return"grey"===t?t:e}is(Ss,Es,Cs,Gl({prop:"gridColumn"}),Gl({prop:"gridRow"}),Gl({prop:"gridAutoFlow"}),Gl({prop:"gridAutoColumns"}),Gl({prop:"gridAutoRows"}),Gl({prop:"gridTemplateColumns"}),Gl({prop:"gridTemplateRows"}),Gl({prop:"gridTemplateAreas"}),Gl({prop:"gridArea"}));function Rs(e){return e<=1&&0!==e?100*e+"%":e}is(Gl({prop:"color",themeKey:"palette",transform:ws}),Gl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ws}),Gl({prop:"backgroundColor",themeKey:"palette",transform:ws}));const Ls=Gl({prop:"width",transform:Rs}),ks=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||jl[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Rs(t)}};return Bl(e,e.maxWidth,t)}return null};ks.filterProps=["maxWidth"];const Ms=Gl({prop:"minWidth",transform:Rs}),Is=Gl({prop:"height",transform:Rs}),_s=Gl({prop:"maxHeight",transform:Rs}),Ps=Gl({prop:"minHeight",transform:Rs});Gl({prop:"size",cssProperty:"width",transform:Rs}),Gl({prop:"size",cssProperty:"height",transform:Rs});is(Ls,ks,Ms,Is,_s,Ps,Gl({prop:"boxSizing"}));var As={border:{themeKey:"borders",transform:as},borderTop:{themeKey:"borders",transform:as},borderRight:{themeKey:"borders",transform:as},borderBottom:{themeKey:"borders",transform:as},borderLeft:{themeKey:"borders",transform:as},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:as},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xs},color:{themeKey:"palette",transform:ws},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ws},backgroundColor:{themeKey:"palette",transform:ws},p:{style:os},pt:{style:os},pr:{style:os},pb:{style:os},pl:{style:os},px:{style:os},py:{style:os},padding:{style:os},paddingTop:{style:os},paddingRight:{style:os},paddingBottom:{style:os},paddingLeft:{style:os},paddingX:{style:os},paddingY:{style:os},paddingInline:{style:os},paddingInlineStart:{style:os},paddingInlineEnd:{style:os},paddingBlock:{style:os},paddingBlockStart:{style:os},paddingBlockEnd:{style:os},m:{style:rs},mt:{style:rs},mr:{style:rs},mb:{style:rs},ml:{style:rs},mx:{style:rs},my:{style:rs},margin:{style:rs},marginTop:{style:rs},marginRight:{style:rs},marginBottom:{style:rs},marginLeft:{style:rs},marginX:{style:rs},marginY:{style:rs},marginInline:{style:rs},marginInlineStart:{style:rs},marginInlineEnd:{style:rs},marginBlock:{style:rs},marginBlockStart:{style:rs},marginBlockEnd:{style:rs},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ss},rowGap:{style:Cs},columnGap:{style:Es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rs},maxWidth:{style:ks},minWidth:{transform:Rs},height:{transform:Rs},maxHeight:{transform:Rs},minHeight:{transform:Rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ds=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Hl(n,l)||{};if(u)return u(o);return Bl(o,t,(t=>{let n=Wl(c,s,t);return t===n&&"string"==typeof t&&(n=Wl(c,s,`${e}${"default"===t?"":Xa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:As;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=zl(s,e(n,o,i,a));else{const e=Bl({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=zl(s,e):s[n]=t({sx:o,theme:i})}else s=zl(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ds.filterProps=["sx"];var Ts=Ds;function Os(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Ns=["breakpoints","palette","spacing","shape"];function qs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,Ns),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,Nl),i=ql(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Xt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Zl({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},Fl,i)},a);return u.applyStyles=Os,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}function Fs(e=null){const t=Hn.useContext(ia);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const zs=qs();function js(e=zs){return Fs(e)}var $s={exports:{}},Bs={},Hs=Hn,Ws=Symbol.for("react.element"),Gs=Symbol.for("react.fragment"),Vs=Object.prototype.hasOwnProperty,Us=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0};function Ks(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Vs.call(t,r)&&!Ys.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ws,type:e,key:i,ref:a,props:o,_owner:Us.current}}Bs.Fragment=Gs,Bs.jsx=Ks,Bs.jsxs=Ks,$s.exports=Bs;var Xs=$s.exports;function Qs({styles:e,themeId:t,defaultTheme:n={}}){const r=js(n),o="function"==typeof e?e(t&&r[t]||r):e;return Xs.jsx(ba,{styles:o})}const Js=["sx"],Zs=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:As;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function eu(e){const{sx:t}=e,n=rn(e,Js),{systemProps:r,otherProps:o}=Zs(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}const tu=["className","component"];const nu=["ownerState"],ru=["variants"],ou=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const au=qs(),lu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function su({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function uu(e){return e?(t,n)=>n[e]:null}function cu(e,t){let{ownerState:n}=t,r=rn(t,nu);const o="function"==typeof e?e(Xt({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>cu(e,Xt({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=rn(o,ru);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Xt({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Xt({ownerState:n},r)):e.style))})),t}return o}function du({props:e,name:t,defaultTheme:n,themeId:r}){let o=js(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?xl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function pu(e,t=0,n=1){return kl(e,t,n)}function fu(e){if(e.type)return e;if("#"===e.charAt(0))return fu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Mr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function hu(e){let t="hsl"===(e=fu(e)).type||"hsla"===e.type?fu(function(e){e=fu(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),mu({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gu(e,t){return e=fu(e),t=pu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mu(e)}function vu(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bu(e){if(!vu(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=bu(e[n])})),t}function yu(e,t,n={clone:!0}){const r=n.clone?Xt({},e):e;return vu(e)&&vu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(vu(t[o])&&o in e&&vu(e[o])?r[o]=yu(e[o],t[o],n):n.clone?r[o]=vu(t[o])?bu(t[o]):t[o]:r[o]=t[o])})),r}function xu(e){if("string"!=typeof e)throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Su(e){return e&&e.ownerDocument||document}function Eu(e){return Su(e).defaultView||window}var Cu="undefined"!=typeof window?Hn.useLayoutEffect:Hn.useEffect;let wu=0;const Ru=Gn["useId".toString()];function Lu(e){if(void 0!==Ru){const t=Ru();return null!=e?e:t}return function(e){const[t,n]=Hn.useState(e),r=e||t;return Hn.useEffect((()=>{null==t&&(wu+=1,n(`mui-${wu}`))}),[t]),r}(e)}function ku({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Hn.useRef(void 0!==e),[i,a]=Hn.useState(t);return[o?e:i,Hn.useCallback((e=>{o||a(e)}),[])]}function Mu(e){const t=Hn.useRef(e);return Cu((()=>{t.current=e})),Hn.useRef(((...e)=>(0,t.current)(...e))).current}function Iu(...e){return Hn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class _u{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _u}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Pu=!0,Au=!1;const Du=new _u,Tu={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ou(e){e.metaKey||e.altKey||e.ctrlKey||(Pu=!0)}function Nu(){Pu=!1}function qu(){"hidden"===this.visibilityState&&Au&&(Pu=!0)}function Fu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Pu||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zu(){const e=Hn.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ou,!0),t.addEventListener("mousedown",Nu,!0),t.addEventListener("pointerdown",Nu,!0),t.addEventListener("touchstart",Nu,!0),t.addEventListener("visibilitychange",qu,!0))}),[]),t=Hn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Au=!0,Du.start(100,(()=>{Au=!1})),t.current=!1,!0)},ref:e}}function ju(e,t){const n=Xt({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Xt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Xt({},i),Object.keys(o).forEach((e=>{n[r][e]=ju(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const $u=e=>e;var Bu=(()=>{let e=$u;return{configure(t){e=t},generate:t=>e(t),reset(){e=$u}}})();const Hu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wu(e,t,n="Mui"){const r=Hu[t];return r?`${n}-${r}`:`${Bu.generate(e)}-${t}`}function Gu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Wu(e,t,n)})),r}const Vu=["mode","contrastThreshold","tonalOffset"],Uu={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:gr.white,default:gr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Yu={text:{primary:gr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:gr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ku(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=fu(e),t=pu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mu(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fu(e),t=pu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mu(e)}(e.main,i)))}function Xu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kr(e,Vu),i=e.primary||function(e="light"){return"dark"===e?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[700],light:yr[400],dark:yr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:br[200],light:br[50],dark:br[400]}:{main:br[500],light:br[300],dark:br[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[700],light:xr[500],dark:xr[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[800],light:Sr[500],dark:Sr[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Er[400],light:Er[300],dark:Er[700]}:{main:"#ed6c02",light:Er[500],dark:Er[900]}}(t);function d(e){const t=function(e,t){const n=hu(e),r=hu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yu.text.primary)>=n?Yu.text.primary:Uu.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Lr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ku(e,"light",o,r),Ku(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Yu,light:Uu};return yu(Lr({common:Lr({},gr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Cr,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Qu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ju={textTransform:"uppercase"},Zu='"Roboto", "Helvetica", "Arial", sans-serif';function ec(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=kr(n,Qu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Lr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Zu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ju),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yu(Lr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function tc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var nc=["none",tc(0,2,1,-1,0,1,1,0,0,1,3,0),tc(0,3,1,-2,0,2,2,0,0,1,5,0),tc(0,3,3,-2,0,3,4,0,0,1,8,0),tc(0,2,4,-1,0,4,5,0,0,1,10,0),tc(0,3,5,-1,0,5,8,0,0,1,14,0),tc(0,3,5,-1,0,6,10,0,0,1,18,0),tc(0,4,5,-2,0,7,10,1,0,2,16,1),tc(0,5,5,-3,0,8,10,1,0,3,14,2),tc(0,5,6,-3,0,9,12,1,0,3,16,2),tc(0,6,6,-3,0,10,14,1,0,4,18,3),tc(0,6,7,-4,0,11,15,1,0,4,20,3),tc(0,7,8,-4,0,12,17,2,0,5,22,4),tc(0,7,8,-4,0,13,19,2,0,5,24,4),tc(0,7,9,-4,0,14,21,2,0,5,26,4),tc(0,8,9,-5,0,15,22,2,0,6,28,5),tc(0,8,10,-5,0,16,24,2,0,6,30,5),tc(0,8,11,-5,0,17,26,2,0,6,32,5),tc(0,9,11,-5,0,18,28,2,0,7,34,6),tc(0,9,12,-6,0,19,29,2,0,7,36,6),tc(0,10,13,-6,0,20,31,3,0,8,38,7),tc(0,10,13,-6,0,21,33,3,0,8,40,7),tc(0,10,14,-6,0,22,35,3,0,8,42,7),tc(0,11,14,-7,0,23,36,3,0,9,44,8),tc(0,11,15,-7,0,24,38,3,0,9,46,8)];const rc=["duration","easing","delay"],oc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ic={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ac(e){return`${Math.round(e)}ms`}function lc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sc(e){const t=Lr({},oc,e.easing),n=Lr({},ic,e.duration);return Lr({getAutoHeightDuration:lc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return kr(r,rc),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ac(o)} ${i} ${"string"==typeof a?a:ac(a)}`)).join(",")}},e,{easing:t,duration:n})}var uc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dc(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=kr(e,cc);if(e.vars)throw new Error(wr(18));const l=Xu(r),s=qs(e);let u=yu(s,{mixins:(c=s.breakpoints,d=n,Lr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:nc.slice(),typography:ec(l,i),transitions:sc(o),zIndex:Lr({},uc),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=yu(u,a),u=t.reduce(((e,t)=>yu(e,t)),u),u.unstable_sxConfig=Lr({},As,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ts({sx:e,theme:this})},u}var pc=dc();function fc(){const e=js(pc);return e[Rr]||e}function mc({props:e,name:t}){return du({props:e,name:t,defaultTheme:pc,themeId:Rr})}const hc=e=>iu(e)&&"classes"!==e,gc=iu,vc=function(e={}){const{themeId:t,defaultTheme:n=au,rootShouldForwardProp:r=iu,slotShouldForwardProp:o=iu}=e,i=e=>Ts(Xt({},e,{theme:su(Xt({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{xa(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=uu(lu(s))}=a,p=rn(a,ou),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=iu;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ya(e,Xt({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Ea(e)?r=>cu(e,Xt({},r,{theme:su({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=su(Xt({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=cu(n,Xt({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=su(Xt({},e,{defaultTheme:n,themeId:t}));return cu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Xt({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Rr,defaultTheme:pc,rootShouldForwardProp:hc});var bc=vc;var yc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xc(e))&&(r&&(r+=" "),r+=t);return r}function Ec(e){return Wu("MuiSvgIcon",e)}Gu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wc=bc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${xu(n.color)}`],t[`fontSize${xu(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Rc=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=kr(n,Cc),f=Hn.isValidElement(r)&&"svg"===r.type,m=Lr({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sl({root:["root","inherit"!==t&&`color${xu(t)}`,`fontSize${xu(n)}`]},Ec,r)})(m);return Xs.jsxs(wc,Lr({as:a,className:Sc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Xs.jsx("title",{children:c}):null]}))}));Rc.muiName="SvgIcon";var Lc=Rc;var kc,Mc={},Ic=Symbol.for("react.element"),_c=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Dc=Symbol.for("react.profiler"),Tc=Symbol.for("react.provider"),Oc=Symbol.for("react.context"),Nc=Symbol.for("react.server_context"),qc=Symbol.for("react.forward_ref"),Fc=Symbol.for("react.suspense"),zc=Symbol.for("react.suspense_list"),jc=Symbol.for("react.memo"),$c=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen");
|
|
19
|
+
function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):_l(e),n}Tl.propTypes={defaultTheme:br.object,styles:br.oneOfType([br.array,br.string,br.object,br.func])};const ql=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Fl=Object.freeze({__proto__:null,GlobalStyles:Ol,StyledEngineProvider:Dl,ThemeContext:El,css:kl,default:Nl,internal_processStyles:ql,keyframes:Al});function zl(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 jl(e){if(!zl(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=jl(e[n])})),t}function $l(e,t,n={clone:!0}){const r=n.clone?mr({},e):e;return zl(e)&&zl(t)&&Object.keys(t).forEach((o=>{zl(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&zl(e[o])?r[o]=$l(e[o],t[o],n):n.clone?r[o]=zl(t[o])?jl(t[o]):t[o]:r[o]=t[o]})),r}var Bl,Hl=Object.freeze({__proto__:null,default:$l,isPlainObject:zl}),Wl={exports:{}},Gl={},Vl=Symbol.for("react.element"),Ul=Symbol.for("react.portal"),Yl=Symbol.for("react.fragment"),Kl=Symbol.for("react.strict_mode"),Xl=Symbol.for("react.profiler"),Ql=Symbol.for("react.provider"),Jl=Symbol.for("react.context"),Zl=Symbol.for("react.server_context"),es=Symbol.for("react.forward_ref"),ts=Symbol.for("react.suspense"),ns=Symbol.for("react.suspense_list"),rs=Symbol.for("react.memo"),os=Symbol.for("react.lazy"),is=Symbol.for("react.offscreen");function as(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vl:switch(e=e.type){case Yl:case Xl:case Kl:case ts:case ns:return e;default:switch(e=e&&e.$$typeof){case Zl:case Jl:case es:case os:case rs:case Ql:return e;default:return t}}case Ul:return t}}}Bl=Symbol.for("react.module.reference"),Gl.ContextConsumer=Jl,Gl.ContextProvider=Ql,Gl.Element=Vl,Gl.ForwardRef=es,Gl.Fragment=Yl,Gl.Lazy=os,Gl.Memo=rs,Gl.Portal=Ul,Gl.Profiler=Xl,Gl.StrictMode=Kl,Gl.Suspense=ts,Gl.SuspenseList=ns,Gl.isAsyncMode=function(){return!1},Gl.isConcurrentMode=function(){return!1},Gl.isContextConsumer=function(e){return as(e)===Jl},Gl.isContextProvider=function(e){return as(e)===Ql},Gl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vl},Gl.isForwardRef=function(e){return as(e)===es},Gl.isFragment=function(e){return as(e)===Yl},Gl.isLazy=function(e){return as(e)===os},Gl.isMemo=function(e){return as(e)===rs},Gl.isPortal=function(e){return as(e)===Ul},Gl.isProfiler=function(e){return as(e)===Xl},Gl.isStrictMode=function(e){return as(e)===Kl},Gl.isSuspense=function(e){return as(e)===ts},Gl.isSuspenseList=function(e){return as(e)===ns},Gl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Yl||e===Xl||e===Kl||e===ts||e===ns||e===is||"object"==typeof e&&null!==e&&(e.$$typeof===os||e.$$typeof===rs||e.$$typeof===Ql||e.$$typeof===Jl||e.$$typeof===es||e.$$typeof===Bl||void 0!==e.getModuleId)},Gl.typeOf=as,Wl.exports=Gl;var ls=Wl.exports;const ss=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function us(e){const t=`${e}`.match(ss);return t&&t[1]||""}function cs(e,t=""){return e.displayName||e.name||us(e)||t}function ds(e,t,n){const r=cs(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ps=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return cs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ls.ForwardRef:return ds(e,e.render,"ForwardRef");case ls.Memo:return ds(e,e.type,"memo");default:return}}},getFunctionName:us});function fs(e){if("string"!=typeof e)throw new Error(Vo(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ms=Object.freeze({__proto__:null,default:fs});function hs(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function gs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function vs(e){return e&&e.ownerDocument||document}function bs(e){return vs(e).defaultView||window}function ys(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xs="undefined"!=typeof window?ao.useLayoutEffect:ao.useEffect;function Ss(e){const t=ao.useRef(e);return xs((()=>{t.current=e})),ao.useRef(((...e)=>(0,t.current)(...e))).current}function Es(...e){return ao.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ys(e,t)}))}),e)}const Cs={};const ws=[];let Rs=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 Ls(){const e=function(e,t){const n=ao.useRef(Cs);return n.current===Cs&&(n.current=e(t)),n}(Rs.create).current;var t;return t=e.disposeEffect,ao.useEffect(t,ws),e}let ks=!0,Is=!1;const Ms=new Rs,_s={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 Ps(e){e.metaKey||e.altKey||e.ctrlKey||(ks=!0)}function As(){ks=!1}function Ds(){"hidden"===this.visibilityState&&Is&&(ks=!0)}function Ts(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ks||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!_s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Os(){const e=ao.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ps,!0),t.addEventListener("mousedown",As,!0),t.addEventListener("pointerdown",As,!0),t.addEventListener("touchstart",As,!0),t.addEventListener("visibilitychange",Ds,!0))}),[]),t=ao.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ts(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Is=!0,Ms.start(100,(()=>{Is=!1})),t.current=!1,!0)},ref:e}}function Ns(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function qs(e,t){const n=mr({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=mr({},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]=mr({},i),Object.keys(o).forEach((e=>{n[r][e]=qs(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Fs(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const zs=e=>e;var js=(()=>{let e=zs;return{configure(t){e=t},generate:t=>e(t),reset(){e=zs}}})();const $s={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 Bs(e,t,n="Mui"){const r=$s[t];return r?`${n}-${r}`:`${js.generate(e)}-${t}`}function Hs(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bs(e,t,n)})),r}function Ws(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Gs=Object.freeze({__proto__:null,default:Ws});function Vs(e){return"string"==typeof e}function Us(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=Us(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ys(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Us(e))&&(r&&(r+=" "),r+=t);return r}function Ks(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 Xs(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 Qs=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Js(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Sr(e,Qs),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=Ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=mr({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=mr({},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=Ks(mr({},o,r)),l=Xs(r),s=Xs(o),u=t(a),c=Ys(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=mr({},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=mr({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(mr({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Vs(e)?t:mr({},t,{ownerState:mr({},t.ownerState,n)})}(n,mr({},s,{ref:Es(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Zs=["values","unit","step"],eu=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)=>mr({},e,{[t.key]:t.val})),{})};var tu={borderRadius:4};function nu(e,t){return t?$l(e,t,{clone:!1}):e}const ru={xs:0,sm:600,md:900,lg:1200,xl:1536},ou={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ru[e]}px)`};function iu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ou;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||ou;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ru).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function au(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 lu(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:au(e,n)||r,t&&(o=t(o,r,e)),o}function su(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=au(e.theme,r)||{};return iu(e,i,(e=>{let r=lu(a,o,e);return e===r&&"string"==typeof e&&(r=lu(a,o,`${t}${"default"===e?"":fs(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const uu={m:"margin",p:"padding"},cu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},du={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!du[e])return[e];e=du[e]}const[t,n]=e.split(""),r=uu[t],o=cu[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),fu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hu(e,t,n,r){var o;const i=null!=(o=au(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 gu(e){return hu(e,"spacing",8)}function vu(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 bu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=vu(t,n),e)),{})}(pu(n),r);return iu(e,e[n],o)}function yu(e,t){const n=gu(e.theme);return Object.keys(e).map((r=>bu(e,t,r,n))).reduce(nu,{})}function xu(e){return yu(e,fu)}function Su(e){return yu(e,mu)}function Eu(...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]?nu(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Cu(e){return"number"!=typeof e?e:`${e}px solid`}function wu(e,t){return su({prop:e,themeKey:"borders",transform:t})}xu.propTypes={},xu.filterProps=fu,Su.propTypes={},Su.filterProps=mu;const Ru=wu("border",Cu),Lu=wu("borderTop",Cu),ku=wu("borderRight",Cu),Iu=wu("borderBottom",Cu),Mu=wu("borderLeft",Cu),_u=wu("borderColor"),Pu=wu("borderTopColor"),Au=wu("borderRightColor"),Du=wu("borderBottomColor"),Tu=wu("borderLeftColor"),Ou=wu("outline",Cu),Nu=wu("outlineColor"),qu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:vu(t,e)});return iu(e,e.borderRadius,n)}return null};qu.propTypes={},qu.filterProps=["borderRadius"],Eu(Ru,Lu,ku,Iu,Mu,_u,Pu,Au,Du,Tu,qu,Ou,Nu);const Fu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hu(e.theme,"spacing",8),n=e=>({gap:vu(t,e)});return iu(e,e.gap,n)}return null};Fu.propTypes={},Fu.filterProps=["gap"];const zu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hu(e.theme,"spacing",8),n=e=>({columnGap:vu(t,e)});return iu(e,e.columnGap,n)}return null};zu.propTypes={},zu.filterProps=["columnGap"];const ju=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hu(e.theme,"spacing",8),n=e=>({rowGap:vu(t,e)});return iu(e,e.rowGap,n)}return null};ju.propTypes={},ju.filterProps=["rowGap"];function $u(e,t){return"grey"===t?t:e}Eu(Fu,zu,ju,su({prop:"gridColumn"}),su({prop:"gridRow"}),su({prop:"gridAutoFlow"}),su({prop:"gridAutoColumns"}),su({prop:"gridAutoRows"}),su({prop:"gridTemplateColumns"}),su({prop:"gridTemplateRows"}),su({prop:"gridTemplateAreas"}),su({prop:"gridArea"}));function Bu(e){return e<=1&&0!==e?100*e+"%":e}Eu(su({prop:"color",themeKey:"palette",transform:$u}),su({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$u}),su({prop:"backgroundColor",themeKey:"palette",transform:$u}));const Hu=su({prop:"width",transform:Bu}),Wu=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])||ru[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:Bu(t)}};return iu(e,e.maxWidth,t)}return null};Wu.filterProps=["maxWidth"];const Gu=su({prop:"minWidth",transform:Bu}),Vu=su({prop:"height",transform:Bu}),Uu=su({prop:"maxHeight",transform:Bu}),Yu=su({prop:"minHeight",transform:Bu});su({prop:"size",cssProperty:"width",transform:Bu}),su({prop:"size",cssProperty:"height",transform:Bu});Eu(Hu,Wu,Gu,Vu,Uu,Yu,su({prop:"boxSizing"}));var Ku={border:{themeKey:"borders",transform:Cu},borderTop:{themeKey:"borders",transform:Cu},borderRight:{themeKey:"borders",transform:Cu},borderBottom:{themeKey:"borders",transform:Cu},borderLeft:{themeKey:"borders",transform:Cu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qu},color:{themeKey:"palette",transform:$u},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$u},backgroundColor:{themeKey:"palette",transform:$u},p:{style:Su},pt:{style:Su},pr:{style:Su},pb:{style:Su},pl:{style:Su},px:{style:Su},py:{style:Su},padding:{style:Su},paddingTop:{style:Su},paddingRight:{style:Su},paddingBottom:{style:Su},paddingLeft:{style:Su},paddingX:{style:Su},paddingY:{style:Su},paddingInline:{style:Su},paddingInlineStart:{style:Su},paddingInlineEnd:{style:Su},paddingBlock:{style:Su},paddingBlockStart:{style:Su},paddingBlockEnd:{style:Su},m:{style:xu},mt:{style:xu},mr:{style:xu},mb:{style:xu},ml:{style:xu},mx:{style:xu},my:{style:xu},margin:{style:xu},marginTop:{style:xu},marginRight:{style:xu},marginBottom:{style:xu},marginLeft:{style:xu},marginX:{style:xu},marginY:{style:xu},marginInline:{style:xu},marginInlineStart:{style:xu},marginInlineEnd:{style:xu},marginBlock:{style:xu},marginBlockStart:{style:xu},marginBlockEnd:{style:xu},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:Fu},rowGap:{style:ju},columnGap:{style:zu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bu},maxWidth:{style:Wu},minWidth:{transform:Bu},height:{transform:Bu},maxHeight:{transform:Bu},minHeight:{transform:Bu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Xu=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=au(n,l)||{};if(u)return u(o);return iu(o,t,(t=>{let n=lu(c,s,t);return t===n&&"string"==typeof t&&(n=lu(c,s,`${e}${"default"===t?"":fs(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:Ku;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=nu(s,e(n,o,i,a));else{const e=iu({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=nu(s,e):s[n]=t({sx:o,theme:i})}else s=nu(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)}}();Xu.filterProps=["sx"];var Qu=Xu;function Ju(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Zu=["breakpoints","palette","spacing","shape"];function ec(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Sr(e,Zu),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Sr(e,Zs),i=eu(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 mr({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=gu({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=$l({breakpoints:l,direction:"ltr",components:{},palette:mr({mode:"light"},r),spacing:s,shape:mr({},tu,i)},a);return u.applyStyles=Ju,u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},Ku,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qu({sx:e,theme:this})},u}function tc(e=null){const t=ao.useContext(El);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const nc=ec();function rc(e=nc){return tc(e)}var oc={exports:{}},ic={},ac=ao,lc=Symbol.for("react.element"),sc=Symbol.for("react.fragment"),uc=Object.prototype.hasOwnProperty,cc=ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dc={key:!0,ref:!0,__self:!0,__source:!0};function pc(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)uc.call(t,r)&&!dc.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:lc,type:e,key:i,ref:a,props:o,_owner:cc.current}}ic.Fragment=sc,ic.jsx=pc,ic.jsxs=pc,oc.exports=ic;var fc=oc.exports;function mc({styles:e,themeId:t,defaultTheme:n={}}){const r=rc(n),o="function"==typeof e?e(t&&r[t]||r):e;return fc.jsx(Ol,{styles:o})}const hc=["sx"],gc=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ku;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function vc(e){const{sx:t}=e,n=Sr(e,hc),{systemProps:r,otherProps:o}=gc(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return zl(n)?mr({},r,n):r}:mr({},r,t),mr({},o,{sx:i})}const bc=["className","component"];const yc=["ownerState"],xc=["variants"],Sc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ec(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Cc=ec(),wc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Rc({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Lc(e){return e?(t,n)=>n[e]:null}function kc(e,t){let{ownerState:n}=t,r=Sr(t,yc);const o="function"==typeof e?e(mr({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>kc(e,mr({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Sr(o,xc);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(mr({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(mr({ownerState:n},r)):e.style))})),t}return o}function Ic({props:e,name:t,defaultTheme:n,themeId:r}){let o=rc(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?qs(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Mc(e,t=0,n=1){return Ws(e,t,n)}function _c(e){if(e.type)return e;if("#"===e.charAt(0))return _c(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(Vo(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(Vo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Pc(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 Ac(e){let t="hsl"===(e=_c(e)).type||"hsla"===e.type?_c(function(e){e=_c(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])),Pc({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 Dc(e,t){return e=_c(e),t=Mc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pc(e)}function Tc(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 Oc(e){if(!Tc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Oc(e[n])})),t}function Nc(e,t,n={clone:!0}){const r=n.clone?mr({},e):e;return Tc(e)&&Tc(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Tc(t[o])&&o in e&&Tc(e[o])?r[o]=Nc(e[o],t[o],n):n.clone?r[o]=Tc(t[o])?Oc(t[o]):t[o]:r[o]=t[o])})),r}function qc(e){if("string"!=typeof e)throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fc(e){return e&&e.ownerDocument||document}function zc(e){return Fc(e).defaultView||window}var jc="undefined"!=typeof window?ao.useLayoutEffect:ao.useEffect;let $c=0;const Bc=so["useId".toString()];function Hc(e){if(void 0!==Bc){const t=Bc();return null!=e?e:t}return function(e){const[t,n]=ao.useState(e),r=e||t;return ao.useEffect((()=>{null==t&&($c+=1,n(`mui-${$c}`))}),[t]),r}(e)}function Wc({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=ao.useRef(void 0!==e),[i,a]=ao.useState(t);return[o?e:i,ao.useCallback((e=>{o||a(e)}),[])]}function Gc(e){const t=ao.useRef(e);return jc((()=>{t.current=e})),ao.useRef(((...e)=>(0,t.current)(...e))).current}function Vc(...e){return ao.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 Uc{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Uc}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Yc=!0,Kc=!1;const Xc=new Uc,Qc={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 Jc(e){e.metaKey||e.altKey||e.ctrlKey||(Yc=!0)}function Zc(){Yc=!1}function ed(){"hidden"===this.visibilityState&&Kc&&(Yc=!0)}function td(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Yc||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Qc[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function nd(){const e=ao.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Jc,!0),t.addEventListener("mousedown",Zc,!0),t.addEventListener("pointerdown",Zc,!0),t.addEventListener("touchstart",Zc,!0),t.addEventListener("visibilitychange",ed,!0))}),[]),t=ao.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!td(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Kc=!0,Xc.start(100,(()=>{Kc=!1})),t.current=!1,!0)},ref:e}}function rd(e,t){const n=mr({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=mr({},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]=mr({},i),Object.keys(o).forEach((e=>{n[r][e]=rd(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const od=e=>e;var id=(()=>{let e=od;return{configure(t){e=t},generate:t=>e(t),reset(){e=od}}})();const ad={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 ld(e,t,n="Mui"){const r=ad[t];return r?`${n}-${r}`:`${id.generate(e)}-${t}`}function sd(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ld(e,t,n)})),r}const ud=["mode","contrastThreshold","tonalOffset"],cd={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:To.white,default:To.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}},dd={text:{primary:To.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:To.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 pd(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=_c(e),t=Mc(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 Pc(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=_c(e),t=Mc(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 Pc(e)}(e.main,i)))}function fd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Go(e,ud),i=e.primary||function(e="light"){return"dark"===e?{main:qo[200],light:qo[50],dark:qo[400]}:{main:qo[700],light:qo[400],dark:qo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:No[200],light:No[50],dark:No[400]}:{main:No[500],light:No[300],dark:No[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Oo[500],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[400],dark:Oo[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:Fo[700],light:Fo[500],dark:Fo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:zo[400],light:zo[300],dark:zo[700]}:{main:zo[800],light:zo[500],dark:zo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:jo[400],light:jo[300],dark:jo[700]}:{main:"#ed6c02",light:jo[500],dark:jo[900]}}(t);function d(e){const t=function(e,t){const n=Ac(e),r=Ac(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,dd.text.primary)>=n?dd.text.primary:cd.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Wo({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Bo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Bo(12,t?` (${t})`:"",JSON.stringify(e.main)));return pd(e,"light",o,r),pd(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:dd,light:cd};return Nc(Wo({common:Wo({},To),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:$o,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const md=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const hd={textTransform:"uppercase"},gd='"Roboto", "Helvetica", "Arial", sans-serif';function vd(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=gd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Go(n,md),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Wo({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===gd?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,hd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,hd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nc(Wo({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function bd(...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 yd=["none",bd(0,2,1,-1,0,1,1,0,0,1,3,0),bd(0,3,1,-2,0,2,2,0,0,1,5,0),bd(0,3,3,-2,0,3,4,0,0,1,8,0),bd(0,2,4,-1,0,4,5,0,0,1,10,0),bd(0,3,5,-1,0,5,8,0,0,1,14,0),bd(0,3,5,-1,0,6,10,0,0,1,18,0),bd(0,4,5,-2,0,7,10,1,0,2,16,1),bd(0,5,5,-3,0,8,10,1,0,3,14,2),bd(0,5,6,-3,0,9,12,1,0,3,16,2),bd(0,6,6,-3,0,10,14,1,0,4,18,3),bd(0,6,7,-4,0,11,15,1,0,4,20,3),bd(0,7,8,-4,0,12,17,2,0,5,22,4),bd(0,7,8,-4,0,13,19,2,0,5,24,4),bd(0,7,9,-4,0,14,21,2,0,5,26,4),bd(0,8,9,-5,0,15,22,2,0,6,28,5),bd(0,8,10,-5,0,16,24,2,0,6,30,5),bd(0,8,11,-5,0,17,26,2,0,6,32,5),bd(0,9,11,-5,0,18,28,2,0,7,34,6),bd(0,9,12,-6,0,19,29,2,0,7,36,6),bd(0,10,13,-6,0,20,31,3,0,8,38,7),bd(0,10,13,-6,0,21,33,3,0,8,40,7),bd(0,10,14,-6,0,22,35,3,0,8,42,7),bd(0,11,14,-7,0,23,36,3,0,9,44,8),bd(0,11,15,-7,0,24,38,3,0,9,46,8)];const xd=["duration","easing","delay"],Sd={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)"},Ed={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cd(e){return`${Math.round(e)}ms`}function wd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Rd(e){const t=Wo({},Sd,e.easing),n=Wo({},Ed,e.duration);return Wo({getAutoHeightDuration:wd,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Go(r,xd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Cd(o)} ${i} ${"string"==typeof a?a:Cd(a)}`)).join(",")}},e,{easing:t,duration:n})}var Ld={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const kd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Id(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Go(e,kd);if(e.vars)throw new Error(Bo(18));const l=fd(r),s=ec(e);let u=Nc(s,{mixins:(c=s.breakpoints,d=n,Wo({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:yd.slice(),typography:vd(l,i),transitions:Rd(o),zIndex:Wo({},Ld),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Nc(u,a),u=t.reduce(((e,t)=>Nc(e,t)),u),u.unstable_sxConfig=Wo({},Ku,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qu({sx:e,theme:this})},u}var Md=Id();function _d(){const e=rc(Md);return e[Ho]||e}function Pd({props:e,name:t}){return Ic({props:e,name:t,defaultTheme:Md,themeId:Ho})}const Ad=e=>Ec(e)&&"classes"!==e,Dd=Ec,Td=function(e={}){const{themeId:t,defaultTheme:n=Cc,rootShouldForwardProp:r=Ec,slotShouldForwardProp:o=Ec}=e,i=e=>Qu(mr({},e,{theme:Rc(mr({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ql(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Lc(wc(s))}=a,p=Sr(a,Sc),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Ec;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Nl(e,mr({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||zl(e)?r=>kc(e,mr({},r,{theme:Rc({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=Rc(mr({},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]=kc(n,mr({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Rc(mr({},e,{defaultTheme:n,themeId:t}));return kc({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},mr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Ho,defaultTheme:Md,rootShouldForwardProp:Ad});var Od=Td;var Nd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qd(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=qd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fd(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qd(e))&&(r&&(r+=" "),r+=t);return r}function zd(e){return ld("MuiSvgIcon",e)}sd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jd=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$d=Od("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${qc(n.color)}`],t[`fontSize${qc(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Bd=ao.forwardRef((function(e,t){const n=Pd({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=Go(n,jd),f=ao.isValidElement(r)&&"svg"===r.type,m=Wo({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Fs({root:["root","inherit"!==t&&`color${qc(t)}`,`fontSize${qc(n)}`]},zd,r)})(m);return fc.jsxs($d,Wo({as:a,className:Fd(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?fc.jsx("title",{children:c}):null]}))}));Bd.muiName="SvgIcon";var Hd=Bd;var Wd,Gd={},Vd=Symbol.for("react.element"),Ud=Symbol.for("react.portal"),Yd=Symbol.for("react.fragment"),Kd=Symbol.for("react.strict_mode"),Xd=Symbol.for("react.profiler"),Qd=Symbol.for("react.provider"),Jd=Symbol.for("react.context"),Zd=Symbol.for("react.server_context"),ep=Symbol.for("react.forward_ref"),tp=Symbol.for("react.suspense"),np=Symbol.for("react.suspense_list"),rp=Symbol.for("react.memo"),op=Symbol.for("react.lazy"),ip=Symbol.for("react.offscreen");
|
|
18
20
|
/**
|
|
19
21
|
* @license React
|
|
20
22
|
* react-is.production.min.js
|
|
@@ -23,7 +25,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
23
25
|
*
|
|
24
26
|
* This source code is licensed under the MIT license found in the
|
|
25
27
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function
|
|
28
|
+
*/function ap(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vd:switch(e=e.type){case Yd:case Xd:case Kd:case tp:case np:return e;default:switch(e=e&&e.$$typeof){case Zd:case Jd:case ep:case op:case rp:case Qd:return e;default:return t}}case Ud:return t}}}Wd=Symbol.for("react.module.reference"),Gd.ContextConsumer=Jd,Gd.ContextProvider=Qd,Gd.Element=Vd,Gd.ForwardRef=ep,Gd.Fragment=Yd,Gd.Lazy=op,Gd.Memo=rp,Gd.Portal=Ud,Gd.Profiler=Xd,Gd.StrictMode=Kd,Gd.Suspense=tp,Gd.SuspenseList=np,Gd.isAsyncMode=function(){return!1},Gd.isConcurrentMode=function(){return!1},Gd.isContextConsumer=function(e){return ap(e)===Jd},Gd.isContextProvider=function(e){return ap(e)===Qd},Gd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vd},Gd.isForwardRef=function(e){return ap(e)===ep},Gd.isFragment=function(e){return ap(e)===Yd},Gd.isLazy=function(e){return ap(e)===op},Gd.isMemo=function(e){return ap(e)===rp},Gd.isPortal=function(e){return ap(e)===Ud},Gd.isProfiler=function(e){return ap(e)===Xd},Gd.isStrictMode=function(e){return ap(e)===Kd},Gd.isSuspense=function(e){return ap(e)===tp},Gd.isSuspenseList=function(e){return ap(e)===np},Gd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Yd||e===Xd||e===Kd||e===tp||e===np||e===ip||"object"==typeof e&&null!==e&&(e.$$typeof===op||e.$$typeof===rp||e.$$typeof===Qd||e.$$typeof===Jd||e.$$typeof===ep||e.$$typeof===Wd||void 0!==e.getModuleId)},Gd.typeOf=ap;var lp={exports:{}},sp={},up={exports:{}},cp={};
|
|
27
29
|
/**
|
|
28
30
|
* @license React
|
|
29
31
|
* scheduler.production.min.js
|
|
@@ -33,7 +35,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
33
35
|
* This source code is licensed under the MIT license found in the
|
|
34
36
|
* LICENSE file in the root directory of this source tree.
|
|
35
37
|
*/
|
|
36
|
-
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,A(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!
|
|
38
|
+
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,A(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&D(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,R=-1,L=5,k=-1;function I(){return!(e.unstable_now()-k<L)}function M(){if(null!==w){var t=e.unstable_now();k=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(M)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=M,E=function(){P.postMessage(null)}}else E=function(){g(M,0)};function A(e){w=e,C||(C=!0,E())}function D(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,A(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,A(S))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(cp),up.exports=cp;var dp=up.exports,pp=ao,fp=dp;
|
|
37
39
|
/**
|
|
38
40
|
* @license React
|
|
39
41
|
* react-dom.production.min.js
|
|
@@ -42,7 +44,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
42
44
|
*
|
|
43
45
|
* This source code is licensed under the MIT license found in the
|
|
44
46
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/function Qc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jc=new Set,Zc={};function ed(e,t){td(e,t),td(e+"Capture",t)}function td(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Jc.add(t[e])}var nd=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rd=Object.prototype.hasOwnProperty,od=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,id={},ad={};function ld(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var sd={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sd[e]=new ld(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sd[t]=new ld(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sd[e]=new ld(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sd[e]=new ld(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sd[e]=new ld(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sd[e]=new ld(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sd[e]=new ld(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sd[e]=new ld(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sd[e]=new ld(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ud=/[\-:]([a-z])/g;function cd(e){return e[1].toUpperCase()}function dd(e,t,n,r){var o=sd.hasOwnProperty(t)?sd[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!rd.call(ad,e)||!rd.call(id,e)&&(od.test(e)?ad[e]=!0:(id[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ud,cd);sd[t]=new ld(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!1,!1)})),sd.xlinkHref=new ld("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sd[e]=new ld(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pd=Kc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fd=Symbol.for("react.element"),md=Symbol.for("react.portal"),hd=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),vd=Symbol.for("react.profiler"),bd=Symbol.for("react.provider"),yd=Symbol.for("react.context"),xd=Symbol.for("react.forward_ref"),Sd=Symbol.for("react.suspense"),Ed=Symbol.for("react.suspense_list"),Cd=Symbol.for("react.memo"),wd=Symbol.for("react.lazy"),Rd=Symbol.for("react.offscreen"),Ld=Symbol.iterator;function kd(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ld&&e[Ld]||e["@@iterator"])?e:null}var Md,Id=Object.assign;function _d(e){if(void 0===Md)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Md=t&&t[1]||""}return"\n"+Md+e}var Pd=!1;function Ad(e,t){if(!e||Pd)return"";Pd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_d(e):""}function Dd(e){switch(e.tag){case 5:return _d(e.type);case 16:return _d("Lazy");case 13:return _d("Suspense");case 19:return _d("SuspenseList");case 0:case 2:case 15:return e=Ad(e.type,!1);case 11:return e=Ad(e.type.render,!1);case 1:return e=Ad(e.type,!0);default:return""}}function Td(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case hd:return"Fragment";case md:return"Portal";case vd:return"Profiler";case gd:return"StrictMode";case Sd:return"Suspense";case Ed:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case yd:return(e.displayName||"Context")+".Consumer";case bd:return(e._context.displayName||"Context")+".Provider";case xd:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Cd:return null!==(t=e.displayName||null)?t:Td(e.type)||"Memo";case wd:t=e._payload,e=e._init;try{return Td(e(t))}catch(e){}}return null}function Od(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Td(t);case 8:return t===gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Nd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Fd(e){e._valueTracker||(e._valueTracker=function(e){var t=qd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qd(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jd(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $d(e,t){var n=t.checked;return Id({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Bd(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Nd(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Hd(e,t){null!=(t=t.checked)&&dd(e,"checked",t,!1)}function Wd(e,t){Hd(e,t);var n=Nd(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vd(e,t.type,Nd(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Gd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Vd(e,t,n){"number"===t&&jd(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ud=Array.isArray;function Yd(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Nd(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Kd(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Qc(91));return Id({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xd(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Qc(92));if(Ud(n)){if(1<n.length)throw Error(Qc(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Nd(n)}}function Qd(e,t){var n=Nd(t.value),r=Nd(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Jd(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Zd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ep(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zd(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tp,np,rp=(np=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tp=tp||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return np(e,t)}))}:np);function op(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ip={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ap=["Webkit","ms","Moz","O"];function lp(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ip.hasOwnProperty(e)&&ip[e]?(""+t).trim():t+"px"}function sp(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lp(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ip).forEach((function(e){ap.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ip[t]=ip[e]}))}));var up=Id({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cp(e,t){if(t){if(up[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Qc(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Qc(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qc(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Qc(62))}}function dp(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pp=null;function fp(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var mp=null,hp=null,gp=null;function vp(e){if(e=dg(e)){if("function"!=typeof mp)throw Error(Qc(280));var t=e.stateNode;t&&(t=fg(t),mp(e.stateNode,e.type,t))}}function bp(e){hp?gp?gp.push(e):gp=[e]:hp=e}function yp(){if(hp){var e=hp,t=gp;if(gp=hp=null,vp(e),t)for(e=0;e<t.length;e++)vp(t[e])}}function xp(e,t){return e(t)}function Sp(){}var Ep=!1;function Cp(e,t,n){if(Ep)return e(t,n);Ep=!0;try{return xp(e,t,n)}finally{Ep=!1,(null!==hp||null!==gp)&&(Sp(),yp())}}function wp(e,t){var n=e.stateNode;if(null===n)return null;var r=fg(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Qc(231,t,typeof n));return n}var Rp=!1;if(nd)try{var Lp={};Object.defineProperty(Lp,"passive",{get:function(){Rp=!0}}),window.addEventListener("test",Lp,Lp),window.removeEventListener("test",Lp,Lp)}catch(np){Rp=!1}function kp(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mp=!1,Ip=null,_p=!1,Pp=null,Ap={onError:function(e){Mp=!0,Ip=e}};function Dp(e,t,n,r,o,i,a,l,s){Mp=!1,Ip=null,kp.apply(Ap,arguments)}function Tp(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Op(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Np(e){if(Tp(e)!==e)throw Error(Qc(188))}function qp(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Tp(e)))throw Error(Qc(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Np(o),e;if(i===r)return Np(o),t;i=i.sibling}throw Error(Qc(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Qc(189))}}if(n.alternate!==r)throw Error(Qc(190))}if(3!==n.tag)throw Error(Qc(188));return n.stateNode.current===n?e:t}(e),null!==e?Fp(e):null}function Fp(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Fp(e);if(null!==t)return t;e=e.sibling}return null}var zp=Xc.unstable_scheduleCallback,jp=Xc.unstable_cancelCallback,$p=Xc.unstable_shouldYield,Bp=Xc.unstable_requestPaint,Hp=Xc.unstable_now,Wp=Xc.unstable_getCurrentPriorityLevel,Gp=Xc.unstable_ImmediatePriority,Vp=Xc.unstable_UserBlockingPriority,Up=Xc.unstable_NormalPriority,Yp=Xc.unstable_LowPriority,Kp=Xc.unstable_IdlePriority,Xp=null,Qp=null;var Jp=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zp(e)/ef|0)|0},Zp=Math.log,ef=Math.LN2;var tf=64,nf=4194304;function rf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function of(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=rf(l):0!==(i&=a)&&(r=rf(i))}else 0!==(a=n&~o)?r=rf(a):0!==i&&(r=rf(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Jp(t)),r|=e[n],t&=~o;return r}function af(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function lf(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sf(){var e=tf;return!(4194240&(tf<<=1))&&(tf=64),e}function uf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cf(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Jp(t)]=n}function df(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jp(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pf=0;function ff(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var mf,hf,gf,vf,bf,yf=!1,xf=[],Sf=null,Ef=null,Cf=null,wf=new Map,Rf=new Map,Lf=[],kf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mf(e,t){switch(e){case"focusin":case"focusout":Sf=null;break;case"dragenter":case"dragleave":Ef=null;break;case"mouseover":case"mouseout":Cf=null;break;case"pointerover":case"pointerout":wf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rf.delete(t.pointerId)}}function If(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=dg(t))&&hf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function _f(e){var t=cg(e.target);if(null!==t){var n=Tp(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Op(n)))return e.blockedOn=t,void bf(e.priority,(function(){gf(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=dg(n))&&hf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);pp=r,n.target.dispatchEvent(r),pp=null,t.shift()}return!0}function Af(e,t,n){Pf(e)&&n.delete(t)}function Df(){yf=!1,null!==Sf&&Pf(Sf)&&(Sf=null),null!==Ef&&Pf(Ef)&&(Ef=null),null!==Cf&&Pf(Cf)&&(Cf=null),wf.forEach(Af),Rf.forEach(Af)}function Tf(e,t){e.blockedOn===t&&(e.blockedOn=null,yf||(yf=!0,Xc.unstable_scheduleCallback(Xc.unstable_NormalPriority,Df)))}function Of(e){function t(t){return Tf(t,e)}if(0<xf.length){Tf(xf[0],e);for(var n=1;n<xf.length;n++){var r=xf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Sf&&Tf(Sf,e),null!==Ef&&Tf(Ef,e),null!==Cf&&Tf(Cf,e),wf.forEach(t),Rf.forEach(t),n=0;n<Lf.length;n++)(r=Lf[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lf.length&&null===(n=Lf[0]).blockedOn;)_f(n),null===n.blockedOn&&Lf.shift()}var Nf=pd.ReactCurrentBatchConfig,qf=!0;function Ff(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=1,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function zf(e,t,n,r){var o=pf,i=Nf.transition;Nf.transition=null;try{pf=4,jf(e,t,n,r)}finally{pf=o,Nf.transition=i}}function jf(e,t,n,r){if(qf){var o=Bf(e,t,n,r);if(null===o)Nh(e,t,r,$f,n),Mf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Sf=If(Sf,e,t,n,r,o),!0;case"dragenter":return Ef=If(Ef,e,t,n,r,o),!0;case"mouseover":return Cf=If(Cf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return wf.set(i,If(wf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rf.set(i,If(Rf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<kf.indexOf(e)){for(;null!==o;){var i=dg(o);if(null!==i&&mf(i),null===(i=Bf(e,t,n,r))&&Nh(e,t,r,$f,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Nh(e,t,r,null,n)}}var $f=null;function Bf(e,t,n,r){if($f=null,null!==(e=cg(e=fp(r))))if(null===(t=Tp(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Op(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $f=e,null}function Hf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wp()){case Gp:return 1;case Vp:return 4;case Up:case Yp:return 16;case Kp:return 536870912;default:return 16}default:return 16}}var Wf=null,Gf=null,Vf=null;function Uf(){if(Vf)return Vf;var e,t,n=Gf,r=n.length,o="value"in Wf?Wf.value:Wf.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vf=o.slice(e,1<t?1-t:void 0)}function Yf(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kf(){return!0}function Xf(){return!1}function Qf(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Kf:Xf,this.isPropagationStopped=Xf,this}return Id(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kf)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kf)},persist:function(){},isPersistent:Kf}),t}var Jf,Zf,em,tm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nm=Qf(tm),rm=Id({},tm,{view:0,detail:0}),om=Qf(rm),im=Id({},rm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vm,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==em&&(em&&"mousemove"===e.type?(Jf=e.screenX-em.screenX,Zf=e.screenY-em.screenY):Zf=Jf=0,em=e),Jf)},movementY:function(e){return"movementY"in e?e.movementY:Zf}}),am=Qf(im),lm=Qf(Id({},im,{dataTransfer:0})),sm=Qf(Id({},rm,{relatedTarget:0})),um=Qf(Id({},tm,{animationName:0,elapsedTime:0,pseudoElement:0})),cm=Id({},tm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dm=Qf(cm),pm=Qf(Id({},tm,{data:0})),fm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hm[e])&&!!t[e]}function vm(){return gm}var bm=Id({},rm,{key:function(e){if(e.key){var t=fm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yf(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vm,charCode:function(e){return"keypress"===e.type?Yf(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yf(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ym=Qf(bm),xm=Qf(Id({},im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sm=Qf(Id({},rm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vm})),Em=Qf(Id({},tm,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cm=Id({},im,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wm=Qf(Cm),Rm=[9,13,27,32],Lm=nd&&"CompositionEvent"in window,km=null;nd&&"documentMode"in document&&(km=document.documentMode);var Mm=nd&&"TextEvent"in window&&!km,Im=nd&&(!Lm||km&&8<km&&11>=km),_m=String.fromCharCode(32),Pm=!1;function Am(e,t){switch(e){case"keyup":return-1!==Rm.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dm(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Tm=!1;var Om={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Om[e.type]:"textarea"===t}function qm(e,t,n,r){bp(r),0<(t=Fh(t,"onChange")).length&&(n=new nm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fm=null,zm=null;function jm(e){_h(e,0)}function $m(e){if(zd(pg(e)))return e}function Bm(e,t){if("change"===e)return t}var Hm=!1;if(nd){var Wm;if(nd){var Gm="oninput"in document;if(!Gm){var Vm=document.createElement("div");Vm.setAttribute("oninput","return;"),Gm="function"==typeof Vm.oninput}Wm=Gm}else Wm=!1;Hm=Wm&&(!document.documentMode||9<document.documentMode)}function Um(){Fm&&(Fm.detachEvent("onpropertychange",Ym),zm=Fm=null)}function Ym(e){if("value"===e.propertyName&&$m(zm)){var t=[];qm(t,zm,e,fp(e)),Cp(jm,t)}}function Km(e,t,n){"focusin"===e?(Um(),zm=n,(Fm=t).attachEvent("onpropertychange",Ym)):"focusout"===e&&Um()}function Xm(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $m(zm)}function Qm(e,t){if("click"===e)return $m(t)}function Jm(e,t){if("input"===e||"change"===e)return $m(t)}var Zm="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eh(e,t){if(Zm(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!rd.call(t,o)||!Zm(e[o],t[o]))return!1}return!0}function th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nh(e,t){var n,r=th(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=th(r)}}function rh(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?rh(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oh(){for(var e=window,t=jd();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jd((e=t.contentWindow).document)}return t}function ih(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ah(e){var t=oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rh(n.ownerDocument.documentElement,n)){if(null!==r&&ih(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=nh(n,i);var a=nh(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lh=nd&&"documentMode"in document&&11>=document.documentMode,sh=null,uh=null,ch=null,dh=!1;function ph(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dh||null==sh||sh!==jd(r)||("selectionStart"in(r=sh)&&ih(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ch&&eh(ch,r)||(ch=r,0<(r=Fh(uh,"onSelect")).length&&(t=new nm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sh)))}function fh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mh={animationend:fh("Animation","AnimationEnd"),animationiteration:fh("Animation","AnimationIteration"),animationstart:fh("Animation","AnimationStart"),transitionend:fh("Transition","TransitionEnd")},hh={},gh={};function vh(e){if(hh[e])return hh[e];if(!mh[e])return e;var t,n=mh[e];for(t in n)if(n.hasOwnProperty(t)&&t in gh)return hh[e]=n[t];return e}nd&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete mh.animationend.animation,delete mh.animationiteration.animation,delete mh.animationstart.animation),"TransitionEvent"in window||delete mh.transitionend.transition);var bh=vh("animationend"),yh=vh("animationiteration"),xh=vh("animationstart"),Sh=vh("transitionend"),Eh=new Map,Ch="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wh(e,t){Eh.set(e,t),ed(t,[e])}for(var Rh=0;Rh<Ch.length;Rh++){var Lh=Ch[Rh];wh(Lh.toLowerCase(),"on"+(Lh[0].toUpperCase()+Lh.slice(1)))}wh(bh,"onAnimationEnd"),wh(yh,"onAnimationIteration"),wh(xh,"onAnimationStart"),wh("dblclick","onDoubleClick"),wh("focusin","onFocus"),wh("focusout","onBlur"),wh(Sh,"onTransitionEnd"),td("onMouseEnter",["mouseout","mouseover"]),td("onMouseLeave",["mouseout","mouseover"]),td("onPointerEnter",["pointerout","pointerover"]),td("onPointerLeave",["pointerout","pointerover"]),ed("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ed("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ed("onBeforeInput",["compositionend","keypress","textInput","paste"]),ed("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ed("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mh=new Set("cancel close invalid load scroll toggle".split(" ").concat(kh));function Ih(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Dp.apply(this,arguments),Mp){if(!Mp)throw Error(Qc(198));var u=Ip;Mp=!1,Ip=null,_p||(_p=!0,Pp=u)}}(r,t,void 0,e),e.currentTarget=null}function _h(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ih(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ih(o,l,u),i=s}}}if(_p)throw e=Pp,_p=!1,Pp=null,e}function Ph(e,t){var n=t[lg];void 0===n&&(n=t[lg]=new Set);var r=e+"__bubble";n.has(r)||(Oh(t,e,2,!1),n.add(r))}function Ah(e,t,n){var r=0;t&&(r|=4),Oh(n,e,r,t)}var Dh="_reactListening"+Math.random().toString(36).slice(2);function Th(e){if(!e[Dh]){e[Dh]=!0,Jc.forEach((function(t){"selectionchange"!==t&&(Mh.has(t)||Ah(t,!1,e),Ah(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Dh]||(t[Dh]=!0,Ah("selectionchange",!1,t))}}function Oh(e,t,n,r){switch(Hf(t)){case 1:var o=Ff;break;case 4:o=zf;break;default:o=jf}n=o.bind(null,t,n,e),o=void 0,!Rp||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nh(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=cg(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Cp((function(){var r=i,o=fp(n),a=[];e:{var l=Eh.get(e);if(void 0!==l){var s=nm,u=e;switch(e){case"keypress":if(0===Yf(n))break e;case"keydown":case"keyup":s=ym;break;case"focusin":u="focus",s=sm;break;case"focusout":u="blur",s=sm;break;case"beforeblur":case"afterblur":s=sm;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=lm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Sm;break;case bh:case yh:case xh:s=um;break;case Sh:s=Em;break;case"scroll":s=om;break;case"wheel":s=wm;break;case"copy":case"cut":case"paste":s=dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=xm}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=wp(m,p))&&c.push(qh(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===pp||!(u=n.relatedTarget||n.fromElement)||!cg(u)&&!u[ag])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?cg(u):null)&&(u!==(d=Tp(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=am,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=xm,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:pg(s),f=null==u?l:pg(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,cg(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=zh(f))m++;for(f=0,h=p;h;h=zh(h))f++;for(;0<m-f;)c=zh(c),m--;for(;0<f-m;)p=zh(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=zh(c),p=zh(p)}c=null}else c=null;null!==s&&jh(a,l,s,c,!1),null!==u&&null!==d&&jh(a,d,u,c,!0)}if("select"===(s=(l=r?pg(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Bm;else if(Nm(l))if(Hm)g=Jm;else{g=Xm;var v=Km}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Qm);switch(g&&(g=g(e,r))?qm(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Vd(l,"number",l.value)),v=r?pg(r):window,e){case"focusin":(Nm(v)||"true"===v.contentEditable)&&(sh=v,uh=r,ch=null);break;case"focusout":ch=uh=sh=null;break;case"mousedown":dh=!0;break;case"contextmenu":case"mouseup":case"dragend":dh=!1,ph(a,n,o);break;case"selectionchange":if(lh)break;case"keydown":case"keyup":ph(a,n,o)}var b;if(Lm)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Tm?Am(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Im&&"ko"!==n.locale&&(Tm||"onCompositionStart"!==y?"onCompositionEnd"===y&&Tm&&(b=Uf()):(Gf="value"in(Wf=o)?Wf.value:Wf.textContent,Tm=!0)),0<(v=Fh(r,y)).length&&(y=new pm(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Dm(n))&&(y.data=b))),(b=Mm?function(e,t){switch(e){case"compositionend":return Dm(t);case"keypress":return 32!==t.which?null:(Pm=!0,_m);case"textInput":return(e=t.data)===_m&&Pm?null:e;default:return null}}(e,n):function(e,t){if(Tm)return"compositionend"===e||!Lm&&Am(e,t)?(e=Uf(),Vf=Gf=Wf=null,Tm=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Im&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fh(r,"onBeforeInput")).length&&(o=new pm("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}_h(a,t)}))}function qh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fh(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=wp(e,n))&&r.unshift(qh(e,i,o)),null!=(i=wp(e,t))&&r.push(qh(e,i,o))),e=e.return}return r}function zh(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jh(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=wp(n,i))&&a.unshift(qh(n,s,l)):o||null!=(s=wp(n,i))&&a.push(qh(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $h=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Hh(e){return("string"==typeof e?e:""+e).replace($h,"\n").replace(Bh,"")}function Wh(e,t,n){if(t=Hh(t),Hh(e)!==t&&n)throw Error(Qc(425))}function Gh(){}var Vh=null,Uh=null;function Yh(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Kh="function"==typeof setTimeout?setTimeout:void 0,Xh="function"==typeof clearTimeout?clearTimeout:void 0,Qh="function"==typeof Promise?Promise:void 0,Jh="function"==typeof queueMicrotask?queueMicrotask:void 0!==Qh?function(e){return Qh.resolve(null).then(e).catch(Zh)}:Kh;function Zh(e){setTimeout((function(){throw e}))}function eg(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Of(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Of(t)}function tg(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ng(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var rg=Math.random().toString(36).slice(2),og="__reactFiber$"+rg,ig="__reactProps$"+rg,ag="__reactContainer$"+rg,lg="__reactEvents$"+rg,sg="__reactListeners$"+rg,ug="__reactHandles$"+rg;function cg(e){var t=e[og];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ag]||n[og]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ng(e);null!==e;){if(n=e[og])return n;e=ng(e)}return t}n=(e=n).parentNode}return null}function dg(e){return!(e=e[og]||e[ag])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pg(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Qc(33))}function fg(e){return e[ig]||null}var mg=[],hg=-1;function gg(e){return{current:e}}function vg(e){0>hg||(e.current=mg[hg],mg[hg]=null,hg--)}function bg(e,t){hg++,mg[hg]=e.current,e.current=t}var yg={},xg=gg(yg),Sg=gg(!1),Eg=yg;function Cg(e,t){var n=e.type.contextTypes;if(!n)return yg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wg(e){return null!=(e=e.childContextTypes)}function Rg(){vg(Sg),vg(xg)}function Lg(e,t,n){if(xg.current!==yg)throw Error(Qc(168));bg(xg,t),bg(Sg,n)}function kg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(Qc(108,Od(e)||"Unknown",o));return Id({},n,r)}function Mg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yg,Eg=xg.current,bg(xg,e),bg(Sg,Sg.current),!0}function Ig(e,t,n){var r=e.stateNode;if(!r)throw Error(Qc(169));n?(e=kg(e,t,Eg),r.__reactInternalMemoizedMergedChildContext=e,vg(Sg),vg(xg),bg(xg,e)):vg(Sg),bg(Sg,n)}var _g=null,Pg=!1,Ag=!1;function Dg(e){null===_g?_g=[e]:_g.push(e)}function Tg(){if(!Ag&&null!==_g){Ag=!0;var e=0,t=pf;try{var n=_g;for(pf=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_g=null,Pg=!1}catch(t){throw null!==_g&&(_g=_g.slice(e+1)),zp(Gp,Tg),t}finally{pf=t,Ag=!1}}return null}var Og=[],Ng=0,qg=null,Fg=0,zg=[],jg=0,$g=null,Bg=1,Hg="";function Wg(e,t){Og[Ng++]=Fg,Og[Ng++]=qg,qg=e,Fg=t}function Gg(e,t,n){zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,$g=e;var r=Bg;e=Hg;var o=32-Jp(r)-1;r&=~(1<<o),n+=1;var i=32-Jp(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Bg=1<<32-Jp(t)+o|n<<o|r,Hg=i+e}else Bg=1<<i|n<<o|r,Hg=e}function Vg(e){null!==e.return&&(Wg(e,1),Gg(e,1,0))}function Ug(e){for(;e===qg;)qg=Og[--Ng],Og[Ng]=null,Fg=Og[--Ng],Og[Ng]=null;for(;e===$g;)$g=zg[--jg],zg[jg]=null,Hg=zg[--jg],zg[jg]=null,Bg=zg[--jg],zg[jg]=null}var Yg=null,Kg=null,Xg=!1,Qg=null;function Jg(e,t){var n=ES(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Zg(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Yg=e,Kg=tg(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Yg=e,Kg=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$g?{id:Bg,overflow:Hg}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ES(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Yg=e,Kg=null,!0);default:return!1}}function ev(e){return!(!(1&e.mode)||128&e.flags)}function tv(e){if(Xg){var t=Kg;if(t){var n=t;if(!Zg(e,t)){if(ev(e))throw Error(Qc(418));t=tg(n.nextSibling);var r=Yg;t&&Zg(e,t)?Jg(r,n):(e.flags=-4097&e.flags|2,Xg=!1,Yg=e)}}else{if(ev(e))throw Error(Qc(418));e.flags=-4097&e.flags|2,Xg=!1,Yg=e}}}function nv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Yg=e}function rv(e){if(e!==Yg)return!1;if(!Xg)return nv(e),Xg=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Yh(e.type,e.memoizedProps)),t&&(t=Kg)){if(ev(e))throw ov(),Error(Qc(418));for(;t;)Jg(e,t),t=tg(t.nextSibling)}if(nv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Qc(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Kg=tg(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Kg=null}}else Kg=Yg?tg(e.stateNode.nextSibling):null;return!0}function ov(){for(var e=Kg;e;)e=tg(e.nextSibling)}function iv(){Kg=Yg=null,Xg=!1}function av(e){null===Qg?Qg=[e]:Qg.push(e)}var lv=pd.ReactCurrentBatchConfig;function sv(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Qc(309));var r=n.stateNode}if(!r)throw Error(Qc(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(Qc(284));if(!n._owner)throw Error(Qc(290,e))}return e}function uv(e,t){throw e=Object.prototype.toString.call(t),Error(Qc(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cv(e){return(0,e._init)(e._payload)}function dv(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=wS(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=MS(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===hd?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===wd&&cv(i)===t.type)?((r=o(t,n.props)).ref=sv(e,t,n),r.return=e,r):((r=RS(n.type,n.key,n.props,null,e.mode,r)).ref=sv(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=IS(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=LS(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=MS(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fd:return(n=RS(t.type,t.key,t.props,null,e.mode,n)).ref=sv(e,null,t),n.return=e,n;case md:return(t=IS(t,e.mode,n)).return=e,t;case wd:return d(e,(0,t._init)(t._payload),n)}if(Ud(t)||kd(t))return(t=LS(t,e.mode,n,null)).return=e,t;uv(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fd:return n.key===o?s(e,t,n,r):null;case md:return n.key===o?u(e,t,n,r):null;case wd:return p(e,t,(o=n._init)(n._payload),r)}if(Ud(n)||kd(n))return null!==o?null:c(e,t,n,r,null);uv(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fd:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case md:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case wd:return f(e,t,n,(0,r._init)(r._payload),o)}if(Ud(r)||kd(r))return c(t,e=e.get(n)||null,r,o,null);uv(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),Xg&&Wg(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return Xg&&Wg(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),Xg&&Wg(o,h),u}function h(o,a,l,s){var u=kd(l);if("function"!=typeof u)throw Error(Qc(150));if(null==(l=u.call(l)))throw Error(Qc(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),Xg&&Wg(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return Xg&&Wg(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),Xg&&Wg(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===hd&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case fd:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===hd){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===wd&&cv(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=sv(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===hd?((i=LS(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=RS(l.type,l.key,l.props,null,r.mode,s)).ref=sv(r,i,l),s.return=r,r=s)}return a(r);case md:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=IS(l,r.mode,s)).return=r,r=i}return a(r);case wd:return e(r,i,(c=l._init)(l._payload),s)}if(Ud(l))return m(r,i,l,s);if(kd(l))return h(r,i,l,s);uv(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=MS(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var pv=dv(!0),fv=dv(!1),mv=gg(null),hv=null,gv=null,vv=null;function bv(){vv=gv=hv=null}function yv(e){var t=mv.current;vg(mv),e._currentValue=t}function xv(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sv(e,t){hv=e,vv=gv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(cy=!0),e.firstContext=null)}function Ev(e){var t=e._currentValue;if(vv!==e)if(e={context:e,memoizedValue:t,next:null},null===gv){if(null===hv)throw Error(Qc(308));gv=e,hv.dependencies={lanes:0,firstContext:e}}else gv=gv.next=e;return t}var Cv=null;function wv(e){null===Cv?Cv=[e]:Cv.push(e)}function Rv(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lv(e,r)}function Lv(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var kv=!1;function Mv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _v(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pv(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&yx){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lv(e,n)}return null===(o=r.interleaved)?(t.next=t,wv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lv(e,n)}function Av(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}function Dv(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tv(e,t,n,r){var o=e.updateQueue;kv=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Id({},d,p);break e;case 2:kv=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);kx|=a,e.lanes=a,e.memoizedState=d}}function Ov(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(Qc(191,o));o.call(r)}}}var Nv={},qv=gg(Nv),Fv=gg(Nv),zv=gg(Nv);function jv(e){if(e===Nv)throw Error(Qc(174));return e}function $v(e,t){switch(bg(zv,t),bg(Fv,e),bg(qv,Nv),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ep(null,"");break;default:t=ep(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}vg(qv),bg(qv,t)}function Bv(){vg(qv),vg(Fv),vg(zv)}function Hv(e){jv(zv.current);var t=jv(qv.current),n=ep(t,e.type);t!==n&&(bg(Fv,e),bg(qv,n))}function Wv(e){Fv.current===e&&(vg(qv),vg(Fv))}var Gv=gg(0);function Vv(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Uv=[];function Yv(){for(var e=0;e<Uv.length;e++)Uv[e]._workInProgressVersionPrimary=null;Uv.length=0}var Kv=pd.ReactCurrentDispatcher,Xv=pd.ReactCurrentBatchConfig,Qv=0,Jv=null,Zv=null,eb=null,tb=!1,nb=!1,rb=0,ob=0;function ib(){throw Error(Qc(321))}function ab(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zm(e[n],t[n]))return!1;return!0}function lb(e,t,n,r,o,i){if(Qv=i,Jv=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kv.current=null===e||null===e.memoizedState?Wb:Gb,e=n(r,o),nb){i=0;do{if(nb=!1,rb=0,25<=i)throw Error(Qc(301));i+=1,eb=Zv=null,t.updateQueue=null,Kv.current=Vb,e=n(r,o)}while(nb)}if(Kv.current=Hb,t=null!==Zv&&null!==Zv.next,Qv=0,eb=Zv=Jv=null,tb=!1,t)throw Error(Qc(300));return e}function sb(){var e=0!==rb;return rb=0,e}function ub(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===eb?Jv.memoizedState=eb=e:eb=eb.next=e,eb}function cb(){if(null===Zv){var e=Jv.alternate;e=null!==e?e.memoizedState:null}else e=Zv.next;var t=null===eb?Jv.memoizedState:eb.next;if(null!==t)eb=t,Zv=e;else{if(null===e)throw Error(Qc(310));e={memoizedState:(Zv=e).memoizedState,baseState:Zv.baseState,baseQueue:Zv.baseQueue,queue:Zv.queue,next:null},null===eb?Jv.memoizedState=eb=e:eb=eb.next=e}return eb}function db(e,t){return"function"==typeof t?t(e):t}function pb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(311));n.lastRenderedReducer=e;var r=Zv,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Qv&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Jv.lanes|=c,kx|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Zm(r,t.memoizedState)||(cy=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Jv.lanes|=i,kx|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fb(e){var t=cb(),n=t.queue;if(null===n)throw Error(Qc(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Zm(i,t.memoizedState)||(cy=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function mb(){}function hb(e,t){var n=Jv,r=cb(),o=t(),i=!Zm(r.memoizedState,o);if(i&&(r.memoizedState=o,cy=!0),r=r.queue,kb(bb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==eb&&1&eb.memoizedState.tag){if(n.flags|=2048,Eb(9,vb.bind(null,n,r,o,t),void 0,null),null===xx)throw Error(Qc(349));30&Qv||gb(n,t,o)}return o}function gb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function vb(e,t,n,r){t.value=n,t.getSnapshot=r,yb(t)&&xb(e)}function bb(e,t,n){return n((function(){yb(t)&&xb(e)}))}function yb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zm(e,n)}catch(e){return!0}}function xb(e){var t=Lv(e,1);null!==t&&Ux(t,e,1,-1)}function Sb(e){var t=ub();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:db,lastRenderedState:e},t.queue=e,e=e.dispatch=zb.bind(null,Jv,e),[t.memoizedState,e]}function Eb(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Jv.updateQueue)?(t={lastEffect:null,stores:null},Jv.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Cb(){return cb().memoizedState}function wb(e,t,n,r){var o=ub();Jv.flags|=e,o.memoizedState=Eb(1|t,n,void 0,void 0===r?null:r)}function Rb(e,t,n,r){var o=cb();r=void 0===r?null:r;var i=void 0;if(null!==Zv){var a=Zv.memoizedState;if(i=a.destroy,null!==r&&ab(r,a.deps))return void(o.memoizedState=Eb(t,n,i,r))}Jv.flags|=e,o.memoizedState=Eb(1|t,n,i,r)}function Lb(e,t){return wb(8390656,8,e,t)}function kb(e,t){return Rb(2048,8,e,t)}function Mb(e,t){return Rb(4,2,e,t)}function Ib(e,t){return Rb(4,4,e,t)}function _b(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Pb(e,t,n){return n=null!=n?n.concat([e]):null,Rb(4,4,_b.bind(null,t,e),n)}function Ab(){}function Db(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tb(e,t){var n=cb();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ab(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ob(e,t,n){return 21&Qv?(Zm(n,t)||(n=sf(),Jv.lanes|=n,kx|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,cy=!0),e.memoizedState=n)}function Nb(e,t){var n=pf;pf=0!==n&&4>n?n:4,e(!0);var r=Xv.transition;Xv.transition={};try{e(!1),t()}finally{pf=n,Xv.transition=r}}function qb(){return cb().memoizedState}function Fb(e,t,n){var r=Vx(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jb(e))$b(t,n);else if(null!==(n=Rv(e,t,n,r))){Ux(n,e,r,Gx()),Bb(n,t,r)}}function zb(e,t,n){var r=Vx(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jb(e))$b(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Zm(l,a)){var s=t.interleaved;return null===s?(o.next=o,wv(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rv(e,t,o,r))&&(Ux(n,e,r,o=Gx()),Bb(n,t,r))}}function jb(e){var t=e.alternate;return e===Jv||null!==t&&t===Jv}function $b(e,t){nb=tb=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bb(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,df(e,n)}}var Hb={readContext:Ev,useCallback:ib,useContext:ib,useEffect:ib,useImperativeHandle:ib,useInsertionEffect:ib,useLayoutEffect:ib,useMemo:ib,useReducer:ib,useRef:ib,useState:ib,useDebugValue:ib,useDeferredValue:ib,useTransition:ib,useMutableSource:ib,useSyncExternalStore:ib,useId:ib,unstable_isNewReconciler:!1},Wb={readContext:Ev,useCallback:function(e,t){return ub().memoizedState=[e,void 0===t?null:t],e},useContext:Ev,useEffect:Lb,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wb(4194308,4,_b.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wb(4194308,4,e,t)},useInsertionEffect:function(e,t){return wb(4,2,e,t)},useMemo:function(e,t){var n=ub();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ub();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fb.bind(null,Jv,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ub().memoizedState=e},useState:Sb,useDebugValue:Ab,useDeferredValue:function(e){return ub().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=Nb.bind(null,e[1]),ub().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Jv,o=ub();if(Xg){if(void 0===n)throw Error(Qc(407));n=n()}else{if(n=t(),null===xx)throw Error(Qc(349));30&Qv||gb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lb(bb.bind(null,r,i,e),[e]),r.flags|=2048,Eb(9,vb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ub(),t=xx.identifierPrefix;if(Xg){var n=Hg;t=":"+t+"R"+(n=(Bg&~(1<<32-Jp(Bg)-1)).toString(32)+n),0<(n=rb++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ob++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:pb,useRef:Cb,useState:function(){return pb(db)},useDebugValue:Ab,useDeferredValue:function(e){return Ob(cb(),Zv.memoizedState,e)},useTransition:function(){return[pb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1},Vb={readContext:Ev,useCallback:Db,useContext:Ev,useEffect:kb,useImperativeHandle:Pb,useInsertionEffect:Mb,useLayoutEffect:Ib,useMemo:Tb,useReducer:fb,useRef:Cb,useState:function(){return fb(db)},useDebugValue:Ab,useDeferredValue:function(e){var t=cb();return null===Zv?t.memoizedState=e:Ob(t,Zv.memoizedState,e)},useTransition:function(){return[fb(db)[0],cb().memoizedState]},useMutableSource:mb,useSyncExternalStore:hb,useId:qb,unstable_isNewReconciler:!1};function Ub(e,t){if(e&&e.defaultProps){for(var n in t=Id({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Yb(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Id({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Kb={isMounted:function(e){return!!(e=e._reactInternals)&&Tp(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gx(),o=Vx(e),i=_v(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Pv(e,i,o))&&(Ux(t,e,o,r),Av(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gx(),r=Vx(e),o=_v(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Pv(e,o,r))&&(Ux(t,e,r,n),Av(t,e,r))}};function Xb(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!eh(n,r)||!eh(o,i))}function Qb(e,t,n){var r=!1,o=yg,i=t.contextType;return"object"==typeof i&&null!==i?i=Ev(i):(o=wg(t)?Eg:xg.current,i=(r=null!=(r=t.contextTypes))?Cg(e,o):yg),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Kb,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jb(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kb.enqueueReplaceState(t,t.state,null)}function Zb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mv(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ev(i):(i=wg(t)?Eg:xg.current,o.context=Cg(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Yb(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Kb.enqueueReplaceState(o,o.state,null),Tv(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ey(e,t){try{var n="",r=t;do{n+=Dd(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ty(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ny(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ry="function"==typeof WeakMap?WeakMap:Map;function oy(e,t,n){(n=_v(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ox||(Ox=!0,Nx=r),ny(0,t)},n}function iy(e,t,n){(n=_v(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ny(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ny(0,t),"function"!=typeof r&&(null===qx?qx=new Set([this]):qx.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ay(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ry;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function ly(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function sy(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=_v(-1,1)).tag=2,Pv(n,t,1))),n.lanes|=1),e)}var uy=pd.ReactCurrentOwner,cy=!1;function dy(e,t,n,r){t.child=null===e?fv(t,null,n,r):pv(t,e.child,n,r)}function py(e,t,n,r,o){n=n.render;var i=t.ref;return Sv(t,o),r=lb(e,t,n,r,i,o),n=sb(),null===e||cy?(Xg&&n&&Vg(t),t.flags|=1,dy(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function fy(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||CS(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=RS(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,my(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:eh)(a,r)&&e.ref===t.ref)return Oy(e,t,o)}return t.flags|=1,(e=wS(i,r)).ref=t.ref,e.return=t,t.child=e}function my(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(eh(i,r)&&e.ref===t.ref){if(cy=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Oy(e,t,o);131072&e.flags&&(cy=!0)}}return vy(e,t,n,r,o)}function hy(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bg(wx,Cx),Cx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,bg(wx,Cx),Cx|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bg(wx,Cx),Cx|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bg(wx,Cx),Cx|=r;return dy(e,t,o,n),t.child}function gy(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vy(e,t,n,r,o){var i=wg(n)?Eg:xg.current;return i=Cg(t,i),Sv(t,o),n=lb(e,t,n,r,i,o),r=sb(),null===e||cy?(Xg&&r&&Vg(t),t.flags|=1,dy(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Oy(e,t,o))}function by(e,t,n,r,o){if(wg(n)){var i=!0;Mg(t)}else i=!1;if(Sv(t,o),null===t.stateNode)Ty(e,t),Qb(t,n,r),Zb(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ev(u):u=Cg(t,u=wg(n)?Eg:xg.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Jb(t,a,r,u),kv=!1;var p=t.memoizedState;a.state=p,Tv(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Sg.current||kv?("function"==typeof c&&(Yb(t,n,c,r),s=t.memoizedState),(l=kv||Xb(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Iv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ub(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ev(s):s=Cg(t,s=wg(n)?Eg:xg.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Jb(t,a,r,s),kv=!1,p=t.memoizedState,a.state=p,Tv(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Sg.current||kv?("function"==typeof f&&(Yb(t,n,f,r),m=t.memoizedState),(u=kv||Xb(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return yy(e,t,n,r,i,o)}function yy(e,t,n,r,o,i){gy(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Ig(t,n,!1),Oy(e,t,i);r=t.stateNode,uy.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=pv(t,e.child,null,i),t.child=pv(t,null,l,i)):dy(e,t,l,i),t.memoizedState=r.state,o&&Ig(t,n,!0),t.child}function xy(e){var t=e.stateNode;t.pendingContext?Lg(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lg(0,t.context,!1),$v(e,t.containerInfo)}function Sy(e,t,n,r,o){return iv(),av(o),t.flags|=256,dy(e,t,n,r),t.child}var Ey,Cy,wy,Ry,Ly={dehydrated:null,treeContext:null,retryLane:0};function ky(e){return{baseLanes:e,cachePool:null,transitions:null}}function My(e,t,n){var r,o=t.pendingProps,i=Gv.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),bg(Gv,1&i),null===e)return tv(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=kS(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=LS(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ky(n),t.memoizedState=Ly,e):Iy(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,_y(e,t,a,r=ty(Error(Qc(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kS({mode:"visible",children:r.children},o,0,null),(i=LS(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&pv(t,e.child,null,a),t.child.memoizedState=ky(a),t.memoizedState=Ly,i);if(!(1&t.mode))return _y(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,_y(e,t,a,r=ty(i=Error(Qc(419)),r,void 0))}if(l=!!(a&e.childLanes),cy||l){if(null!==(r=xx)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Lv(e,o),Ux(r,e,o,-1))}return aS(),_y(e,t,a,r=ty(Error(Qc(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=bS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Kg=tg(o.nextSibling),Yg=t,Xg=!0,Qg=null,null!==e&&(zg[jg++]=Bg,zg[jg++]=Hg,zg[jg++]=$g,Bg=e.id,Hg=e.overflow,$g=t),t=Iy(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=wS(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=wS(r,a):(a=LS(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?ky(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ly,o}return e=(a=e.child).sibling,o=wS(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Iy(e,t){return(t=kS({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _y(e,t,n,r){return null!==r&&av(r),pv(t,e.child,null,n),(e=Iy(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Py(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xv(e.return,t,n)}function Ay(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Dy(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(dy(e,t,r.children,n),2&(r=Gv.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Py(e,n,t);else if(19===e.tag)Py(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bg(Gv,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Vv(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ay(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Vv(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ay(t,!0,n,null,i);break;case"together":Ay(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ty(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oy(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kx|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Qc(153));if(null!==t.child){for(n=wS(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wS(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ny(e,t){if(!Xg)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qy(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fy(e,t,n){var r=t.pendingProps;switch(Ug(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qy(t),null;case 1:case 17:return wg(t.type)&&Rg(),qy(t),null;case 3:return r=t.stateNode,Bv(),vg(Sg),vg(xg),Yv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(rv(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Qg&&(Qx(Qg),Qg=null))),Cy(e,t),qy(t),null;case 5:Wv(t);var o=jv(zv.current);if(n=t.type,null!==e&&null!=t.stateNode)wy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Qc(166));return qy(t),null}if(e=jv(qv.current),rv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[og]=t,r[ig]=i,e=!!(1&t.mode),n){case"dialog":Ph("cancel",r),Ph("close",r);break;case"iframe":case"object":case"embed":Ph("load",r);break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],r);break;case"source":Ph("error",r);break;case"img":case"image":case"link":Ph("error",r),Ph("load",r);break;case"details":Ph("toggle",r);break;case"input":Bd(r,i),Ph("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ph("invalid",r);break;case"textarea":Xd(r,i),Ph("invalid",r)}for(var a in cp(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Wh(r.textContent,l,e),o=["children",""+l]):Zc.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Ph("scroll",r)}switch(n){case"input":Fd(r),Gd(r,i,!0);break;case"textarea":Fd(r),Jd(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Gh)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Zd(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[og]=t,e[ig]=r,Ey(e,t,!1,!1),t.stateNode=e;e:{switch(a=dp(n,r),n){case"dialog":Ph("cancel",e),Ph("close",e),o=r;break;case"iframe":case"object":case"embed":Ph("load",e),o=r;break;case"video":case"audio":for(o=0;o<kh.length;o++)Ph(kh[o],e);o=r;break;case"source":Ph("error",e),o=r;break;case"img":case"image":case"link":Ph("error",e),Ph("load",e),o=r;break;case"details":Ph("toggle",e),o=r;break;case"input":Bd(e,r),o=$d(e,r),Ph("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Id({},r,{value:void 0}),Ph("invalid",e);break;case"textarea":Xd(e,r),o=Kd(e,r),Ph("invalid",e)}for(i in cp(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?sp(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&rp(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&op(e,s):"number"==typeof s&&op(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Zc.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Ph("scroll",e):null!=s&&dd(e,i,s,a))}switch(n){case"input":Fd(e),Gd(e,r,!1);break;case"textarea":Fd(e),Jd(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Nd(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Yd(e,!!r.multiple,i,!1):null!=r.defaultValue&&Yd(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Gh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qy(t),null;case 6:if(e&&null!=t.stateNode)Ry(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Qc(166));if(n=jv(zv.current),jv(qv.current),rv(t)){if(r=t.stateNode,n=t.memoizedProps,r[og]=t,(i=r.nodeValue!==n)&&null!==(e=Yg))switch(e.tag){case 3:Wh(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Wh(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[og]=t,t.stateNode=r}return qy(t),null;case 13:if(vg(Gv),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Xg&&null!==Kg&&1&t.mode&&!(128&t.flags))ov(),iv(),t.flags|=98560,i=!1;else if(i=rv(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Qc(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Qc(317));i[og]=t}else iv(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qy(t),i=!1}else null!==Qg&&(Qx(Qg),Qg=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Gv.current?0===Rx&&(Rx=3):aS())),null!==t.updateQueue&&(t.flags|=4),qy(t),null);case 4:return Bv(),Cy(e,t),null===e&&Th(t.stateNode.containerInfo),qy(t),null;case 10:return yv(t.type._context),qy(t),null;case 19:if(vg(Gv),null===(i=t.memoizedState))return qy(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Ny(i,!1);else{if(0!==Rx||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Vv(e))){for(t.flags|=128,Ny(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return bg(Gv,1&Gv.current|2),t.child}e=e.sibling}null!==i.tail&&Hp()>Dx&&(t.flags|=128,r=!0,Ny(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Vv(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ny(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Xg)return qy(t),null}else 2*Hp()-i.renderingStartTime>Dx&&1073741824!==n&&(t.flags|=128,r=!0,Ny(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Hp(),t.sibling=null,n=Gv.current,bg(Gv,r?1&n|2:1&n),t):(qy(t),null);case 22:case 23:return nS(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Cx)&&(qy(t),6&t.subtreeFlags&&(t.flags|=8192)):qy(t),null;case 24:case 25:return null}throw Error(Qc(156,t.tag))}function zy(e,t){switch(Ug(t),t.tag){case 1:return wg(t.type)&&Rg(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Bv(),vg(Sg),vg(xg),Yv(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Wv(t),null;case 13:if(vg(Gv),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Qc(340));iv()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return vg(Gv),null;case 4:return Bv(),null;case 10:return yv(t.type._context),null;case 22:case 23:return nS(),null;default:return null}}Ey=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cy=function(){},wy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jv(qv.current);var i,a=null;switch(n){case"input":o=$d(e,o),r=$d(e,r),a=[];break;case"select":o=Id({},o,{value:void 0}),r=Id({},r,{value:void 0}),a=[];break;case"textarea":o=Kd(e,o),r=Kd(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Gh)}for(u in cp(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Zc.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Zc.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Ph("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ry=function(e,t,n,r){n!==r&&(t.flags|=4)};var jy=!1,$y=!1,By="function"==typeof WeakSet?WeakSet:Set,Hy=null;function Wy(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hS(e,t,n)}else n.current=null}function Gy(e,t,n){try{n()}catch(n){hS(e,t,n)}}var Vy=!1;function Uy(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Gy(t,n,i)}o=o.next}while(o!==r)}}function Yy(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ky(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Xy(e){var t=e.alternate;null!==t&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[og],delete t[ig],delete t[lg],delete t[sg],delete t[ug])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qy(e){return 5===e.tag||3===e.tag||4===e.tag}function Jy(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Qy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Zy(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Gh));else if(4!==r&&null!==(e=e.child))for(Zy(e,t,n),e=e.sibling;null!==e;)Zy(e,t,n),e=e.sibling}function ex(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ex(e,t,n),e=e.sibling;null!==e;)ex(e,t,n),e=e.sibling}var tx=null,nx=!1;function rx(e,t,n){for(n=n.child;null!==n;)ox(e,t,n),n=n.sibling}function ox(e,t,n){if(Qp&&"function"==typeof Qp.onCommitFiberUnmount)try{Qp.onCommitFiberUnmount(Xp,n)}catch(e){}switch(n.tag){case 5:$y||Wy(n,t);case 6:var r=tx,o=nx;tx=null,rx(e,t,n),nx=o,null!==(tx=r)&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):tx.removeChild(n.stateNode));break;case 18:null!==tx&&(nx?(e=tx,n=n.stateNode,8===e.nodeType?eg(e.parentNode,n):1===e.nodeType&&eg(e,n),Of(e)):eg(tx,n.stateNode));break;case 4:r=tx,o=nx,tx=n.stateNode.containerInfo,nx=!0,rx(e,t,n),tx=r,nx=o;break;case 0:case 11:case 14:case 15:if(!$y&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Gy(n,t,a),o=o.next}while(o!==r)}rx(e,t,n);break;case 1:if(!$y&&(Wy(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hS(n,t,e)}rx(e,t,n);break;case 21:rx(e,t,n);break;case 22:1&n.mode?($y=(r=$y)||null!==n.memoizedState,rx(e,t,n),$y=r):rx(e,t,n);break;default:rx(e,t,n)}}function ix(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new By),t.forEach((function(t){var r=yS.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ax(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:tx=l.stateNode,nx=!1;break e;case 3:case 4:tx=l.stateNode.containerInfo,nx=!0;break e}l=l.return}if(null===tx)throw Error(Qc(160));ox(i,a,o),tx=null,nx=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){hS(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)lx(t,e),t=t.sibling}function lx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ax(t,e),sx(e),4&r){try{Uy(3,e,e.return),Yy(3,e)}catch(t){hS(e,e.return,t)}try{Uy(5,e,e.return)}catch(t){hS(e,e.return,t)}}break;case 1:ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return);break;case 5:if(ax(t,e),sx(e),512&r&&null!==n&&Wy(n,n.return),32&e.flags){var o=e.stateNode;try{op(o,"")}catch(t){hS(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Hd(o,i),dp(l,a);var u=dp(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?sp(o,d):"dangerouslySetInnerHTML"===c?rp(o,d):"children"===c?op(o,d):dd(o,c,d,u)}switch(l){case"input":Wd(o,i);break;case"textarea":Qd(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Yd(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Yd(o,!!i.multiple,i.defaultValue,!0):Yd(o,!!i.multiple,i.multiple?[]:"",!1))}o[ig]=i}catch(t){hS(e,e.return,t)}}break;case 6:if(ax(t,e),sx(e),4&r){if(null===e.stateNode)throw Error(Qc(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){hS(e,e.return,t)}}break;case 3:if(ax(t,e),sx(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Of(t.containerInfo)}catch(t){hS(e,e.return,t)}break;case 4:default:ax(t,e),sx(e);break;case 13:ax(t,e),sx(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ax=Hp())),4&r&&ix(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?($y=(u=$y)||c,ax(t,e),$y=u):ax(t,e),sx(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Hy=e,c=e.child;null!==c;){for(d=Hy=c;null!==Hy;){switch(f=(p=Hy).child,p.tag){case 0:case 11:case 14:case 15:Uy(4,p,p.return);break;case 1:Wy(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){hS(r,n,e)}}break;case 5:Wy(p,p.return);break;case 22:if(null!==p.memoizedState){px(d);continue}}null!==f?(f.return=p,Hy=f):px(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=lp("display",a))}catch(t){hS(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){hS(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ax(t,e),sx(e),4&r&&ix(e);case 21:}}function sx(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Qy(n)){var r=n;break e}n=n.return}throw Error(Qc(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(op(o,""),r.flags&=-33),ex(e,Jy(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Zy(e,Jy(e),i);break;default:throw Error(Qc(161))}}catch(t){hS(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ux(e,t,n){Hy=e,cx(e)}function cx(e,t,n){for(var r=!!(1&e.mode);null!==Hy;){var o=Hy,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||jy;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||$y;l=jy;var u=$y;if(jy=a,($y=s)&&!u)for(Hy=o;null!==Hy;)s=(a=Hy).child,22===a.tag&&null!==a.memoizedState?fx(o):null!==s?(s.return=a,Hy=s):fx(o);for(;null!==i;)Hy=i,cx(i),i=i.sibling;Hy=o,jy=l,$y=u}dx(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Hy=i):dx(e)}}function dx(e){for(;null!==Hy;){var t=Hy;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$y||Yy(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$y)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ub(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ov(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ov(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Of(d)}}}break;default:throw Error(Qc(163))}$y||512&t.flags&&Ky(t)}catch(e){hS(t,t.return,e)}}if(t===e){Hy=null;break}if(null!==(n=t.sibling)){n.return=t.return,Hy=n;break}Hy=t.return}}function px(e){for(;null!==Hy;){var t=Hy;if(t===e){Hy=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Hy=n;break}Hy=t.return}}function fx(e){for(;null!==Hy;){var t=Hy;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yy(4,t)}catch(e){hS(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){hS(t,o,e)}}var i=t.return;try{Ky(t)}catch(e){hS(t,i,e)}break;case 5:var a=t.return;try{Ky(t)}catch(e){hS(t,a,e)}}}catch(e){hS(t,t.return,e)}if(t===e){Hy=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Hy=l;break}Hy=t.return}}var mx,hx=Math.ceil,gx=pd.ReactCurrentDispatcher,vx=pd.ReactCurrentOwner,bx=pd.ReactCurrentBatchConfig,yx=0,xx=null,Sx=null,Ex=0,Cx=0,wx=gg(0),Rx=0,Lx=null,kx=0,Mx=0,Ix=0,_x=null,Px=null,Ax=0,Dx=1/0,Tx=null,Ox=!1,Nx=null,qx=null,Fx=!1,zx=null,jx=0,$x=0,Bx=null,Hx=-1,Wx=0;function Gx(){return 6&yx?Hp():-1!==Hx?Hx:Hx=Hp()}function Vx(e){return 1&e.mode?2&yx&&0!==Ex?Ex&-Ex:null!==lv.transition?(0===Wx&&(Wx=sf()),Wx):0!==(e=pf)?e:e=void 0===(e=window.event)?16:Hf(e.type):1}function Ux(e,t,n,r){if(50<$x)throw $x=0,Bx=null,Error(Qc(185));cf(e,n,r),2&yx&&e===xx||(e===xx&&(!(2&yx)&&(Mx|=n),4===Rx&&Jx(e,Ex)),Yx(e,r),1===n&&0===yx&&!(1&t.mode)&&(Dx=Hp()+500,Pg&&Tg()))}function Yx(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Jp(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=af(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=of(e,e===xx?Ex:0);if(0===r)null!==n&&jp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&jp(n),1===t)0===e.tag?function(e){Pg=!0,Dg(e)}(Zx.bind(null,e)):Dg(Zx.bind(null,e)),Jh((function(){!(6&yx)&&Tg()})),n=null;else{switch(ff(r)){case 1:n=Gp;break;case 4:n=Vp;break;case 16:default:n=Up;break;case 536870912:n=Kp}n=xS(n,Kx.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kx(e,t){if(Hx=-1,Wx=0,6&yx)throw Error(Qc(327));var n=e.callbackNode;if(fS()&&e.callbackNode!==n)return null;var r=of(e,e===xx?Ex:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=lS(e,r);else{t=r;var o=yx;yx|=2;var i=iS();for(xx===e&&Ex===t||(Tx=null,Dx=Hp()+500,rS(e,t));;)try{uS();break}catch(t){oS(e,t)}bv(),gx.current=i,yx=o,null!==Sx?t=0:(xx=null,Ex=0,t=Rx)}if(0!==t){if(2===t&&(0!==(o=lf(e))&&(r=o,t=Xx(e,o))),1===t)throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;if(6===t)Jx(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Zm(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=lS(e,r),2===t&&(i=lf(e),0!==i&&(r=i,t=Xx(e,i))),1!==t)))throw n=Lx,rS(e,0),Jx(e,r),Yx(e,Hp()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Qc(345));case 2:case 5:pS(e,Px,Tx);break;case 3:if(Jx(e,r),(130023424&r)===r&&10<(t=Ax+500-Hp())){if(0!==of(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Gx(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),t);break}pS(e,Px,Tx);break;case 4:if(Jx(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jp(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Hp()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hx(r/1960))-r)){e.timeoutHandle=Kh(pS.bind(null,e,Px,Tx),r);break}pS(e,Px,Tx);break;default:throw Error(Qc(329))}}}return Yx(e,Hp()),e.callbackNode===n?Kx.bind(null,e):null}function Xx(e,t){var n=_x;return e.current.memoizedState.isDehydrated&&(rS(e,t).flags|=256),2!==(e=lS(e,t))&&(t=Px,Px=n,null!==t&&Qx(t)),e}function Qx(e){null===Px?Px=e:Px.push.apply(Px,e)}function Jx(e,t){for(t&=~Ix,t&=~Mx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jp(t),r=1<<n;e[n]=-1,t&=~r}}function Zx(e){if(6&yx)throw Error(Qc(327));fS();var t=of(e,0);if(!(1&t))return Yx(e,Hp()),null;var n=lS(e,t);if(0!==e.tag&&2===n){var r=lf(e);0!==r&&(t=r,n=Xx(e,r))}if(1===n)throw n=Lx,rS(e,0),Jx(e,t),Yx(e,Hp()),n;if(6===n)throw Error(Qc(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pS(e,Px,Tx),Yx(e,Hp()),null}function eS(e,t){var n=yx;yx|=1;try{return e(t)}finally{0===(yx=n)&&(Dx=Hp()+500,Pg&&Tg())}}function tS(e){null!==zx&&0===zx.tag&&!(6&yx)&&fS();var t=yx;yx|=1;var n=bx.transition,r=pf;try{if(bx.transition=null,pf=1,e)return e()}finally{pf=r,bx.transition=n,!(6&(yx=t))&&Tg()}}function nS(){Cx=wx.current,vg(wx)}function rS(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xh(n)),null!==Sx)for(n=Sx.return;null!==n;){var r=n;switch(Ug(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Rg();break;case 3:Bv(),vg(Sg),vg(xg),Yv();break;case 5:Wv(r);break;case 4:Bv();break;case 13:case 19:vg(Gv);break;case 10:yv(r.type._context);break;case 22:case 23:nS()}n=n.return}if(xx=e,Sx=e=wS(e.current,null),Ex=Cx=t,Rx=0,Lx=null,Ix=Mx=kx=0,Px=_x=null,null!==Cv){for(t=0;t<Cv.length;t++)if(null!==(r=(n=Cv[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Cv=null}return e}function oS(e,t){for(;;){var n=Sx;try{if(bv(),Kv.current=Hb,tb){for(var r=Jv.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}tb=!1}if(Qv=0,eb=Zv=Jv=null,nb=!1,rb=0,vx.current=null,null===n||null===n.return){Rx=1,Lx=t,Sx=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ex,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=ly(a);if(null!==f){f.flags&=-257,sy(f,a,l,0,t),1&f.mode&&ay(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){ay(i,u,t),aS();break e}s=Error(Qc(426))}else if(Xg&&1&l.mode){var g=ly(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),sy(g,a,l,0,t),av(ey(s,l));break e}}i=s=ey(s,l),4!==Rx&&(Rx=2),null===_x?_x=[i]:_x.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,oy(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==qx&&qx.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Dv(i,iy(i,l,t));break e}}i=i.return}while(null!==i)}dS(n)}catch(e){t=e,Sx===n&&null!==n&&(Sx=n=n.return);continue}break}}function iS(){var e=gx.current;return gx.current=Hb,null===e?Hb:e}function aS(){0!==Rx&&3!==Rx&&2!==Rx||(Rx=4),null===xx||!(268435455&kx)&&!(268435455&Mx)||Jx(xx,Ex)}function lS(e,t){var n=yx;yx|=2;var r=iS();for(xx===e&&Ex===t||(Tx=null,rS(e,t));;)try{sS();break}catch(t){oS(e,t)}if(bv(),yx=n,gx.current=r,null!==Sx)throw Error(Qc(261));return xx=null,Ex=0,Rx}function sS(){for(;null!==Sx;)cS(Sx)}function uS(){for(;null!==Sx&&!$p();)cS(Sx)}function cS(e){var t=mx(e.alternate,e,Cx);e.memoizedProps=e.pendingProps,null===t?dS(e):Sx=t,vx.current=null}function dS(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=zy(n,t)))return n.flags&=32767,void(Sx=n);if(null===e)return Rx=6,void(Sx=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Fy(n,t,Cx)))return void(Sx=n);if(null!==(t=t.sibling))return void(Sx=t);Sx=t=e}while(null!==t);0===Rx&&(Rx=5)}function pS(e,t,n){var r=pf,o=bx.transition;try{bx.transition=null,pf=1,function(e,t,n,r){do{fS()}while(null!==zx);if(6&yx)throw Error(Qc(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Qc(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Jp(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===xx&&(Sx=xx=null,Ex=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Fx||(Fx=!0,xS(Up,(function(){return fS(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=bx.transition,bx.transition=null;var a=pf;pf=1;var l=yx;yx|=4,vx.current=null,function(e,t){if(Vh=qf,ih(e=oh())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uh={focusedElem:e,selectionRange:n},qf=!1,Hy=t;null!==Hy;)if(e=(t=Hy).child,1028&t.subtreeFlags&&null!==e)e.return=t,Hy=e;else for(;null!==Hy;){t=Hy;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Ub(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(Qc(163))}}catch(e){hS(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Hy=e;break}Hy=t.return}m=Vy,Vy=!1}(e,n),lx(n,e),ah(Uh),qf=!!Vh,Uh=Vh=null,e.current=n,ux(n),Bp(),yx=l,pf=a,bx.transition=i}else e.current=n;if(Fx&&(Fx=!1,zx=e,jx=o),i=e.pendingLanes,0===i&&(qx=null),function(e){if(Qp&&"function"==typeof Qp.onCommitFiberRoot)try{Qp.onCommitFiberRoot(Xp,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Yx(e,Hp()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ox)throw Ox=!1,e=Nx,Nx=null,e;!!(1&jx)&&0!==e.tag&&fS(),i=e.pendingLanes,1&i?e===Bx?$x++:($x=0,Bx=e):$x=0,Tg()}(e,t,n,r)}finally{bx.transition=o,pf=r}return null}function fS(){if(null!==zx){var e=ff(jx),t=bx.transition,n=pf;try{if(bx.transition=null,pf=16>e?16:e,null===zx)var r=!1;else{if(e=zx,zx=null,jx=0,6&yx)throw Error(Qc(331));var o=yx;for(yx|=4,Hy=e.current;null!==Hy;){var i=Hy,a=i.child;if(16&Hy.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Hy=u;null!==Hy;){var c=Hy;switch(c.tag){case 0:case 11:case 15:Uy(8,c,i)}var d=c.child;if(null!==d)d.return=c,Hy=d;else for(;null!==Hy;){var p=(c=Hy).sibling,f=c.return;if(Xy(c),c===u){Hy=null;break}if(null!==p){p.return=f,Hy=p;break}Hy=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Hy=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Hy=a;else e:for(;null!==Hy;){if(2048&(i=Hy).flags)switch(i.tag){case 0:case 11:case 15:Uy(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Hy=v;break e}Hy=i.return}}var b=e.current;for(Hy=b;null!==Hy;){var y=(a=Hy).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Hy=y;else e:for(a=b;null!==Hy;){if(2048&(l=Hy).flags)try{switch(l.tag){case 0:case 11:case 15:Yy(9,l)}}catch(e){hS(l,l.return,e)}if(l===a){Hy=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Hy=x;break e}Hy=l.return}}if(yx=o,Tg(),Qp&&"function"==typeof Qp.onPostCommitFiberRoot)try{Qp.onPostCommitFiberRoot(Xp,e)}catch(e){}r=!0}return r}finally{pf=n,bx.transition=t}}return!1}function mS(e,t,n){e=Pv(e,t=oy(0,t=ey(n,t),1),1),t=Gx(),null!==e&&(cf(e,1,t),Yx(e,t))}function hS(e,t,n){if(3===e.tag)mS(e,e,n);else for(;null!==t;){if(3===t.tag){mS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qx||!qx.has(r))){t=Pv(t,e=iy(t,e=ey(n,e),1),1),e=Gx(),null!==t&&(cf(t,1,e),Yx(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gx(),e.pingedLanes|=e.suspendedLanes&n,xx===e&&(Ex&n)===n&&(4===Rx||3===Rx&&(130023424&Ex)===Ex&&500>Hp()-Ax?rS(e,0):Ix|=n),Yx(e,t)}function vS(e,t){0===t&&(1&e.mode?(t=nf,!(130023424&(nf<<=1))&&(nf=4194304)):t=1);var n=Gx();null!==(e=Lv(e,t))&&(cf(e,t,n),Yx(e,n))}function bS(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),vS(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Qc(314))}null!==r&&r.delete(t),vS(e,n)}function xS(e,t){return zp(e,t)}function SS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ES(e,t,n,r){return new SS(e,t,n,r)}function CS(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wS(e,t){var n=e.alternate;return null===n?((n=ES(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function RS(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)CS(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case hd:return LS(n.children,o,i,t);case gd:a=8,o|=8;break;case vd:return(e=ES(12,n,t,2|o)).elementType=vd,e.lanes=i,e;case Sd:return(e=ES(13,n,t,o)).elementType=Sd,e.lanes=i,e;case Ed:return(e=ES(19,n,t,o)).elementType=Ed,e.lanes=i,e;case Rd:return kS(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case bd:a=10;break e;case yd:a=9;break e;case xd:a=11;break e;case Cd:a=14;break e;case wd:a=16,r=null;break e}throw Error(Qc(130,null==e?e:typeof e,""))}return(t=ES(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function LS(e,t,n,r){return(e=ES(7,e,r,t)).lanes=n,e}function kS(e,t,n,r){return(e=ES(22,e,r,t)).elementType=Rd,e.lanes=n,e.stateNode={isHidden:!1},e}function MS(e,t,n){return(e=ES(6,e,null,t)).lanes=n,e}function IS(e,t,n){return(t=ES(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _S(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uf(0),this.expirationTimes=uf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function PS(e,t,n,r,o,i,a,l,s){return e=new _S(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ES(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mv(i),e}function AS(e){if(!e)return yg;e:{if(Tp(e=e._reactInternals)!==e||1!==e.tag)throw Error(Qc(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wg(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Qc(171))}if(1===e.tag){var n=e.type;if(wg(n))return kg(e,n,t)}return t}function DS(e,t,n,r,o,i,a,l,s){return(e=PS(n,r,!0,e,0,i,0,l,s)).context=AS(null),n=e.current,(i=_v(r=Gx(),o=Vx(n))).callback=null!=t?t:null,Pv(n,i,o),e.current.lanes=o,cf(e,o,r),Yx(e,r),e}function TS(e,t,n,r){var o=t.current,i=Gx(),a=Vx(o);return n=AS(n),null===t.context?t.context=n:t.pendingContext=n,(t=_v(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pv(o,t,a))&&(Ux(e,o,a,i),Av(e,o,a)),a}function OS(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function NS(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qS(e,t){NS(e,t),(e=e.alternate)&&NS(e,t)}mx=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Sg.current)cy=!0;else{if(!(e.lanes&n||128&t.flags))return cy=!1,function(e,t,n){switch(t.tag){case 3:xy(t),iv();break;case 5:Hv(t);break;case 1:wg(t.type)&&Mg(t);break;case 4:$v(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;bg(mv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(bg(Gv,1&Gv.current),t.flags|=128,null):n&t.child.childLanes?My(e,t,n):(bg(Gv,1&Gv.current),null!==(e=Oy(e,t,n))?e.sibling:null);bg(Gv,1&Gv.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Dy(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),bg(Gv,Gv.current),r)break;return null;case 22:case 23:return t.lanes=0,hy(e,t,n)}return Oy(e,t,n)}(e,t,n);cy=!!(131072&e.flags)}else cy=!1,Xg&&1048576&t.flags&&Gg(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ty(e,t),e=t.pendingProps;var o=Cg(t,xg.current);Sv(t,n),o=lb(null,t,r,e,o,n);var i=sb();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wg(r)?(i=!0,Mg(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mv(t),o.updater=Kb,t.stateNode=o,o._reactInternals=t,Zb(t,r,e,n),t=yy(null,t,r,!0,i,n)):(t.tag=0,Xg&&i&&Vg(t),dy(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ty(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return CS(e)?1:0;if(null!=e){if((e=e.$$typeof)===xd)return 11;if(e===Cd)return 14}return 2}(r),e=Ub(r,e),o){case 0:t=vy(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=py(null,t,r,e,n);break e;case 14:t=fy(null,t,r,Ub(r.type,e),n);break e}throw Error(Qc(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,vy(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 1:return r=t.type,o=t.pendingProps,by(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 3:e:{if(xy(t),null===e)throw Error(Qc(387));r=t.pendingProps,o=(i=t.memoizedState).element,Iv(e,t),Tv(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Sy(e,t,r,n,o=ey(Error(Qc(423)),t));break e}if(r!==o){t=Sy(e,t,r,n,o=ey(Error(Qc(424)),t));break e}for(Kg=tg(t.stateNode.containerInfo.firstChild),Yg=t,Xg=!0,Qg=null,n=fv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(iv(),r===o){t=Oy(e,t,n);break e}dy(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),null===e&&tv(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Yh(r,o)?a=null:null!==i&&Yh(r,i)&&(t.flags|=32),gy(e,t),dy(e,t,a,n),t.child;case 6:return null===e&&tv(t),null;case 13:return My(e,t,n);case 4:return $v(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=pv(t,null,r,n):dy(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,py(e,t,r,o=t.elementType===r?o:Ub(r,o),n);case 7:return dy(e,t,t.pendingProps,n),t.child;case 8:case 12:return dy(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,bg(mv,r._currentValue),r._currentValue=a,null!==i)if(Zm(i.value,a)){if(i.children===o.children&&!Sg.current){t=Oy(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=_v(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),xv(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(Qc(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xv(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}dy(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sv(t,n),r=r(o=Ev(o)),t.flags|=1,dy(e,t,r,n),t.child;case 14:return o=Ub(r=t.type,t.pendingProps),fy(e,t,r,o=Ub(r.type,o),n);case 15:return my(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ub(r,o),Ty(e,t),t.tag=1,wg(r)?(e=!0,Mg(t)):e=!1,Sv(t,n),Qb(t,r,o),Zb(t,r,o,n),yy(null,t,r,!0,e,n);case 19:return Dy(e,t,n);case 22:return hy(e,t,n)}throw Error(Qc(156,t.tag))};var FS="function"==typeof reportError?reportError:function(e){console.error(e)};function zS(e){this._internalRoot=e}function jS(e){this._internalRoot=e}function $S(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function BS(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function HS(){}function WS(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=OS(a);l.call(e)}}TS(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=OS(a);i.call(e)}}var a=DS(t,r,e,0,null,!1,0,"",HS);return e._reactRootContainer=a,e[ag]=a.current,Th(8===e.nodeType?e.parentNode:e),tS(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=OS(s);l.call(e)}}var s=PS(e,0,!1,null,0,!1,0,"",HS);return e._reactRootContainer=s,e[ag]=s.current,Th(8===e.nodeType?e.parentNode:e),tS((function(){TS(t,s,n,r)})),s}(n,t,e,o,r);return OS(a)}jS.prototype.render=zS.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Qc(409));TS(e,t,null,null)},jS.prototype.unmount=zS.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;tS((function(){TS(null,e,null,null)})),t[ag]=null}},jS.prototype.unstable_scheduleHydration=function(e){if(e){var t=vf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lf.length&&0!==t&&t<Lf[n].priority;n++);Lf.splice(n,0,e),0===n&&_f(e)}},mf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rf(t.pendingLanes);0!==n&&(df(t,1|n),Yx(t,Hp()),!(6&yx)&&(Dx=Hp()+500,Tg()))}break;case 13:tS((function(){var t=Lv(e,1);if(null!==t){var n=Gx();Ux(t,e,1,n)}})),qS(e,1)}},hf=function(e){if(13===e.tag){var t=Lv(e,134217728);if(null!==t)Ux(t,e,134217728,Gx());qS(e,134217728)}},gf=function(e){if(13===e.tag){var t=Vx(e),n=Lv(e,t);if(null!==n)Ux(n,e,t,Gx());qS(e,t)}},vf=function(){return pf},bf=function(e,t){var n=pf;try{return pf=e,t()}finally{pf=n}},mp=function(e,t,n){switch(t){case"input":if(Wd(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fg(r);if(!o)throw Error(Qc(90));zd(r),Wd(r,o)}}}break;case"textarea":Qd(e,n);break;case"select":null!=(t=n.value)&&Yd(e,!!n.multiple,t,!1)}},xp=eS,Sp=tS;var GS={usingClientEntryPoint:!1,Events:[dg,pg,fg,bp,yp,eS]},VS={findFiberByHostInstance:cg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},US={bundleType:VS.bundleType,version:VS.version,rendererPackageName:VS.rendererPackageName,rendererConfig:VS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qp(e))?null:e.stateNode},findFiberByHostInstance:VS.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var YS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!YS.isDisabled&&YS.supportsFiber)try{Xp=YS.inject(US),Qp=YS}catch(np){}}Gc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GS,Gc.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$S(t))throw Error(Qc(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:md,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Gc.createRoot=function(e,t){if(!$S(e))throw Error(Qc(299));var n=!1,r="",o=FS;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=PS(e,1,!1,null,0,n,0,r,o),e[ag]=t.current,Th(8===e.nodeType?e.parentNode:e),new zS(t)},Gc.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Qc(188));throw e=Object.keys(e).join(","),Error(Qc(268,e))}return e=null===(e=qp(t))?null:e.stateNode},Gc.flushSync=function(e){return tS(e)},Gc.hydrate=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!0,n)},Gc.hydrateRoot=function(e,t,n){if(!$S(e))throw Error(Qc(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=FS;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=DS(t,null,e,1,null!=n?n:null,o,0,i,a),e[ag]=t.current,Th(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jS(t)},Gc.render=function(e,t,n){if(!BS(t))throw Error(Qc(200));return WS(null,e,t,!1,n)},Gc.unmountComponentAtNode=function(e){if(!BS(e))throw Error(Qc(40));return!!e._reactRootContainer&&(tS((function(){WS(null,null,e,!1,(function(){e._reactRootContainer=null,e[ag]=null}))})),!0)},Gc.unstable_batchedUpdates=eS,Gc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!BS(n))throw Error(Qc(200));if(null==e||void 0===e._reactInternals)throw Error(Qc(38));return WS(e,t,n,!1,r)},Gc.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Wc.exports=Gc;var KS=Wc.exports,XS=n(KS),QS=!1,JS=Wn.createContext(null),ZS="unmounted",eE="exited",tE="entering",nE="entered",rE="exiting",oE=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=eE,r.appearStatus=tE):o=nE:o=t.unmountOnExit||t.mountOnEnter?ZS:eE,r.state={status:o},r.nextCallback=null,r}an(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ZS?{status:eE}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tE&&n!==nE&&(t=tE):n!==tE&&n!==nE||(t=rE)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tE){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:XS.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eE&&this.setState({status:ZS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[XS.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||QS?this.safeSetState({status:nE},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tE},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nE},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:XS.findDOMNode(this);t&&!QS?(this.props.onExit(r),this.safeSetState({status:rE},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:eE},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:eE},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:XS.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ZS)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=rn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Wn.createElement(JS.Provider,{value:null},"function"==typeof n?n(e,r):Wn.cloneElement(Wn.Children.only(n),r))},t}(Wn.Component);function iE(){}oE.contextType=JS,oE.propTypes={},oE.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iE,onEntering:iE,onEntered:iE,onExit:iE,onExiting:iE,onExited:iE},oE.UNMOUNTED=ZS,oE.EXITED=eE,oE.ENTERING=tE,oE.ENTERED=nE,oE.EXITING=rE;var aE=oE;function lE(e,t){var n=Object.create(null);return e&&Hn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Hn.isValidElement(e)?t(e):e}(e)})),n}function sE(e,t,n){return null!=n[t]?n[t]:e.props[t]}function uE(e,t,n){var r=lE(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Hn.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=Hn.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&Hn.isValidElement(u)&&(o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})):o[i]=Hn.cloneElement(a,{in:!1}):o[i]=Hn.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:sE(a,"exit",e),enter:sE(a,"enter",e)})}})),o}var cE=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dE=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}an(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,lE(n.children,(function(e){return Hn.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:sE(e,"appear",n),enter:sE(e,"enter",n),exit:sE(e,"exit",n)})}))):uE(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=lE(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Xt({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rn(e,["component","childFactory"]),o=this.state.contextValue,i=cE(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Wn.createElement(JS.Provider,{value:o},i):Wn.createElement(JS.Provider,{value:o},Wn.createElement(t,r,i))},t}(Wn.Component);dE.propTypes={},dE.defaultProps={component:"div",childFactory:function(e){return e}};var pE=dE;const fE=e=>e.scrollTop;function mE(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hE(e){return Wu("MuiPaper",e)}Gu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gE=["className","component","elevation","square","variant"],vE=bc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Lr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Lr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gu("#fff",yc(t.elevation))}, ${gu("#fff",yc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var bE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=kr(n,gE),u=Lr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hE,o)})(u);return Xs.jsx(vE,Lr({as:o,ownerState:u,className:Sc(c.root,r),ref:t},s))}));function yE(e){return"string"==typeof e}function xE(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function SE(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const EE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function CE(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=rn(e,EE),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Pl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Xt({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Xt({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=xE(Xt({},o,r)),l=SE(r),s=SE(o),u=t(a),c=Pl(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Xt({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Xt({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Xt({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||yE(e)?t:Xt({},t,{ownerState:Xt({},t.ownerState,n)})}(n,Xt({},s,{ref:il(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var wE=Gu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const RE=["center","classes","className"];let LE,kE,ME,IE,_E=e=>e;const PE=ha(LE||(LE=_E`
|
|
47
|
+
*/function mp(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 hp=new Set,gp={};function vp(e,t){bp(e,t),bp(e+"Capture",t)}function bp(e,t){for(gp[e]=t,e=0;e<t.length;e++)hp.add(t[e])}var yp=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),xp=Object.prototype.hasOwnProperty,Sp=/^[: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]*$/,Ep={},Cp={};function wp(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 Rp={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Rp[e]=new wp(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Rp[t]=new wp(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Rp[e]=new wp(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Rp[e]=new wp(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){Rp[e]=new wp(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Rp[e]=new wp(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Rp[e]=new wp(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Rp[e]=new wp(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Rp[e]=new wp(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Lp=/[\-:]([a-z])/g;function kp(e){return e[1].toUpperCase()}function Ip(e,t,n,r){var o=Rp.hasOwnProperty(t)?Rp[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!!xp.call(Cp,e)||!xp.call(Ep,e)&&(Sp.test(e)?Cp[e]=!0:(Ep[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(Lp,kp);Rp[t]=new wp(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(Lp,kp);Rp[t]=new wp(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(Lp,kp);Rp[t]=new wp(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Rp[e]=new wp(e,1,!1,e.toLowerCase(),null,!1,!1)})),Rp.xlinkHref=new wp("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Rp[e]=new wp(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Mp=pp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_p=Symbol.for("react.element"),Pp=Symbol.for("react.portal"),Ap=Symbol.for("react.fragment"),Dp=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Op=Symbol.for("react.provider"),Np=Symbol.for("react.context"),qp=Symbol.for("react.forward_ref"),Fp=Symbol.for("react.suspense"),zp=Symbol.for("react.suspense_list"),jp=Symbol.for("react.memo"),$p=Symbol.for("react.lazy"),Bp=Symbol.for("react.offscreen"),Hp=Symbol.iterator;function Wp(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Hp&&e[Hp]||e["@@iterator"])?e:null}var Gp,Vp=Object.assign;function Up(e){if(void 0===Gp)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Gp=t&&t[1]||""}return"\n"+Gp+e}var Yp=!1;function Kp(e,t){if(!e||Yp)return"";Yp=!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{Yp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Up(e):""}function Xp(e){switch(e.tag){case 5:return Up(e.type);case 16:return Up("Lazy");case 13:return Up("Suspense");case 19:return Up("SuspenseList");case 0:case 2:case 15:return e=Kp(e.type,!1);case 11:return e=Kp(e.type.render,!1);case 1:return e=Kp(e.type,!0);default:return""}}function Qp(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 Ap:return"Fragment";case Pp:return"Portal";case Tp:return"Profiler";case Dp:return"StrictMode";case Fp:return"Suspense";case zp:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Np:return(e.displayName||"Context")+".Consumer";case Op:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case jp:return null!==(t=e.displayName||null)?t:Qp(e.type)||"Memo";case $p:t=e._payload,e=e._init;try{return Qp(e(t))}catch(e){}}return null}function Jp(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 Qp(t);case 8:return t===Dp?"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 Zp(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ef(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function tf(e){e._valueTracker||(e._valueTracker=function(e){var t=ef(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 nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ef(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function rf(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 of(e,t){var n=t.checked;return Vp({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function af(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Zp(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 lf(e,t){null!=(t=t.checked)&&Ip(e,"checked",t,!1)}function sf(e,t){lf(e,t);var n=Zp(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")?cf(e,t.type,n):t.hasOwnProperty("defaultValue")&&cf(e,t.type,Zp(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function uf(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 cf(e,t,n){"number"===t&&rf(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var df=Array.isArray;function pf(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=""+Zp(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 ff(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(mp(91));return Vp({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mf(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(mp(92));if(df(n)){if(1<n.length)throw Error(mp(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Zp(n)}}function hf(e,t){var n=Zp(t.value),r=Zp(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 gf(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function vf(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 bf(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?vf(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var yf,xf,Sf=(xf=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((yf=yf||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yf.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 xf(e,t)}))}:xf);function Ef(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 Cf={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},wf=["Webkit","ms","Moz","O"];function Rf(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Cf.hasOwnProperty(e)&&Cf[e]?(""+t).trim():t+"px"}function Lf(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Rf(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Cf).forEach((function(e){wf.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cf[t]=Cf[e]}))}));var kf=Vp({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 If(e,t){if(t){if(kf[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(mp(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(mp(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(mp(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(mp(62))}}function Mf(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 _f=null;function Pf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Af=null,Df=null,Tf=null;function Of(e){if(e=Iv(e)){if("function"!=typeof Af)throw Error(mp(280));var t=e.stateNode;t&&(t=_v(t),Af(e.stateNode,e.type,t))}}function Nf(e){Df?Tf?Tf.push(e):Tf=[e]:Df=e}function qf(){if(Df){var e=Df,t=Tf;if(Tf=Df=null,Of(e),t)for(e=0;e<t.length;e++)Of(t[e])}}function Ff(e,t){return e(t)}function zf(){}var jf=!1;function $f(e,t,n){if(jf)return e(t,n);jf=!0;try{return Ff(e,t,n)}finally{jf=!1,(null!==Df||null!==Tf)&&(zf(),qf())}}function Bf(e,t){var n=e.stateNode;if(null===n)return null;var r=_v(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(mp(231,t,typeof n));return n}var Hf=!1;if(yp)try{var Wf={};Object.defineProperty(Wf,"passive",{get:function(){Hf=!0}}),window.addEventListener("test",Wf,Wf),window.removeEventListener("test",Wf,Wf)}catch(xf){Hf=!1}function Gf(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 Vf=!1,Uf=null,Yf=!1,Kf=null,Xf={onError:function(e){Vf=!0,Uf=e}};function Qf(e,t,n,r,o,i,a,l,s){Vf=!1,Uf=null,Gf.apply(Xf,arguments)}function Jf(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 Zf(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 em(e){if(Jf(e)!==e)throw Error(mp(188))}function tm(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Jf(e)))throw Error(mp(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 em(o),e;if(i===r)return em(o),t;i=i.sibling}throw Error(mp(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(mp(189))}}if(n.alternate!==r)throw Error(mp(190))}if(3!==n.tag)throw Error(mp(188));return n.stateNode.current===n?e:t}(e),null!==e?nm(e):null}function nm(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=nm(e);if(null!==t)return t;e=e.sibling}return null}var rm=fp.unstable_scheduleCallback,om=fp.unstable_cancelCallback,im=fp.unstable_shouldYield,am=fp.unstable_requestPaint,lm=fp.unstable_now,sm=fp.unstable_getCurrentPriorityLevel,um=fp.unstable_ImmediatePriority,cm=fp.unstable_UserBlockingPriority,dm=fp.unstable_NormalPriority,pm=fp.unstable_LowPriority,fm=fp.unstable_IdlePriority,mm=null,hm=null;var gm=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(vm(e)/bm|0)|0},vm=Math.log,bm=Math.LN2;var ym=64,xm=4194304;function Sm(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 Em(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=Sm(l):0!==(i&=a)&&(r=Sm(i))}else 0!==(a=n&~o)?r=Sm(a):0!==i&&(r=Sm(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-gm(t)),r|=e[n],t&=~o;return r}function Cm(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 wm(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rm(){var e=ym;return!(4194240&(ym<<=1))&&(ym=64),e}function Lm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function km(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-gm(t)]=n}function Im(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gm(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Mm=0;function _m(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Pm,Am,Dm,Tm,Om,Nm=!1,qm=[],Fm=null,zm=null,jm=null,$m=new Map,Bm=new Map,Hm=[],Wm="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 Gm(e,t){switch(e){case"focusin":case"focusout":Fm=null;break;case"dragenter":case"dragleave":zm=null;break;case"mouseover":case"mouseout":jm=null;break;case"pointerover":case"pointerout":$m.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bm.delete(t.pointerId)}}function Vm(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=Iv(t))&&Am(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Um(e){var t=kv(e.target);if(null!==t){var n=Jf(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Zf(n)))return e.blockedOn=t,void Om(e.priority,(function(){Dm(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 Ym(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ih(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Iv(n))&&Am(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_f=r,n.target.dispatchEvent(r),_f=null,t.shift()}return!0}function Km(e,t,n){Ym(e)&&n.delete(t)}function Xm(){Nm=!1,null!==Fm&&Ym(Fm)&&(Fm=null),null!==zm&&Ym(zm)&&(zm=null),null!==jm&&Ym(jm)&&(jm=null),$m.forEach(Km),Bm.forEach(Km)}function Qm(e,t){e.blockedOn===t&&(e.blockedOn=null,Nm||(Nm=!0,fp.unstable_scheduleCallback(fp.unstable_NormalPriority,Xm)))}function Jm(e){function t(t){return Qm(t,e)}if(0<qm.length){Qm(qm[0],e);for(var n=1;n<qm.length;n++){var r=qm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Fm&&Qm(Fm,e),null!==zm&&Qm(zm,e),null!==jm&&Qm(jm,e),$m.forEach(t),Bm.forEach(t),n=0;n<Hm.length;n++)(r=Hm[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Hm.length&&null===(n=Hm[0]).blockedOn;)Um(n),null===n.blockedOn&&Hm.shift()}var Zm=Mp.ReactCurrentBatchConfig,eh=!0;function th(e,t,n,r){var o=Mm,i=Zm.transition;Zm.transition=null;try{Mm=1,rh(e,t,n,r)}finally{Mm=o,Zm.transition=i}}function nh(e,t,n,r){var o=Mm,i=Zm.transition;Zm.transition=null;try{Mm=4,rh(e,t,n,r)}finally{Mm=o,Zm.transition=i}}function rh(e,t,n,r){if(eh){var o=ih(e,t,n,r);if(null===o)Zg(e,t,r,oh,n),Gm(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Fm=Vm(Fm,e,t,n,r,o),!0;case"dragenter":return zm=Vm(zm,e,t,n,r,o),!0;case"mouseover":return jm=Vm(jm,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return $m.set(i,Vm($m.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Bm.set(i,Vm(Bm.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Gm(e,r),4&t&&-1<Wm.indexOf(e)){for(;null!==o;){var i=Iv(o);if(null!==i&&Pm(i),null===(i=ih(e,t,n,r))&&Zg(e,t,r,oh,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Zg(e,t,r,null,n)}}var oh=null;function ih(e,t,n,r){if(oh=null,null!==(e=kv(e=Pf(r))))if(null===(t=Jf(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Zf(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 oh=e,null}function ah(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(sm()){case um:return 1;case cm:return 4;case dm:case pm:return 16;case fm:return 536870912;default:return 16}default:return 16}}var lh=null,sh=null,uh=null;function ch(){if(uh)return uh;var e,t,n=sh,r=n.length,o="value"in lh?lh.value:lh.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 uh=o.slice(e,1<t?1-t:void 0)}function dh(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 ph(){return!0}function fh(){return!1}function mh(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)?ph:fh,this.isPropagationStopped=fh,this}return Vp(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=ph)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ph)},persist:function(){},isPersistent:ph}),t}var hh,gh,vh,bh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yh=mh(bh),xh=Vp({},bh,{view:0,detail:0}),Sh=mh(xh),Eh=Vp({},xh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Th,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!==vh&&(vh&&"mousemove"===e.type?(hh=e.screenX-vh.screenX,gh=e.screenY-vh.screenY):gh=hh=0,vh=e),hh)},movementY:function(e){return"movementY"in e?e.movementY:gh}}),Ch=mh(Eh),wh=mh(Vp({},Eh,{dataTransfer:0})),Rh=mh(Vp({},xh,{relatedTarget:0})),Lh=mh(Vp({},bh,{animationName:0,elapsedTime:0,pseudoElement:0})),kh=Vp({},bh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ih=mh(kh),Mh=mh(Vp({},bh,{data:0})),_h={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ph={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"},Ah={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ah[e])&&!!t[e]}function Th(){return Dh}var Oh=Vp({},xh,{key:function(e){if(e.key){var t=_h[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=dh(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ph[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Th,charCode:function(e){return"keypress"===e.type?dh(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?dh(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nh=mh(Oh),qh=mh(Vp({},Eh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fh=mh(Vp({},xh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Th})),zh=mh(Vp({},bh,{propertyName:0,elapsedTime:0,pseudoElement:0})),jh=Vp({},Eh,{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}),$h=mh(jh),Bh=[9,13,27,32],Hh=yp&&"CompositionEvent"in window,Wh=null;yp&&"documentMode"in document&&(Wh=document.documentMode);var Gh=yp&&"TextEvent"in window&&!Wh,Vh=yp&&(!Hh||Wh&&8<Wh&&11>=Wh),Uh=String.fromCharCode(32),Yh=!1;function Kh(e,t){switch(e){case"keyup":return-1!==Bh.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Qh=!1;var Jh={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 Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Jh[e.type]:"textarea"===t}function eg(e,t,n,r){Nf(r),0<(t=tv(t,"onChange")).length&&(n=new yh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tg=null,ng=null;function rg(e){Ug(e,0)}function og(e){if(nf(Mv(e)))return e}function ig(e,t){if("change"===e)return t}var ag=!1;if(yp){var lg;if(yp){var sg="oninput"in document;if(!sg){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),sg="function"==typeof ug.oninput}lg=sg}else lg=!1;ag=lg&&(!document.documentMode||9<document.documentMode)}function cg(){tg&&(tg.detachEvent("onpropertychange",dg),ng=tg=null)}function dg(e){if("value"===e.propertyName&&og(ng)){var t=[];eg(t,ng,e,Pf(e)),$f(rg,t)}}function pg(e,t,n){"focusin"===e?(cg(),ng=n,(tg=t).attachEvent("onpropertychange",dg)):"focusout"===e&&cg()}function fg(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return og(ng)}function mg(e,t){if("click"===e)return og(t)}function hg(e,t){if("input"===e||"change"===e)return og(t)}var gg="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function vg(e,t){if(gg(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(!xp.call(t,o)||!gg(e[o],t[o]))return!1}return!0}function bg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yg(e,t){var n,r=bg(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=bg(r)}}function xg(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xg(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Sg(){for(var e=window,t=rf();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=rf((e=t.contentWindow).document)}return t}function Eg(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 Cg(e){var t=Sg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xg(n.ownerDocument.documentElement,n)){if(null!==r&&Eg(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=yg(n,i);var a=yg(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 wg=yp&&"documentMode"in document&&11>=document.documentMode,Rg=null,Lg=null,kg=null,Ig=!1;function Mg(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ig||null==Rg||Rg!==rf(r)||("selectionStart"in(r=Rg)&&Eg(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},kg&&vg(kg,r)||(kg=r,0<(r=tv(Lg,"onSelect")).length&&(t=new yh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Rg)))}function _g(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pg={animationend:_g("Animation","AnimationEnd"),animationiteration:_g("Animation","AnimationIteration"),animationstart:_g("Animation","AnimationStart"),transitionend:_g("Transition","TransitionEnd")},Ag={},Dg={};function Tg(e){if(Ag[e])return Ag[e];if(!Pg[e])return e;var t,n=Pg[e];for(t in n)if(n.hasOwnProperty(t)&&t in Dg)return Ag[e]=n[t];return e}yp&&(Dg=document.createElement("div").style,"AnimationEvent"in window||(delete Pg.animationend.animation,delete Pg.animationiteration.animation,delete Pg.animationstart.animation),"TransitionEvent"in window||delete Pg.transitionend.transition);var Og=Tg("animationend"),Ng=Tg("animationiteration"),qg=Tg("animationstart"),Fg=Tg("transitionend"),zg=new Map,jg="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 $g(e,t){zg.set(e,t),vp(t,[e])}for(var Bg=0;Bg<jg.length;Bg++){var Hg=jg[Bg];$g(Hg.toLowerCase(),"on"+(Hg[0].toUpperCase()+Hg.slice(1)))}$g(Og,"onAnimationEnd"),$g(Ng,"onAnimationIteration"),$g(qg,"onAnimationStart"),$g("dblclick","onDoubleClick"),$g("focusin","onFocus"),$g("focusout","onBlur"),$g(Fg,"onTransitionEnd"),bp("onMouseEnter",["mouseout","mouseover"]),bp("onMouseLeave",["mouseout","mouseover"]),bp("onPointerEnter",["pointerout","pointerover"]),bp("onPointerLeave",["pointerout","pointerover"]),vp("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vp("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vp("onBeforeInput",["compositionend","keypress","textInput","paste"]),vp("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vp("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vp("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wg="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(" "),Gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wg));function Vg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Qf.apply(this,arguments),Vf){if(!Vf)throw Error(mp(198));var u=Uf;Vf=!1,Uf=null,Yf||(Yf=!0,Kf=u)}}(r,t,void 0,e),e.currentTarget=null}function Ug(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;Vg(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;Vg(o,l,u),i=s}}}if(Yf)throw e=Kf,Yf=!1,Kf=null,e}function Yg(e,t){var n=t[wv];void 0===n&&(n=t[wv]=new Set);var r=e+"__bubble";n.has(r)||(Jg(t,e,2,!1),n.add(r))}function Kg(e,t,n){var r=0;t&&(r|=4),Jg(n,e,r,t)}var Xg="_reactListening"+Math.random().toString(36).slice(2);function Qg(e){if(!e[Xg]){e[Xg]=!0,hp.forEach((function(t){"selectionchange"!==t&&(Gg.has(t)||Kg(t,!1,e),Kg(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Xg]||(t[Xg]=!0,Kg("selectionchange",!1,t))}}function Jg(e,t,n,r){switch(ah(t)){case 1:var o=th;break;case 4:o=nh;break;default:o=rh}n=o.bind(null,t,n,e),o=void 0,!Hf||"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 Zg(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=kv(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}$f((function(){var r=i,o=Pf(n),a=[];e:{var l=zg.get(e);if(void 0!==l){var s=yh,u=e;switch(e){case"keypress":if(0===dh(n))break e;case"keydown":case"keyup":s=Nh;break;case"focusin":u="focus",s=Rh;break;case"focusout":u="blur",s=Rh;break;case"beforeblur":case"afterblur":s=Rh;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=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Fh;break;case Og:case Ng:case qg:s=Lh;break;case Fg:s=zh;break;case"scroll":s=Sh;break;case"wheel":s=$h;break;case"copy":case"cut":case"paste":s=Ih;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=qh}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Bf(m,p))&&c.push(ev(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===_f||!(u=n.relatedTarget||n.fromElement)||!kv(u)&&!u[Cv])&&(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)?kv(u):null)&&(u!==(d=Jf(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=Ch,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=qh,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Mv(s),f=null==u?l:Mv(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,kv(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=nv(f))m++;for(f=0,h=p;h;h=nv(h))f++;for(;0<m-f;)c=nv(c),m--;for(;0<f-m;)p=nv(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=nv(c),p=nv(p)}c=null}else c=null;null!==s&&rv(a,l,s,c,!1),null!==u&&null!==d&&rv(a,d,u,c,!0)}if("select"===(s=(l=r?Mv(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=ig;else if(Zh(l))if(ag)g=hg;else{g=fg;var v=pg}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=mg);switch(g&&(g=g(e,r))?eg(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&cf(l,"number",l.value)),v=r?Mv(r):window,e){case"focusin":(Zh(v)||"true"===v.contentEditable)&&(Rg=v,Lg=r,kg=null);break;case"focusout":kg=Lg=Rg=null;break;case"mousedown":Ig=!0;break;case"contextmenu":case"mouseup":case"dragend":Ig=!1,Mg(a,n,o);break;case"selectionchange":if(wg)break;case"keydown":case"keyup":Mg(a,n,o)}var b;if(Hh)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 Qh?Kh(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Vh&&"ko"!==n.locale&&(Qh||"onCompositionStart"!==y?"onCompositionEnd"===y&&Qh&&(b=ch()):(sh="value"in(lh=o)?lh.value:lh.textContent,Qh=!0)),0<(v=tv(r,y)).length&&(y=new Mh(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Xh(n))&&(y.data=b))),(b=Gh?function(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return 32!==t.which?null:(Yh=!0,Uh);case"textInput":return(e=t.data)===Uh&&Yh?null:e;default:return null}}(e,n):function(e,t){if(Qh)return"compositionend"===e||!Hh&&Kh(e,t)?(e=ch(),uh=sh=lh=null,Qh=!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 Vh&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=tv(r,"onBeforeInput")).length&&(o=new Mh("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Ug(a,t)}))}function ev(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tv(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=Bf(e,n))&&r.unshift(ev(e,i,o)),null!=(i=Bf(e,t))&&r.push(ev(e,i,o))),e=e.return}return r}function nv(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function rv(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=Bf(n,i))&&a.unshift(ev(n,s,l)):o||null!=(s=Bf(n,i))&&a.push(ev(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ov=/\r\n?/g,iv=/\u0000|\uFFFD/g;function av(e){return("string"==typeof e?e:""+e).replace(ov,"\n").replace(iv,"")}function lv(e,t,n){if(t=av(t),av(e)!==t&&n)throw Error(mp(425))}function sv(){}var uv=null,cv=null;function dv(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 pv="function"==typeof setTimeout?setTimeout:void 0,fv="function"==typeof clearTimeout?clearTimeout:void 0,mv="function"==typeof Promise?Promise:void 0,hv="function"==typeof queueMicrotask?queueMicrotask:void 0!==mv?function(e){return mv.resolve(null).then(e).catch(gv)}:pv;function gv(e){setTimeout((function(){throw e}))}function vv(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 Jm(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Jm(t)}function bv(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 yv(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 xv=Math.random().toString(36).slice(2),Sv="__reactFiber$"+xv,Ev="__reactProps$"+xv,Cv="__reactContainer$"+xv,wv="__reactEvents$"+xv,Rv="__reactListeners$"+xv,Lv="__reactHandles$"+xv;function kv(e){var t=e[Sv];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cv]||n[Sv]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=yv(e);null!==e;){if(n=e[Sv])return n;e=yv(e)}return t}n=(e=n).parentNode}return null}function Iv(e){return!(e=e[Sv]||e[Cv])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mv(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(mp(33))}function _v(e){return e[Ev]||null}var Pv=[],Av=-1;function Dv(e){return{current:e}}function Tv(e){0>Av||(e.current=Pv[Av],Pv[Av]=null,Av--)}function Ov(e,t){Av++,Pv[Av]=e.current,e.current=t}var Nv={},qv=Dv(Nv),Fv=Dv(!1),zv=Nv;function jv(e,t){var n=e.type.contextTypes;if(!n)return Nv;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 $v(e){return null!=(e=e.childContextTypes)}function Bv(){Tv(Fv),Tv(qv)}function Hv(e,t,n){if(qv.current!==Nv)throw Error(mp(168));Ov(qv,t),Ov(Fv,n)}function Wv(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(mp(108,Jp(e)||"Unknown",o));return Vp({},n,r)}function Gv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nv,zv=qv.current,Ov(qv,e),Ov(Fv,Fv.current),!0}function Vv(e,t,n){var r=e.stateNode;if(!r)throw Error(mp(169));n?(e=Wv(e,t,zv),r.__reactInternalMemoizedMergedChildContext=e,Tv(Fv),Tv(qv),Ov(qv,e)):Tv(Fv),Ov(Fv,n)}var Uv=null,Yv=!1,Kv=!1;function Xv(e){null===Uv?Uv=[e]:Uv.push(e)}function Qv(){if(!Kv&&null!==Uv){Kv=!0;var e=0,t=Mm;try{var n=Uv;for(Mm=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uv=null,Yv=!1}catch(t){throw null!==Uv&&(Uv=Uv.slice(e+1)),rm(um,Qv),t}finally{Mm=t,Kv=!1}}return null}var Jv=[],Zv=0,eb=null,tb=0,nb=[],rb=0,ob=null,ib=1,ab="";function lb(e,t){Jv[Zv++]=tb,Jv[Zv++]=eb,eb=e,tb=t}function sb(e,t,n){nb[rb++]=ib,nb[rb++]=ab,nb[rb++]=ob,ob=e;var r=ib;e=ab;var o=32-gm(r)-1;r&=~(1<<o),n+=1;var i=32-gm(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ib=1<<32-gm(t)+o|n<<o|r,ab=i+e}else ib=1<<i|n<<o|r,ab=e}function ub(e){null!==e.return&&(lb(e,1),sb(e,1,0))}function cb(e){for(;e===eb;)eb=Jv[--Zv],Jv[Zv]=null,tb=Jv[--Zv],Jv[Zv]=null;for(;e===ob;)ob=nb[--rb],nb[rb]=null,ab=nb[--rb],nb[rb]=null,ib=nb[--rb],nb[rb]=null}var db=null,pb=null,fb=!1,mb=null;function hb(e,t){var n=zE(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 gb(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,db=e,pb=bv(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,db=e,pb=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ob?{id:ib,overflow:ab}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=zE(18,null,null,0)).stateNode=t,n.return=e,e.child=n,db=e,pb=null,!0);default:return!1}}function vb(e){return!(!(1&e.mode)||128&e.flags)}function bb(e){if(fb){var t=pb;if(t){var n=t;if(!gb(e,t)){if(vb(e))throw Error(mp(418));t=bv(n.nextSibling);var r=db;t&&gb(e,t)?hb(r,n):(e.flags=-4097&e.flags|2,fb=!1,db=e)}}else{if(vb(e))throw Error(mp(418));e.flags=-4097&e.flags|2,fb=!1,db=e}}}function yb(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;db=e}function xb(e){if(e!==db)return!1;if(!fb)return yb(e),fb=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!dv(e.type,e.memoizedProps)),t&&(t=pb)){if(vb(e))throw Sb(),Error(mp(418));for(;t;)hb(e,t),t=bv(t.nextSibling)}if(yb(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(mp(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){pb=bv(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}pb=null}}else pb=db?bv(e.stateNode.nextSibling):null;return!0}function Sb(){for(var e=pb;e;)e=bv(e.nextSibling)}function Eb(){pb=db=null,fb=!1}function Cb(e){null===mb?mb=[e]:mb.push(e)}var wb=Mp.ReactCurrentBatchConfig;function Rb(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(mp(309));var r=n.stateNode}if(!r)throw Error(mp(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(mp(284));if(!n._owner)throw Error(mp(290,e))}return e}function Lb(e,t){throw e=Object.prototype.toString.call(t),Error(mp(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kb(e){return(0,e._init)(e._payload)}function Ib(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=$E(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=GE(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===Ap?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===$p&&kb(i)===t.type)?((r=o(t,n.props)).ref=Rb(e,t,n),r.return=e,r):((r=BE(n.type,n.key,n.props,null,e.mode,r)).ref=Rb(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=VE(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=HE(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=GE(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _p:return(n=BE(t.type,t.key,t.props,null,e.mode,n)).ref=Rb(e,null,t),n.return=e,n;case Pp:return(t=VE(t,e.mode,n)).return=e,t;case $p:return d(e,(0,t._init)(t._payload),n)}if(df(t)||Wp(t))return(t=HE(t,e.mode,n,null)).return=e,t;Lb(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 _p:return n.key===o?s(e,t,n,r):null;case Pp:return n.key===o?u(e,t,n,r):null;case $p:return p(e,t,(o=n._init)(n._payload),r)}if(df(n)||Wp(n))return null!==o?null:c(e,t,n,r,null);Lb(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 _p:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Pp:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $p:return f(e,t,n,(0,r._init)(r._payload),o)}if(df(r)||Wp(r))return c(t,e=e.get(n)||null,r,o,null);Lb(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),fb&&lb(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return fb&&lb(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),fb&&lb(o,h),u}function h(o,a,l,s){var u=Wp(l);if("function"!=typeof u)throw Error(mp(150));if(null==(l=u.call(l)))throw Error(mp(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),fb&&lb(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return fb&&lb(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),fb&&lb(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Ap&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case _p:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Ap){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===$p&&kb(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Rb(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Ap?((i=HE(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=BE(l.type,l.key,l.props,null,r.mode,s)).ref=Rb(r,i,l),s.return=r,r=s)}return a(r);case Pp: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=VE(l,r.mode,s)).return=r,r=i}return a(r);case $p:return e(r,i,(c=l._init)(l._payload),s)}if(df(l))return m(r,i,l,s);if(Wp(l))return h(r,i,l,s);Lb(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=GE(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Mb=Ib(!0),_b=Ib(!1),Pb=Dv(null),Ab=null,Db=null,Tb=null;function Ob(){Tb=Db=Ab=null}function Nb(e){var t=Pb.current;Tv(Pb),e._currentValue=t}function qb(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 Fb(e,t){Ab=e,Tb=Db=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(kx=!0),e.firstContext=null)}function zb(e){var t=e._currentValue;if(Tb!==e)if(e={context:e,memoizedValue:t,next:null},null===Db){if(null===Ab)throw Error(mp(308));Db=e,Ab.dependencies={lanes:0,firstContext:e}}else Db=Db.next=e;return t}var jb=null;function $b(e){null===jb?jb=[e]:jb.push(e)}function Bb(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,$b(t)):(n.next=o.next,o.next=n),t.interleaved=n,Hb(e,r)}function Hb(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 Wb=!1;function Gb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vb(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 Ub(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yb(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&NS){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Hb(e,n)}return null===(o=r.interleaved)?(t.next=t,$b(r)):(t.next=o.next,o.next=t),r.interleaved=t,Hb(e,n)}function Kb(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Im(e,n)}}function Xb(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 Qb(e,t,n,r){var o=e.updateQueue;Wb=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Vp({},d,p);break e;case 2:Wb=!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);WS|=a,e.lanes=a,e.memoizedState=d}}function Jb(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(mp(191,o));o.call(r)}}}var Zb={},ey=Dv(Zb),ty=Dv(Zb),ny=Dv(Zb);function ry(e){if(e===Zb)throw Error(mp(174));return e}function oy(e,t){switch(Ov(ny,t),Ov(ty,e),Ov(ey,Zb),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bf(null,"");break;default:t=bf(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Tv(ey),Ov(ey,t)}function iy(){Tv(ey),Tv(ty),Tv(ny)}function ay(e){ry(ny.current);var t=ry(ey.current),n=bf(t,e.type);t!==n&&(Ov(ty,e),Ov(ey,n))}function ly(e){ty.current===e&&(Tv(ey),Tv(ty))}var sy=Dv(0);function uy(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 cy=[];function dy(){for(var e=0;e<cy.length;e++)cy[e]._workInProgressVersionPrimary=null;cy.length=0}var py=Mp.ReactCurrentDispatcher,fy=Mp.ReactCurrentBatchConfig,my=0,hy=null,gy=null,vy=null,by=!1,yy=!1,xy=0,Sy=0;function Ey(){throw Error(mp(321))}function Cy(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gg(e[n],t[n]))return!1;return!0}function wy(e,t,n,r,o,i){if(my=i,hy=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,py.current=null===e||null===e.memoizedState?lx:sx,e=n(r,o),yy){i=0;do{if(yy=!1,xy=0,25<=i)throw Error(mp(301));i+=1,vy=gy=null,t.updateQueue=null,py.current=ux,e=n(r,o)}while(yy)}if(py.current=ax,t=null!==gy&&null!==gy.next,my=0,vy=gy=hy=null,by=!1,t)throw Error(mp(300));return e}function Ry(){var e=0!==xy;return xy=0,e}function Ly(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vy?hy.memoizedState=vy=e:vy=vy.next=e,vy}function ky(){if(null===gy){var e=hy.alternate;e=null!==e?e.memoizedState:null}else e=gy.next;var t=null===vy?hy.memoizedState:vy.next;if(null!==t)vy=t,gy=e;else{if(null===e)throw Error(mp(310));e={memoizedState:(gy=e).memoizedState,baseState:gy.baseState,baseQueue:gy.baseQueue,queue:gy.queue,next:null},null===vy?hy.memoizedState=vy=e:vy=vy.next=e}return vy}function Iy(e,t){return"function"==typeof t?t(e):t}function My(e){var t=ky(),n=t.queue;if(null===n)throw Error(mp(311));n.lastRenderedReducer=e;var r=gy,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((my&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,hy.lanes|=c,WS|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,gg(r,t.memoizedState)||(kx=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,hy.lanes|=i,WS|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _y(e){var t=ky(),n=t.queue;if(null===n)throw Error(mp(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);gg(i,t.memoizedState)||(kx=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Py(){}function Ay(e,t){var n=hy,r=ky(),o=t(),i=!gg(r.memoizedState,o);if(i&&(r.memoizedState=o,kx=!0),r=r.queue,Wy(Oy.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==vy&&1&vy.memoizedState.tag){if(n.flags|=2048,zy(9,Ty.bind(null,n,r,o,t),void 0,null),null===qS)throw Error(mp(349));30&my||Dy(n,t,o)}return o}function Dy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hy.updateQueue)?(t={lastEffect:null,stores:null},hy.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ty(e,t,n,r){t.value=n,t.getSnapshot=r,Ny(t)&&qy(e)}function Oy(e,t,n){return n((function(){Ny(t)&&qy(e)}))}function Ny(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gg(e,n)}catch(e){return!0}}function qy(e){var t=Hb(e,1);null!==t&&cE(t,e,1,-1)}function Fy(e){var t=Ly();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Iy,lastRenderedState:e},t.queue=e,e=e.dispatch=nx.bind(null,hy,e),[t.memoizedState,e]}function zy(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hy.updateQueue)?(t={lastEffect:null,stores:null},hy.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 jy(){return ky().memoizedState}function $y(e,t,n,r){var o=Ly();hy.flags|=e,o.memoizedState=zy(1|t,n,void 0,void 0===r?null:r)}function By(e,t,n,r){var o=ky();r=void 0===r?null:r;var i=void 0;if(null!==gy){var a=gy.memoizedState;if(i=a.destroy,null!==r&&Cy(r,a.deps))return void(o.memoizedState=zy(t,n,i,r))}hy.flags|=e,o.memoizedState=zy(1|t,n,i,r)}function Hy(e,t){return $y(8390656,8,e,t)}function Wy(e,t){return By(2048,8,e,t)}function Gy(e,t){return By(4,2,e,t)}function Vy(e,t){return By(4,4,e,t)}function Uy(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 Yy(e,t,n){return n=null!=n?n.concat([e]):null,By(4,4,Uy.bind(null,t,e),n)}function Ky(){}function Xy(e,t){var n=ky();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Cy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qy(e,t){var n=ky();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Cy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jy(e,t,n){return 21&my?(gg(n,t)||(n=Rm(),hy.lanes|=n,WS|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kx=!0),e.memoizedState=n)}function Zy(e,t){var n=Mm;Mm=0!==n&&4>n?n:4,e(!0);var r=fy.transition;fy.transition={};try{e(!1),t()}finally{Mm=n,fy.transition=r}}function ex(){return ky().memoizedState}function tx(e,t,n){var r=uE(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rx(e))ox(t,n);else if(null!==(n=Bb(e,t,n,r))){cE(n,e,r,sE()),ix(n,t,r)}}function nx(e,t,n){var r=uE(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rx(e))ox(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,gg(l,a)){var s=t.interleaved;return null===s?(o.next=o,$b(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Bb(e,t,o,r))&&(cE(n,e,r,o=sE()),ix(n,t,r))}}function rx(e){var t=e.alternate;return e===hy||null!==t&&t===hy}function ox(e,t){yy=by=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ix(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Im(e,n)}}var ax={readContext:zb,useCallback:Ey,useContext:Ey,useEffect:Ey,useImperativeHandle:Ey,useInsertionEffect:Ey,useLayoutEffect:Ey,useMemo:Ey,useReducer:Ey,useRef:Ey,useState:Ey,useDebugValue:Ey,useDeferredValue:Ey,useTransition:Ey,useMutableSource:Ey,useSyncExternalStore:Ey,useId:Ey,unstable_isNewReconciler:!1},lx={readContext:zb,useCallback:function(e,t){return Ly().memoizedState=[e,void 0===t?null:t],e},useContext:zb,useEffect:Hy,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$y(4194308,4,Uy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $y(4194308,4,e,t)},useInsertionEffect:function(e,t){return $y(4,2,e,t)},useMemo:function(e,t){var n=Ly();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ly();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=tx.bind(null,hy,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ly().memoizedState=e},useState:Fy,useDebugValue:Ky,useDeferredValue:function(e){return Ly().memoizedState=e},useTransition:function(){var e=Fy(!1),t=e[0];return e=Zy.bind(null,e[1]),Ly().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hy,o=Ly();if(fb){if(void 0===n)throw Error(mp(407));n=n()}else{if(n=t(),null===qS)throw Error(mp(349));30&my||Dy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hy(Oy.bind(null,r,i,e),[e]),r.flags|=2048,zy(9,Ty.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ly(),t=qS.identifierPrefix;if(fb){var n=ab;t=":"+t+"R"+(n=(ib&~(1<<32-gm(ib)-1)).toString(32)+n),0<(n=xy++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Sy++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sx={readContext:zb,useCallback:Xy,useContext:zb,useEffect:Wy,useImperativeHandle:Yy,useInsertionEffect:Gy,useLayoutEffect:Vy,useMemo:Qy,useReducer:My,useRef:jy,useState:function(){return My(Iy)},useDebugValue:Ky,useDeferredValue:function(e){return Jy(ky(),gy.memoizedState,e)},useTransition:function(){return[My(Iy)[0],ky().memoizedState]},useMutableSource:Py,useSyncExternalStore:Ay,useId:ex,unstable_isNewReconciler:!1},ux={readContext:zb,useCallback:Xy,useContext:zb,useEffect:Wy,useImperativeHandle:Yy,useInsertionEffect:Gy,useLayoutEffect:Vy,useMemo:Qy,useReducer:_y,useRef:jy,useState:function(){return _y(Iy)},useDebugValue:Ky,useDeferredValue:function(e){var t=ky();return null===gy?t.memoizedState=e:Jy(t,gy.memoizedState,e)},useTransition:function(){return[_y(Iy)[0],ky().memoizedState]},useMutableSource:Py,useSyncExternalStore:Ay,useId:ex,unstable_isNewReconciler:!1};function cx(e,t){if(e&&e.defaultProps){for(var n in t=Vp({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function dx(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Vp({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var px={isMounted:function(e){return!!(e=e._reactInternals)&&Jf(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sE(),o=uE(e),i=Ub(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Yb(e,i,o))&&(cE(t,e,o,r),Kb(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sE(),o=uE(e),i=Ub(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Yb(e,i,o))&&(cE(t,e,o,r),Kb(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sE(),r=uE(e),o=Ub(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Yb(e,o,r))&&(cE(t,e,r,n),Kb(t,e,r))}};function fx(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!vg(n,r)||!vg(o,i))}function mx(e,t,n){var r=!1,o=Nv,i=t.contextType;return"object"==typeof i&&null!==i?i=zb(i):(o=$v(t)?zv:qv.current,i=(r=null!=(r=t.contextTypes))?jv(e,o):Nv),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=px,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function hx(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&&px.enqueueReplaceState(t,t.state,null)}function gx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Gb(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=zb(i):(i=$v(t)?zv:qv.current,o.context=jv(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(dx(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&&px.enqueueReplaceState(o,o.state,null),Qb(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function vx(e,t){try{var n="",r=t;do{n+=Xp(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 bx(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function yx(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var xx="function"==typeof WeakMap?WeakMap:Map;function Sx(e,t,n){(n=Ub(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){JS||(JS=!0,ZS=r),yx(0,t)},n}function Ex(e,t,n){(n=Ub(-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(){yx(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){yx(0,t),"function"!=typeof r&&(null===eE?eE=new Set([this]):eE.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Cx(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new xx;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=DE.bind(null,e,t,n),t.then(e,e))}function wx(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 Rx(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=Ub(-1,1)).tag=2,Yb(n,t,1))),n.lanes|=1),e)}var Lx=Mp.ReactCurrentOwner,kx=!1;function Ix(e,t,n,r){t.child=null===e?_b(t,null,n,r):Mb(t,e.child,n,r)}function Mx(e,t,n,r,o){n=n.render;var i=t.ref;return Fb(t,o),r=wy(e,t,n,r,i,o),n=Ry(),null===e||kx?(fb&&n&&ub(t),t.flags|=1,Ix(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jx(e,t,o))}function _x(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jE(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=BE(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Px(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:vg)(a,r)&&e.ref===t.ref)return Jx(e,t,o)}return t.flags|=1,(e=$E(i,r)).ref=t.ref,e.return=t,t.child=e}function Px(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(vg(i,r)&&e.ref===t.ref){if(kx=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Jx(e,t,o);131072&e.flags&&(kx=!0)}}return Tx(e,t,n,r,o)}function Ax(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,Ov($S,jS),jS|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ov($S,jS),jS|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ov($S,jS),jS|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ov($S,jS),jS|=r;return Ix(e,t,o,n),t.child}function Dx(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tx(e,t,n,r,o){var i=$v(n)?zv:qv.current;return i=jv(t,i),Fb(t,o),n=wy(e,t,n,r,i,o),r=Ry(),null===e||kx?(fb&&r&&ub(t),t.flags|=1,Ix(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jx(e,t,o))}function Ox(e,t,n,r,o){if($v(n)){var i=!0;Gv(t)}else i=!1;if(Fb(t,o),null===t.stateNode)Qx(e,t),mx(t,n,r),gx(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=zb(u):u=jv(t,u=$v(n)?zv:qv.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)&&hx(t,a,r,u),Wb=!1;var p=t.memoizedState;a.state=p,Qb(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Fv.current||Wb?("function"==typeof c&&(dx(t,n,c,r),s=t.memoizedState),(l=Wb||fx(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,Vb(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:cx(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=zb(s):s=jv(t,s=$v(n)?zv:qv.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)&&hx(t,a,r,s),Wb=!1,p=t.memoizedState,a.state=p,Qb(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Fv.current||Wb?("function"==typeof f&&(dx(t,n,f,r),m=t.memoizedState),(u=Wb||fx(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Nx(e,t,n,r,i,o)}function Nx(e,t,n,r,o,i){Dx(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Vv(t,n,!1),Jx(e,t,i);r=t.stateNode,Lx.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Mb(t,e.child,null,i),t.child=Mb(t,null,l,i)):Ix(e,t,l,i),t.memoizedState=r.state,o&&Vv(t,n,!0),t.child}function qx(e){var t=e.stateNode;t.pendingContext?Hv(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Hv(0,t.context,!1),oy(e,t.containerInfo)}function Fx(e,t,n,r,o){return Eb(),Cb(o),t.flags|=256,Ix(e,t,n,r),t.child}var zx,jx,$x,Bx,Hx={dehydrated:null,treeContext:null,retryLane:0};function Wx(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gx(e,t,n){var r,o=t.pendingProps,i=sy.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),Ov(sy,1&i),null===e)return bb(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=WE(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=HE(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Wx(n),t.memoizedState=Hx,e):Vx(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,Ux(e,t,a,r=bx(Error(mp(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=WE({mode:"visible",children:r.children},o,0,null),(i=HE(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Mb(t,e.child,null,a),t.child.memoizedState=Wx(a),t.memoizedState=Hx,i);if(!(1&t.mode))return Ux(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ux(e,t,a,r=bx(i=Error(mp(419)),r,void 0))}if(l=!!(a&e.childLanes),kx||l){if(null!==(r=qS)){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,Hb(e,o),cE(r,e,o,-1))}return CE(),Ux(e,t,a,r=bx(Error(mp(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=OE.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,pb=bv(o.nextSibling),db=t,fb=!0,mb=null,null!==e&&(nb[rb++]=ib,nb[rb++]=ab,nb[rb++]=ob,ib=e.id,ab=e.overflow,ob=t),t=Vx(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=$E(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=$E(r,a):(a=HE(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)?Wx(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Hx,o}return e=(a=e.child).sibling,o=$E(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 Vx(e,t){return(t=WE({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ux(e,t,n,r){return null!==r&&Cb(r),Mb(t,e.child,null,n),(e=Vx(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Yx(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),qb(e.return,t,n)}function Kx(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 Xx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ix(e,t,r.children,n),2&(r=sy.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&&Yx(e,n,t);else if(19===e.tag)Yx(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(Ov(sy,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===uy(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Kx(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===uy(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Kx(t,!0,n,null,i);break;case"together":Kx(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Qx(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jx(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),WS|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(mp(153));if(null!==t.child){for(n=$E(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$E(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zx(e,t){if(!fb)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 eS(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 tS(e,t,n){var r=t.pendingProps;switch(cb(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return eS(t),null;case 1:case 17:return $v(t.type)&&Bv(),eS(t),null;case 3:return r=t.stateNode,iy(),Tv(Fv),Tv(qv),dy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(xb(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==mb&&(mE(mb),mb=null))),jx(e,t),eS(t),null;case 5:ly(t);var o=ry(ny.current);if(n=t.type,null!==e&&null!=t.stateNode)$x(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(mp(166));return eS(t),null}if(e=ry(ey.current),xb(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Sv]=t,r[Ev]=i,e=!!(1&t.mode),n){case"dialog":Yg("cancel",r),Yg("close",r);break;case"iframe":case"object":case"embed":Yg("load",r);break;case"video":case"audio":for(o=0;o<Wg.length;o++)Yg(Wg[o],r);break;case"source":Yg("error",r);break;case"img":case"image":case"link":Yg("error",r),Yg("load",r);break;case"details":Yg("toggle",r);break;case"input":af(r,i),Yg("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Yg("invalid",r);break;case"textarea":mf(r,i),Yg("invalid",r)}for(var a in If(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&lv(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&lv(r.textContent,l,e),o=["children",""+l]):gp.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Yg("scroll",r)}switch(n){case"input":tf(r),uf(r,i,!0);break;case"textarea":tf(r),gf(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=sv)}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=vf(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[Sv]=t,e[Ev]=r,zx(e,t,!1,!1),t.stateNode=e;e:{switch(a=Mf(n,r),n){case"dialog":Yg("cancel",e),Yg("close",e),o=r;break;case"iframe":case"object":case"embed":Yg("load",e),o=r;break;case"video":case"audio":for(o=0;o<Wg.length;o++)Yg(Wg[o],e);o=r;break;case"source":Yg("error",e),o=r;break;case"img":case"image":case"link":Yg("error",e),Yg("load",e),o=r;break;case"details":Yg("toggle",e),o=r;break;case"input":af(e,r),o=of(e,r),Yg("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Vp({},r,{value:void 0}),Yg("invalid",e);break;case"textarea":mf(e,r),o=ff(e,r),Yg("invalid",e)}for(i in If(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Lf(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Sf(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Ef(e,s):"number"==typeof s&&Ef(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(gp.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Yg("scroll",e):null!=s&&Ip(e,i,s,a))}switch(n){case"input":tf(e),uf(e,r,!1);break;case"textarea":tf(e),gf(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Zp(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?pf(e,!!r.multiple,i,!1):null!=r.defaultValue&&pf(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=sv)}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 eS(t),null;case 6:if(e&&null!=t.stateNode)Bx(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(mp(166));if(n=ry(ny.current),ry(ey.current),xb(t)){if(r=t.stateNode,n=t.memoizedProps,r[Sv]=t,(i=r.nodeValue!==n)&&null!==(e=db))switch(e.tag){case 3:lv(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&lv(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sv]=t,t.stateNode=r}return eS(t),null;case 13:if(Tv(sy),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(fb&&null!==pb&&1&t.mode&&!(128&t.flags))Sb(),Eb(),t.flags|=98560,i=!1;else if(i=xb(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(mp(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(mp(317));i[Sv]=t}else Eb(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;eS(t),i=!1}else null!==mb&&(mE(mb),mb=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&sy.current?0===BS&&(BS=3):CE())),null!==t.updateQueue&&(t.flags|=4),eS(t),null);case 4:return iy(),jx(e,t),null===e&&Qg(t.stateNode.containerInfo),eS(t),null;case 10:return Nb(t.type._context),eS(t),null;case 19:if(Tv(sy),null===(i=t.memoizedState))return eS(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Zx(i,!1);else{if(0!==BS||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=uy(e))){for(t.flags|=128,Zx(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 Ov(sy,1&sy.current|2),t.child}e=e.sibling}null!==i.tail&&lm()>XS&&(t.flags|=128,r=!0,Zx(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=uy(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zx(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!fb)return eS(t),null}else 2*lm()-i.renderingStartTime>XS&&1073741824!==n&&(t.flags|=128,r=!0,Zx(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=lm(),t.sibling=null,n=sy.current,Ov(sy,r?1&n|2:1&n),t):(eS(t),null);case 22:case 23:return yE(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&jS)&&(eS(t),6&t.subtreeFlags&&(t.flags|=8192)):eS(t),null;case 24:case 25:return null}throw Error(mp(156,t.tag))}function nS(e,t){switch(cb(t),t.tag){case 1:return $v(t.type)&&Bv(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return iy(),Tv(Fv),Tv(qv),dy(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ly(t),null;case 13:if(Tv(sy),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(mp(340));Eb()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Tv(sy),null;case 4:return iy(),null;case 10:return Nb(t.type._context),null;case 22:case 23:return yE(),null;default:return null}}zx=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}},jx=function(){},$x=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ry(ey.current);var i,a=null;switch(n){case"input":o=of(e,o),r=of(e,r),a=[];break;case"select":o=Vp({},o,{value:void 0}),r=Vp({},r,{value:void 0}),a=[];break;case"textarea":o=ff(e,o),r=ff(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=sv)}for(u in If(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&&(gp.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&&(gp.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Yg("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)}},Bx=function(e,t,n,r){n!==r&&(t.flags|=4)};var rS=!1,oS=!1,iS="function"==typeof WeakSet?WeakSet:Set,aS=null;function lS(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){AE(e,t,n)}else n.current=null}function sS(e,t,n){try{n()}catch(n){AE(e,t,n)}}var uS=!1;function cS(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&&sS(t,n,i)}o=o.next}while(o!==r)}}function dS(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 pS(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 fS(e){var t=e.alternate;null!==t&&(e.alternate=null,fS(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Sv],delete t[Ev],delete t[wv],delete t[Rv],delete t[Lv])),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 mS(e){return 5===e.tag||3===e.tag||4===e.tag}function hS(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||mS(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 gS(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=sv));else if(4!==r&&null!==(e=e.child))for(gS(e,t,n),e=e.sibling;null!==e;)gS(e,t,n),e=e.sibling}function vS(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(vS(e,t,n),e=e.sibling;null!==e;)vS(e,t,n),e=e.sibling}var bS=null,yS=!1;function xS(e,t,n){for(n=n.child;null!==n;)SS(e,t,n),n=n.sibling}function SS(e,t,n){if(hm&&"function"==typeof hm.onCommitFiberUnmount)try{hm.onCommitFiberUnmount(mm,n)}catch(e){}switch(n.tag){case 5:oS||lS(n,t);case 6:var r=bS,o=yS;bS=null,xS(e,t,n),yS=o,null!==(bS=r)&&(yS?(e=bS,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):bS.removeChild(n.stateNode));break;case 18:null!==bS&&(yS?(e=bS,n=n.stateNode,8===e.nodeType?vv(e.parentNode,n):1===e.nodeType&&vv(e,n),Jm(e)):vv(bS,n.stateNode));break;case 4:r=bS,o=yS,bS=n.stateNode.containerInfo,yS=!0,xS(e,t,n),bS=r,yS=o;break;case 0:case 11:case 14:case 15:if(!oS&&(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)&&sS(n,t,a),o=o.next}while(o!==r)}xS(e,t,n);break;case 1:if(!oS&&(lS(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){AE(n,t,e)}xS(e,t,n);break;case 21:xS(e,t,n);break;case 22:1&n.mode?(oS=(r=oS)||null!==n.memoizedState,xS(e,t,n),oS=r):xS(e,t,n);break;default:xS(e,t,n)}}function ES(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new iS),t.forEach((function(t){var r=NE.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function CS(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:bS=l.stateNode,yS=!1;break e;case 3:case 4:bS=l.stateNode.containerInfo,yS=!0;break e}l=l.return}if(null===bS)throw Error(mp(160));SS(i,a,o),bS=null,yS=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){AE(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)wS(t,e),t=t.sibling}function wS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(CS(t,e),RS(e),4&r){try{cS(3,e,e.return),dS(3,e)}catch(t){AE(e,e.return,t)}try{cS(5,e,e.return)}catch(t){AE(e,e.return,t)}}break;case 1:CS(t,e),RS(e),512&r&&null!==n&&lS(n,n.return);break;case 5:if(CS(t,e),RS(e),512&r&&null!==n&&lS(n,n.return),32&e.flags){var o=e.stateNode;try{Ef(o,"")}catch(t){AE(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&&lf(o,i),Mf(l,a);var u=Mf(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?Lf(o,d):"dangerouslySetInnerHTML"===c?Sf(o,d):"children"===c?Ef(o,d):Ip(o,c,d,u)}switch(l){case"input":sf(o,i);break;case"textarea":hf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?pf(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?pf(o,!!i.multiple,i.defaultValue,!0):pf(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ev]=i}catch(t){AE(e,e.return,t)}}break;case 6:if(CS(t,e),RS(e),4&r){if(null===e.stateNode)throw Error(mp(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){AE(e,e.return,t)}}break;case 3:if(CS(t,e),RS(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Jm(t.containerInfo)}catch(t){AE(e,e.return,t)}break;case 4:default:CS(t,e),RS(e);break;case 13:CS(t,e),RS(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(KS=lm())),4&r&&ES(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(oS=(u=oS)||c,CS(t,e),oS=u):CS(t,e),RS(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(aS=e,c=e.child;null!==c;){for(d=aS=c;null!==aS;){switch(f=(p=aS).child,p.tag){case 0:case 11:case 14:case 15:cS(4,p,p.return);break;case 1:lS(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){AE(r,n,e)}}break;case 5:lS(p,p.return);break;case 22:if(null!==p.memoizedState){MS(d);continue}}null!==f?(f.return=p,aS=f):MS(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=Rf("display",a))}catch(t){AE(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){AE(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:CS(t,e),RS(e),4&r&&ES(e);case 21:}}function RS(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(mS(n)){var r=n;break e}n=n.return}throw Error(mp(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Ef(o,""),r.flags&=-33),vS(e,hS(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;gS(e,hS(e),i);break;default:throw Error(mp(161))}}catch(t){AE(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function LS(e,t,n){aS=e,kS(e)}function kS(e,t,n){for(var r=!!(1&e.mode);null!==aS;){var o=aS,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||rS;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||oS;l=rS;var u=oS;if(rS=a,(oS=s)&&!u)for(aS=o;null!==aS;)s=(a=aS).child,22===a.tag&&null!==a.memoizedState?_S(o):null!==s?(s.return=a,aS=s):_S(o);for(;null!==i;)aS=i,kS(i),i=i.sibling;aS=o,rS=l,oS=u}IS(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,aS=i):IS(e)}}function IS(e){for(;null!==aS;){var t=aS;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:oS||dS(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!oS)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:cx(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Jb(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}Jb(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&&Jm(d)}}}break;default:throw Error(mp(163))}oS||512&t.flags&&pS(t)}catch(e){AE(t,t.return,e)}}if(t===e){aS=null;break}if(null!==(n=t.sibling)){n.return=t.return,aS=n;break}aS=t.return}}function MS(e){for(;null!==aS;){var t=aS;if(t===e){aS=null;break}var n=t.sibling;if(null!==n){n.return=t.return,aS=n;break}aS=t.return}}function _S(e){for(;null!==aS;){var t=aS;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{dS(4,t)}catch(e){AE(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){AE(t,o,e)}}var i=t.return;try{pS(t)}catch(e){AE(t,i,e)}break;case 5:var a=t.return;try{pS(t)}catch(e){AE(t,a,e)}}}catch(e){AE(t,t.return,e)}if(t===e){aS=null;break}var l=t.sibling;if(null!==l){l.return=t.return,aS=l;break}aS=t.return}}var PS,AS=Math.ceil,DS=Mp.ReactCurrentDispatcher,TS=Mp.ReactCurrentOwner,OS=Mp.ReactCurrentBatchConfig,NS=0,qS=null,FS=null,zS=0,jS=0,$S=Dv(0),BS=0,HS=null,WS=0,GS=0,VS=0,US=null,YS=null,KS=0,XS=1/0,QS=null,JS=!1,ZS=null,eE=null,tE=!1,nE=null,rE=0,oE=0,iE=null,aE=-1,lE=0;function sE(){return 6&NS?lm():-1!==aE?aE:aE=lm()}function uE(e){return 1&e.mode?2&NS&&0!==zS?zS&-zS:null!==wb.transition?(0===lE&&(lE=Rm()),lE):0!==(e=Mm)?e:e=void 0===(e=window.event)?16:ah(e.type):1}function cE(e,t,n,r){if(50<oE)throw oE=0,iE=null,Error(mp(185));km(e,n,r),2&NS&&e===qS||(e===qS&&(!(2&NS)&&(GS|=n),4===BS&&hE(e,zS)),dE(e,r),1===n&&0===NS&&!(1&t.mode)&&(XS=lm()+500,Yv&&Qv()))}function dE(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-gm(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=Cm(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Em(e,e===qS?zS:0);if(0===r)null!==n&&om(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&om(n),1===t)0===e.tag?function(e){Yv=!0,Xv(e)}(gE.bind(null,e)):Xv(gE.bind(null,e)),hv((function(){!(6&NS)&&Qv()})),n=null;else{switch(_m(r)){case 1:n=um;break;case 4:n=cm;break;case 16:default:n=dm;break;case 536870912:n=fm}n=qE(n,pE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pE(e,t){if(aE=-1,lE=0,6&NS)throw Error(mp(327));var n=e.callbackNode;if(_E()&&e.callbackNode!==n)return null;var r=Em(e,e===qS?zS:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=wE(e,r);else{t=r;var o=NS;NS|=2;var i=EE();for(qS===e&&zS===t||(QS=null,XS=lm()+500,xE(e,t));;)try{LE();break}catch(t){SE(e,t)}Ob(),DS.current=i,NS=o,null!==FS?t=0:(qS=null,zS=0,t=BS)}if(0!==t){if(2===t&&(0!==(o=wm(e))&&(r=o,t=fE(e,o))),1===t)throw n=HS,xE(e,0),hE(e,r),dE(e,lm()),n;if(6===t)hE(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(!gg(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=wE(e,r),2===t&&(i=wm(e),0!==i&&(r=i,t=fE(e,i))),1!==t)))throw n=HS,xE(e,0),hE(e,r),dE(e,lm()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(mp(345));case 2:case 5:ME(e,YS,QS);break;case 3:if(hE(e,r),(130023424&r)===r&&10<(t=KS+500-lm())){if(0!==Em(e,0))break;if(((o=e.suspendedLanes)&r)!==r){sE(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=pv(ME.bind(null,e,YS,QS),t);break}ME(e,YS,QS);break;case 4:if(hE(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-gm(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=lm()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*AS(r/1960))-r)){e.timeoutHandle=pv(ME.bind(null,e,YS,QS),r);break}ME(e,YS,QS);break;default:throw Error(mp(329))}}}return dE(e,lm()),e.callbackNode===n?pE.bind(null,e):null}function fE(e,t){var n=US;return e.current.memoizedState.isDehydrated&&(xE(e,t).flags|=256),2!==(e=wE(e,t))&&(t=YS,YS=n,null!==t&&mE(t)),e}function mE(e){null===YS?YS=e:YS.push.apply(YS,e)}function hE(e,t){for(t&=~VS,t&=~GS,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gm(t),r=1<<n;e[n]=-1,t&=~r}}function gE(e){if(6&NS)throw Error(mp(327));_E();var t=Em(e,0);if(!(1&t))return dE(e,lm()),null;var n=wE(e,t);if(0!==e.tag&&2===n){var r=wm(e);0!==r&&(t=r,n=fE(e,r))}if(1===n)throw n=HS,xE(e,0),hE(e,t),dE(e,lm()),n;if(6===n)throw Error(mp(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ME(e,YS,QS),dE(e,lm()),null}function vE(e,t){var n=NS;NS|=1;try{return e(t)}finally{0===(NS=n)&&(XS=lm()+500,Yv&&Qv())}}function bE(e){null!==nE&&0===nE.tag&&!(6&NS)&&_E();var t=NS;NS|=1;var n=OS.transition,r=Mm;try{if(OS.transition=null,Mm=1,e)return e()}finally{Mm=r,OS.transition=n,!(6&(NS=t))&&Qv()}}function yE(){jS=$S.current,Tv($S)}function xE(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,fv(n)),null!==FS)for(n=FS.return;null!==n;){var r=n;switch(cb(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Bv();break;case 3:iy(),Tv(Fv),Tv(qv),dy();break;case 5:ly(r);break;case 4:iy();break;case 13:case 19:Tv(sy);break;case 10:Nb(r.type._context);break;case 22:case 23:yE()}n=n.return}if(qS=e,FS=e=$E(e.current,null),zS=jS=t,BS=0,HS=null,VS=GS=WS=0,YS=US=null,null!==jb){for(t=0;t<jb.length;t++)if(null!==(r=(n=jb[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}jb=null}return e}function SE(e,t){for(;;){var n=FS;try{if(Ob(),py.current=ax,by){for(var r=hy.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}by=!1}if(my=0,vy=gy=hy=null,yy=!1,xy=0,TS.current=null,null===n||null===n.return){BS=1,HS=t,FS=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=zS,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=wx(a);if(null!==f){f.flags&=-257,Rx(f,a,l,0,t),1&f.mode&&Cx(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){Cx(i,u,t),CE();break e}s=Error(mp(426))}else if(fb&&1&l.mode){var g=wx(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Rx(g,a,l,0,t),Cb(vx(s,l));break e}}i=s=vx(s,l),4!==BS&&(BS=2),null===US?US=[i]:US.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Xb(i,Sx(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!==eE&&eE.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Xb(i,Ex(i,l,t));break e}}i=i.return}while(null!==i)}IE(n)}catch(e){t=e,FS===n&&null!==n&&(FS=n=n.return);continue}break}}function EE(){var e=DS.current;return DS.current=ax,null===e?ax:e}function CE(){0!==BS&&3!==BS&&2!==BS||(BS=4),null===qS||!(268435455&WS)&&!(268435455&GS)||hE(qS,zS)}function wE(e,t){var n=NS;NS|=2;var r=EE();for(qS===e&&zS===t||(QS=null,xE(e,t));;)try{RE();break}catch(t){SE(e,t)}if(Ob(),NS=n,DS.current=r,null!==FS)throw Error(mp(261));return qS=null,zS=0,BS}function RE(){for(;null!==FS;)kE(FS)}function LE(){for(;null!==FS&&!im();)kE(FS)}function kE(e){var t=PS(e.alternate,e,jS);e.memoizedProps=e.pendingProps,null===t?IE(e):FS=t,TS.current=null}function IE(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=nS(n,t)))return n.flags&=32767,void(FS=n);if(null===e)return BS=6,void(FS=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=tS(n,t,jS)))return void(FS=n);if(null!==(t=t.sibling))return void(FS=t);FS=t=e}while(null!==t);0===BS&&(BS=5)}function ME(e,t,n){var r=Mm,o=OS.transition;try{OS.transition=null,Mm=1,function(e,t,n,r){do{_E()}while(null!==nE);if(6&NS)throw Error(mp(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(mp(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-gm(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===qS&&(FS=qS=null,zS=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||tE||(tE=!0,qE(dm,(function(){return _E(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=OS.transition,OS.transition=null;var a=Mm;Mm=1;var l=NS;NS|=4,TS.current=null,function(e,t){if(uv=eh,Eg(e=Sg())){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(cv={focusedElem:e,selectionRange:n},eh=!1,aS=t;null!==aS;)if(e=(t=aS).child,1028&t.subtreeFlags&&null!==e)e.return=t,aS=e;else for(;null!==aS;){t=aS;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:cx(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(mp(163))}}catch(e){AE(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aS=e;break}aS=t.return}m=uS,uS=!1}(e,n),wS(n,e),Cg(cv),eh=!!uv,cv=uv=null,e.current=n,LS(n),am(),NS=l,Mm=a,OS.transition=i}else e.current=n;if(tE&&(tE=!1,nE=e,rE=o),i=e.pendingLanes,0===i&&(eE=null),function(e){if(hm&&"function"==typeof hm.onCommitFiberRoot)try{hm.onCommitFiberRoot(mm,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),dE(e,lm()),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(JS)throw JS=!1,e=ZS,ZS=null,e;!!(1&rE)&&0!==e.tag&&_E(),i=e.pendingLanes,1&i?e===iE?oE++:(oE=0,iE=e):oE=0,Qv()}(e,t,n,r)}finally{OS.transition=o,Mm=r}return null}function _E(){if(null!==nE){var e=_m(rE),t=OS.transition,n=Mm;try{if(OS.transition=null,Mm=16>e?16:e,null===nE)var r=!1;else{if(e=nE,nE=null,rE=0,6&NS)throw Error(mp(331));var o=NS;for(NS|=4,aS=e.current;null!==aS;){var i=aS,a=i.child;if(16&aS.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(aS=u;null!==aS;){var c=aS;switch(c.tag){case 0:case 11:case 15:cS(8,c,i)}var d=c.child;if(null!==d)d.return=c,aS=d;else for(;null!==aS;){var p=(c=aS).sibling,f=c.return;if(fS(c),c===u){aS=null;break}if(null!==p){p.return=f,aS=p;break}aS=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}aS=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,aS=a;else e:for(;null!==aS;){if(2048&(i=aS).flags)switch(i.tag){case 0:case 11:case 15:cS(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,aS=v;break e}aS=i.return}}var b=e.current;for(aS=b;null!==aS;){var y=(a=aS).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,aS=y;else e:for(a=b;null!==aS;){if(2048&(l=aS).flags)try{switch(l.tag){case 0:case 11:case 15:dS(9,l)}}catch(e){AE(l,l.return,e)}if(l===a){aS=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,aS=x;break e}aS=l.return}}if(NS=o,Qv(),hm&&"function"==typeof hm.onPostCommitFiberRoot)try{hm.onPostCommitFiberRoot(mm,e)}catch(e){}r=!0}return r}finally{Mm=n,OS.transition=t}}return!1}function PE(e,t,n){e=Yb(e,t=Sx(0,t=vx(n,t),1),1),t=sE(),null!==e&&(km(e,1,t),dE(e,t))}function AE(e,t,n){if(3===e.tag)PE(e,e,n);else for(;null!==t;){if(3===t.tag){PE(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===eE||!eE.has(r))){t=Yb(t,e=Ex(t,e=vx(n,e),1),1),e=sE(),null!==t&&(km(t,1,e),dE(t,e));break}}t=t.return}}function DE(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sE(),e.pingedLanes|=e.suspendedLanes&n,qS===e&&(zS&n)===n&&(4===BS||3===BS&&(130023424&zS)===zS&&500>lm()-KS?xE(e,0):VS|=n),dE(e,t)}function TE(e,t){0===t&&(1&e.mode?(t=xm,!(130023424&(xm<<=1))&&(xm=4194304)):t=1);var n=sE();null!==(e=Hb(e,t))&&(km(e,t,n),dE(e,n))}function OE(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),TE(e,n)}function NE(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(mp(314))}null!==r&&r.delete(t),TE(e,n)}function qE(e,t){return rm(e,t)}function FE(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 zE(e,t,n,r){return new FE(e,t,n,r)}function jE(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $E(e,t){var n=e.alternate;return null===n?((n=zE(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 BE(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)jE(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ap:return HE(n.children,o,i,t);case Dp:a=8,o|=8;break;case Tp:return(e=zE(12,n,t,2|o)).elementType=Tp,e.lanes=i,e;case Fp:return(e=zE(13,n,t,o)).elementType=Fp,e.lanes=i,e;case zp:return(e=zE(19,n,t,o)).elementType=zp,e.lanes=i,e;case Bp:return WE(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Op:a=10;break e;case Np:a=9;break e;case qp:a=11;break e;case jp:a=14;break e;case $p:a=16,r=null;break e}throw Error(mp(130,null==e?e:typeof e,""))}return(t=zE(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function HE(e,t,n,r){return(e=zE(7,e,r,t)).lanes=n,e}function WE(e,t,n,r){return(e=zE(22,e,r,t)).elementType=Bp,e.lanes=n,e.stateNode={isHidden:!1},e}function GE(e,t,n){return(e=zE(6,e,null,t)).lanes=n,e}function VE(e,t,n){return(t=zE(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function UE(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=Lm(0),this.expirationTimes=Lm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function YE(e,t,n,r,o,i,a,l,s){return e=new UE(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=zE(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gb(i),e}function KE(e){if(!e)return Nv;e:{if(Jf(e=e._reactInternals)!==e||1!==e.tag)throw Error(mp(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($v(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(mp(171))}if(1===e.tag){var n=e.type;if($v(n))return Wv(e,n,t)}return t}function XE(e,t,n,r,o,i,a,l,s){return(e=YE(n,r,!0,e,0,i,0,l,s)).context=KE(null),n=e.current,(i=Ub(r=sE(),o=uE(n))).callback=null!=t?t:null,Yb(n,i,o),e.current.lanes=o,km(e,o,r),dE(e,r),e}function QE(e,t,n,r){var o=t.current,i=sE(),a=uE(o);return n=KE(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ub(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Yb(o,t,a))&&(cE(e,o,a,i),Kb(e,o,a)),a}function JE(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ZE(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eC(e,t){ZE(e,t),(e=e.alternate)&&ZE(e,t)}PS=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Fv.current)kx=!0;else{if(!(e.lanes&n||128&t.flags))return kx=!1,function(e,t,n){switch(t.tag){case 3:qx(t),Eb();break;case 5:ay(t);break;case 1:$v(t.type)&&Gv(t);break;case 4:oy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ov(Pb,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ov(sy,1&sy.current),t.flags|=128,null):n&t.child.childLanes?Gx(e,t,n):(Ov(sy,1&sy.current),null!==(e=Jx(e,t,n))?e.sibling:null);Ov(sy,1&sy.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Xx(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ov(sy,sy.current),r)break;return null;case 22:case 23:return t.lanes=0,Ax(e,t,n)}return Jx(e,t,n)}(e,t,n);kx=!!(131072&e.flags)}else kx=!1,fb&&1048576&t.flags&&sb(t,tb,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qx(e,t),e=t.pendingProps;var o=jv(t,qv.current);Fb(t,n),o=wy(null,t,r,e,o,n);var i=Ry();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,$v(r)?(i=!0,Gv(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Gb(t),o.updater=px,t.stateNode=o,o._reactInternals=t,gx(t,r,e,n),t=Nx(null,t,r,!0,i,n)):(t.tag=0,fb&&i&&ub(t),Ix(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qx(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return jE(e)?1:0;if(null!=e){if((e=e.$$typeof)===qp)return 11;if(e===jp)return 14}return 2}(r),e=cx(r,e),o){case 0:t=Tx(null,t,r,e,n);break e;case 1:t=Ox(null,t,r,e,n);break e;case 11:t=Mx(null,t,r,e,n);break e;case 14:t=_x(null,t,r,cx(r.type,e),n);break e}throw Error(mp(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Tx(e,t,r,o=t.elementType===r?o:cx(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ox(e,t,r,o=t.elementType===r?o:cx(r,o),n);case 3:e:{if(qx(t),null===e)throw Error(mp(387));r=t.pendingProps,o=(i=t.memoizedState).element,Vb(e,t),Qb(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=Fx(e,t,r,n,o=vx(Error(mp(423)),t));break e}if(r!==o){t=Fx(e,t,r,n,o=vx(Error(mp(424)),t));break e}for(pb=bv(t.stateNode.containerInfo.firstChild),db=t,fb=!0,mb=null,n=_b(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Eb(),r===o){t=Jx(e,t,n);break e}Ix(e,t,r,n)}t=t.child}return t;case 5:return ay(t),null===e&&bb(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,dv(r,o)?a=null:null!==i&&dv(r,i)&&(t.flags|=32),Dx(e,t),Ix(e,t,a,n),t.child;case 6:return null===e&&bb(t),null;case 13:return Gx(e,t,n);case 4:return oy(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Mb(t,null,r,n):Ix(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Mx(e,t,r,o=t.elementType===r?o:cx(r,o),n);case 7:return Ix(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ix(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,Ov(Pb,r._currentValue),r._currentValue=a,null!==i)if(gg(i.value,a)){if(i.children===o.children&&!Fv.current){t=Jx(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=Ub(-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),qb(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(mp(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),qb(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}Ix(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fb(t,n),r=r(o=zb(o)),t.flags|=1,Ix(e,t,r,n),t.child;case 14:return o=cx(r=t.type,t.pendingProps),_x(e,t,r,o=cx(r.type,o),n);case 15:return Px(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:cx(r,o),Qx(e,t),t.tag=1,$v(r)?(e=!0,Gv(t)):e=!1,Fb(t,n),mx(t,r,o),gx(t,r,o,n),Nx(null,t,r,!0,e,n);case 19:return Xx(e,t,n);case 22:return Ax(e,t,n)}throw Error(mp(156,t.tag))};var tC="function"==typeof reportError?reportError:function(e){console.error(e)};function nC(e){this._internalRoot=e}function rC(e){this._internalRoot=e}function oC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function iC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function aC(){}function lC(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=JE(a);l.call(e)}}QE(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=JE(a);i.call(e)}}var a=XE(t,r,e,0,null,!1,0,"",aC);return e._reactRootContainer=a,e[Cv]=a.current,Qg(8===e.nodeType?e.parentNode:e),bE(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=JE(s);l.call(e)}}var s=YE(e,0,!1,null,0,!1,0,"",aC);return e._reactRootContainer=s,e[Cv]=s.current,Qg(8===e.nodeType?e.parentNode:e),bE((function(){QE(t,s,n,r)})),s}(n,t,e,o,r);return JE(a)}rC.prototype.render=nC.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(mp(409));QE(e,t,null,null)},rC.prototype.unmount=nC.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;bE((function(){QE(null,e,null,null)})),t[Cv]=null}},rC.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hm.length&&0!==t&&t<Hm[n].priority;n++);Hm.splice(n,0,e),0===n&&Um(e)}},Pm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sm(t.pendingLanes);0!==n&&(Im(t,1|n),dE(t,lm()),!(6&NS)&&(XS=lm()+500,Qv()))}break;case 13:bE((function(){var t=Hb(e,1);if(null!==t){var n=sE();cE(t,e,1,n)}})),eC(e,1)}},Am=function(e){if(13===e.tag){var t=Hb(e,134217728);if(null!==t)cE(t,e,134217728,sE());eC(e,134217728)}},Dm=function(e){if(13===e.tag){var t=uE(e),n=Hb(e,t);if(null!==n)cE(n,e,t,sE());eC(e,t)}},Tm=function(){return Mm},Om=function(e,t){var n=Mm;try{return Mm=e,t()}finally{Mm=n}},Af=function(e,t,n){switch(t){case"input":if(sf(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=_v(r);if(!o)throw Error(mp(90));nf(r),sf(r,o)}}}break;case"textarea":hf(e,n);break;case"select":null!=(t=n.value)&&pf(e,!!n.multiple,t,!1)}},Ff=vE,zf=bE;var sC={usingClientEntryPoint:!1,Events:[Iv,Mv,_v,Nf,qf,vE]},uC={findFiberByHostInstance:kv,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cC={bundleType:uC.bundleType,version:uC.version,rendererPackageName:uC.rendererPackageName,rendererConfig:uC.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tm(e))?null:e.stateNode},findFiberByHostInstance:uC.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dC=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dC.isDisabled&&dC.supportsFiber)try{mm=dC.inject(cC),hm=dC}catch(xf){}}sp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sC,sp.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!oC(t))throw Error(mp(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Pp,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},sp.createRoot=function(e,t){if(!oC(e))throw Error(mp(299));var n=!1,r="",o=tC;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=YE(e,1,!1,null,0,n,0,r,o),e[Cv]=t.current,Qg(8===e.nodeType?e.parentNode:e),new nC(t)},sp.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(mp(188));throw e=Object.keys(e).join(","),Error(mp(268,e))}return e=null===(e=tm(t))?null:e.stateNode},sp.flushSync=function(e){return bE(e)},sp.hydrate=function(e,t,n){if(!iC(t))throw Error(mp(200));return lC(null,e,t,!0,n)},sp.hydrateRoot=function(e,t,n){if(!oC(e))throw Error(mp(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=tC;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=XE(t,null,e,1,null!=n?n:null,o,0,i,a),e[Cv]=t.current,Qg(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 rC(t)},sp.render=function(e,t,n){if(!iC(t))throw Error(mp(200));return lC(null,e,t,!1,n)},sp.unmountComponentAtNode=function(e){if(!iC(e))throw Error(mp(40));return!!e._reactRootContainer&&(bE((function(){lC(null,null,e,!1,(function(){e._reactRootContainer=null,e[Cv]=null}))})),!0)},sp.unstable_batchedUpdates=vE,sp.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iC(n))throw Error(mp(200));if(null==e||void 0===e._reactInternals)throw Error(mp(38));return lC(e,t,n,!1,r)},sp.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),lp.exports=sp;var pC=lp.exports,fC=n(pC),mC=!1,hC=lo.createContext(null),gC="unmounted",vC="exited",bC="entering",yC="entered",xC="exiting",SC=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=vC,r.appearStatus=bC):o=yC:o=t.unmountOnExit||t.mountOnEnter?gC:vC,r.state={status:o},r.nextCallback=null,r}Cr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gC?{status:vC}: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!==bC&&n!==yC&&(t=bC):n!==bC&&n!==yC||(t=xC)}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===bC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:fC.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vC&&this.setState({status:gC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[fC.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||mC?this.safeSetState({status:yC},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:bC},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:yC},(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:fC.findDOMNode(this);t&&!mC?(this.props.onExit(r),this.safeSetState({status:xC},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:vC},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:vC},(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:fC.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===gC)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=Sr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lo.createElement(hC.Provider,{value:null},"function"==typeof n?n(e,r):lo.cloneElement(lo.Children.only(n),r))},t}(lo.Component);function EC(){}SC.contextType=hC,SC.propTypes={},SC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:EC,onEntering:EC,onEntered:EC,onExit:EC,onExiting:EC,onExited:EC},SC.UNMOUNTED=gC,SC.EXITED=vC,SC.ENTERING=bC,SC.ENTERED=yC,SC.EXITING=xC;var CC=SC;function wC(e,t){var n=Object.create(null);return e&&ao.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&ao.isValidElement(e)?t(e):e}(e)})),n}function RC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function LC(e,t,n){var r=wC(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(ao.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=ao.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&ao.isValidElement(u)&&(o[i]=ao.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:RC(a,"exit",e),enter:RC(a,"enter",e)})):o[i]=ao.cloneElement(a,{in:!1}):o[i]=ao.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:RC(a,"exit",e),enter:RC(a,"enter",e)})}})),o}var kC=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},IC=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}Cr(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,wC(n.children,(function(e){return ao.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:RC(e,"appear",n),enter:RC(e,"enter",n),exit:RC(e,"exit",n)})}))):LC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=wC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=mr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Sr(e,["component","childFactory"]),o=this.state.contextValue,i=kC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?lo.createElement(hC.Provider,{value:o},i):lo.createElement(hC.Provider,{value:o},lo.createElement(t,r,i))},t}(lo.Component);IC.propTypes={},IC.defaultProps={component:"div",childFactory:function(e){return e}};var MC=IC;const _C=e=>e.scrollTop;function PC(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 AC(e){return ld("MuiPaper",e)}sd("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 DC=["className","component","elevation","square","variant"],TC=Od("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 Wo({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&&Wo({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Dc("#fff",Nd(t.elevation))}, ${Dc("#fff",Nd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var OC=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Go(n,DC),u=Wo({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Fs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},AC,o)})(u);return fc.jsx(TC,Wo({as:o,ownerState:u,className:Fd(c.root,r),ref:t},s))}));function NC(e){return"string"==typeof e}function qC(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 FC(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 zC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jC(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Sr(e,zC),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=Ys(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=mr({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=mr({},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=qC(mr({},o,r)),l=FC(r),s=FC(o),u=t(a),c=Ys(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=mr({},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=mr({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(mr({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||NC(e)?t:mr({},t,{ownerState:mr({},t.ownerState,n)})}(n,mr({},s,{ref:Es(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var $C=sd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const BC=["center","classes","className"];let HC,WC,GC,VC,UC=e=>e;const YC=Al(HC||(HC=UC`
|
|
46
48
|
0% {
|
|
47
49
|
transform: scale(0);
|
|
48
50
|
opacity: 0.1;
|
|
@@ -52,7 +54,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
52
54
|
transform: scale(1);
|
|
53
55
|
opacity: 0.3;
|
|
54
56
|
}
|
|
55
|
-
`)),
|
|
57
|
+
`)),KC=Al(WC||(WC=UC`
|
|
56
58
|
0% {
|
|
57
59
|
opacity: 1;
|
|
58
60
|
}
|
|
@@ -60,7 +62,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
60
62
|
100% {
|
|
61
63
|
opacity: 0;
|
|
62
64
|
}
|
|
63
|
-
`)),
|
|
65
|
+
`)),XC=Al(GC||(GC=UC`
|
|
64
66
|
0% {
|
|
65
67
|
transform: scale(1);
|
|
66
68
|
}
|
|
@@ -72,7 +74,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
72
74
|
100% {
|
|
73
75
|
transform: scale(1);
|
|
74
76
|
}
|
|
75
|
-
`)),
|
|
77
|
+
`)),QC=Od("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),JC=Od((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]=ao.useState(!1),p=Fd(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Fd(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ao.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fc.jsx("span",{className:p,style:f,children:fc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(VC||(VC=UC`
|
|
76
78
|
opacity: 0;
|
|
77
79
|
position: absolute;
|
|
78
80
|
|
|
@@ -115,9 +117,7 @@ function ya(e,t){let n;return n=t?fa(e).withConfig({displayName:t.label,shouldFo
|
|
|
115
117
|
animation-iteration-count: infinite;
|
|
116
118
|
animation-delay: 200ms;
|
|
117
119
|
}
|
|
118
|
-
`),wE.rippleVisible,PE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wE.child,wE.childLeaving,AE,550,(({theme:e})=>e.transitions.easing.easeInOut),wE.childPulsate,DE,(({theme:e})=>e.transitions.easing.easeInOut)),NE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,RE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(OE,{classes:{ripple:Sc(o.ripple,wE.ripple),rippleVisible:Sc(o.rippleVisible,wE.rippleVisible),ripplePulsate:Sc(o.ripplePulsate,wE.ripplePulsate),child:Sc(o.child,wE.child),childLeaving:Sc(o.childLeaving,wE.childLeaving),childPulsate:Sc(o.childPulsate,wE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(TE,Lr({className:Sc(wE.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var qE=NE;function FE(e){return Wu("MuiButtonBase",e)}var zE=Gu("MuiButtonBase",["root","disabled","focusVisible"]);const jE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],$E=bc("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=kr(n,jE),A=Hn.useRef(null),D=Hn.useRef(null),T=Iu(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=zu(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Mu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Mu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=Mu((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Mu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Iu(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},FE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs($E,Lr({as:ie,className:Sc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx(qE,Lr({ref:T,center:o},M)):null]}))}));var HE=BE;function WE(e){return Wu("MuiTypography",e)}Gu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const GE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VE=bc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${xu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),UE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},KE=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiTypography"}),r=(e=>YE[e]||e)(n.color),o=eu(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=UE}=o,f=kr(o,GE),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||UE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${xu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},WE,a)})(m);return Xs.jsx(VE,Lr({as:h,ref:t,ownerState:m,className:Sc(g.root,a)},f))}));var XE=KE;const QE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function JE(e){const t=[],n=[];return Array.from(e.querySelectorAll(QE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ZE(){return!0}function eC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=JE,isEnabled:a=ZE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const tC=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));function nC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rC(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function oC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&nC(e,o)}))}function iC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function aC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rC(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${rC(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const lC=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&nC(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);oC(t,e.mount,e.modalRef,r,!0);const o=iC(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=iC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=aC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=iC(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&nC(e.modalRef,t),oC(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&nC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function sC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&nC(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=xE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const uC=["onChange","maxRows","minRows","style","value"];function cC(e){return parseInt(e,10)||0}const dC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function pC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const fC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,uC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=il(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=tl(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=cC(n.paddingBottom)+cC(n.paddingTop),s=cC(n.borderBottomWidth)+cC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();pC(e)||m((t=>g(t,e)))}),[h]);rl((()=>{const e=()=>{p.current=0,(()=>{const e=h();pC(e)||KS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Za(e),n=u.current,r=tl(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),rl((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Xs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},dC,i,{paddingTop:0,paddingBottom:0})})]})}));function mC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var hC=Hn.createContext(void 0);function gC(){return Hn.useContext(hC)}function vC(e){return Xs.jsx(Qs,Lr({},e,{defaultTheme:pc,themeId:Rr}))}function bC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yC(e,t=!1){return e&&(bC(e.value)&&""!==e.value||t&&bC(e.defaultValue)&&""!==e.defaultValue)}function xC(e){return Wu("MuiInputBase",e)}var SC=Gu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const EC=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],CC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},RC=bc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${SC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),LC=bc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${SC.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${SC.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),kC=Xs.jsx(vC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),MC=Hn.forwardRef((function(e,t){var n;const r=mc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:M,placeholder:I,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,EC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Iu($,b,v.ref,B),[W,G]=Hn.useState(!1),V=gC(),U=mC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{yC(e)?Y&&Y():K&&K()}),[Y,K]);Cu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=fC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Sl({root:["root",`color${xu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${xu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},xC,t)})(Z),te=T.root||s.Root||RC,ne=D.root||u.root||{},re=T.input||s.Input||LC;return J=Lr({},J,null!=(n=D.input)?n:u.input),Xs.jsxs(Hn.Fragment,{children:[!p&&kC,Xs.jsxs(te,Lr({},ne,!yE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Sc(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,Xs.jsx(hC.Provider,{value:null,children:Xs.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:I,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:M,type:N},J,!yE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:Sc(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var IC=MC;function _C(e){return Wu("MuiInput",e)}var PC=Lr({},SC,Gu("MuiInput",["root","underline","input"]));function AC(e){return Wu("MuiOutlinedInput",e)}var DC=Lr({},SC,Gu("MuiOutlinedInput",["root","notchedOutline","input"]));function TC(e){return Wu("MuiFilledInput",e)}var OC=Lr({},SC,Gu("MuiFilledInput",["root","underline","input"])),NC=function(e,t){function n(n,r){return Xs.jsx(Lc,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Lc.muiName,Hn.memo(Hn.forwardRef(n))}(Xs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const qC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FC={entering:{opacity:1},entered:{opacity:1}},zC=Hn.forwardRef((function(e,t){const n=fc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=aE}=e,b=kr(e,qC),y=Hn.useRef(null),x=Iu(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{fE(e);const r=mE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=mE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},FC[e],h,a.props.style),ref:x},t))}))}));var jC=zC;function $C(e){return Wu("MuiBackdrop",e)}Gu("MuiBackdrop",["root","invisible"]);const BC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HC=bc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),WC=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=jC,transitionDuration:g}=i,v=kr(i,BC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},$C,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Lr({in:p,timeout:g},v,{children:Xs.jsx(HC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Sc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var GC=WC;var VC=Gu("MuiBox",["root"]);const UC=dc(),YC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ts);return Hn.forwardRef((function(e,a){const l=js(n),s=eu(e),{className:u,component:c="div"}=s,d=rn(s,tu);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:UC,defaultClassName:VC.root,generateClassName:Bu.generate});var KC=YC;function XC(e){return Wu("MuiButton",e)}var QC=Gu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var JC=Hn.createContext({});var ZC=Hn.createContext(void 0);const ew=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tw=e=>Lr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),nw=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xu(n.color)}`],t[`size${xu(n.size)}`],t[`${n.variant}Size${xu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gu(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gu(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${QC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${QC.disabled}`]:Lr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${QC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${QC.disabled}`]:{boxShadow:"none"}})),rw=bc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tw(e)))),ow=bc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tw(e)))),iw=Hn.forwardRef((function(e,t){const n=Hn.useContext(JC),r=Hn.useContext(ZC),o=mc({props:ju(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,ew),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,Sl({root:["root",i,`${i}${xu(t)}`,`size${xu(o)}`,`${i}Size${xu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xu(o)}`],endIcon:["endIcon",`iconSize${xu(o)}`]},XC,a))})(x),E=g&&Xs.jsx(rw,{className:S.startIcon,ownerState:x,children:g}),C=p&&Xs.jsx(ow,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Xs.jsxs(nw,Lr({ownerState:x,className:Sc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Sc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var aw=iw;function lw(e){return Wu("MuiModal",e)}Gu("MuiModal",["root","hidden","backdrop"]);const sw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],uw=bc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cw=bc(GC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=mc({name:"MuiModal",props:e}),{BackdropComponent:u=cw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=kr(s,sw),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=sC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lw,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:uw,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=CE({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Sc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=CE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Sc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(tC,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Lr({},V,{children:[!w&&u?Xs.jsx(H,Lr({},U)):null,Xs.jsx(eC,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var pw=dw;function fw(e){return Wu("MuiDivider",e)}var mw=Gu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const hw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],gw=bc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gu(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),vw=bc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,hw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Sl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},fw,r)})(m);return Xs.jsx(gw,Lr({as:a,className:Sc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Xs.jsx(vw,{className:h.wrapper,ownerState:m,children:o}):null}))}));bw.muiSkipListHighlight=!0;var yw=bw;const xw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${OC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${OC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${OC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${OC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${OC.disabled}, .${OC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${OC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Ew=bc(LC,{name:"MuiFilledInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Cw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=kr(a,xw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},TC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?yu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Sw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ew;return Xs.jsx(IC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));Cw.muiName="Input";var ww=Cw;const Rw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Lw(e){return`scale(${e}, ${e**2})`}const kw={entering:{opacity:1,transform:Lw(1)},entered:{opacity:1,transform:"none"}},Mw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Iw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=kr(e,Rw),v=Hn.useRef(),b=Hn.useRef(),y=fc(),x=Hn.useRef(null),S=Iu(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{fE(e);const{duration:n,delay:r,easing:o}=mE({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Mw?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=mE({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Mw?o:.666*o,delay:Mw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Lw(.75),c&&c(e)})),M=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Xs.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:Lw(.75),visibility:"exited"!==e||a?void 0:"hidden"},kw[e],f,o.props.style),ref:S},t))}))}));Iw.muiSupportAuto=!0;var _w=Iw;const Pw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aw=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...CC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${PC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${PC.disabled}, .${PC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${PC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dw=bc(LC,{name:"MuiInput",slot:"Input",overridesResolver:wC})({}),Tw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=mc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=kr(a,Pw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,Sl({root:["root",!n&&"underline"],input:["input"]},_C,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?yu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Aw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dw;return Xs.jsx(IC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Tw.muiName="Input";var Ow=Tw;function Nw(e){return Wu("MuiLink",e)}var qw=Gu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Fw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var zw=({theme:e,ownerState:t})=>{const n=(e=>Fw[e]||e)(t.color),r=Hl(e,`palette.${n}`,!1)||t.color,o=Hl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:gu(r,.4)};const jw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$w=bc(XE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${xu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:zw({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qw.focusVisible}`]:{outline:"auto"}}))),Bw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,jw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=zu(),[v,b]=Hn.useState(!1),y=Iu(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Sl({root:["root",`underline${xu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Nw,t)})(x);return Xs.jsx($w,Lr({color:o,className:Sc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Fw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Hw=Bw;var Ww=Hn.createContext({});function Gw(e){return Wu("MuiList",e)}Gu("MuiList",["root","padding","dense","subheader"]);const Vw=["children","className","component","dense","disablePadding","subheader"],Uw=bc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Yw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,Vw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Gw,t)})(d);return Xs.jsx(Ww.Provider,{value:c,children:Xs.jsxs(Uw,Lr({as:i,className:Sc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Kw(e){return Wu("MuiListItemIcon",e)}var Xw=Gu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qw=["className"],Jw=bc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Zw=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Qw),i=Lr({},n,{alignItems:Hn.useContext(Ww).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Kw,n)})(i);return Xs.jsx(Jw,Lr({className:Sc(a.root,r),ownerState:i,ref:t},o))}));var eR=Gu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const tR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function oR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function iR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&oR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var aR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,tR),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Su(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Iu(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Yw,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Su(t).activeElement;if("ArrowDown"===n)e.preventDefault(),iR(t,r,s,l,nR);else if("ArrowUp"===n)e.preventDefault(),iR(t,r,s,l,rR);else if("Home"===n)e.preventDefault(),iR(t,null,s,l,nR);else if("End"===n)e.preventDefault(),iR(t,null,s,l,rR);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&oR(r,o);o.previousKeyMatched&&(s||iR(t,r,!1,l,nR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function lR(e){return Wu("MuiPopover",e)}Gu("MuiPopover",["root","paper"]);const sR=["onEntering"],uR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cR=["slotProps"];function dR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function fR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function mR(e){return"function"==typeof e?e():e}const hR=bc(pw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gR=bc(bE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var vR=Hn.forwardRef((function(e,t){var n,r,o;const i=mc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=_w,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,sR),L=kr(i,uR),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=Iu(M,k.ref),_=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},lR,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=mR(l),t=(e&&1===e.nodeType?e:Su(M.current).body).getBoundingClientRect();return{top:t.top+dR(t,s.vertical),left:t.left+pR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:dR(e,x.vertical),horizontal:pR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:fR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Eu(mR(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:fR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Eu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Su(mR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hR,$=null!=(o=null==b?void 0:b.paper)?o:gR,B=CE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Sc(P.paper,null==k?void 0:k.className)}),H=CE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Sc(P.root,p)}),{slotProps:W}=H,G=kr(H,cR);return Xs.jsx(j,Lr({},G,!yE(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Lr({},B,{children:d}))}))}))}));function bR(e){return Wu("MuiMenu",e)}Gu("MuiMenu",["root","paper","list"]);const yR=["onEntering"],xR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],SR={vertical:"top",horizontal:"right"},ER={vertical:"top",horizontal:"left"},CR=bc(vR,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wR=bc(gR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),RR=bc(aR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var LR=Hn.forwardRef((function(e,t){var n,r;const o=mc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,yR),x=kr(o,xR),S=fc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},bR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const M=null!=(n=v.paper)?n:wR,I=null!=(r=b.paper)?r:p,_=CE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=CE({elementType:M,externalSlotProps:I,ownerState:C,className:w.paper});return Xs.jsx(CR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?SR:ER,slots:{paper:M,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Xs.jsx(RR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Sc(w.list,u.className),children:a}))}))}));function kR(e){return Wu("MuiMenuItem",e)}var MR=Gu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const IR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_R=bc(HE,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${MR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${MR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${MR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${MR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${MR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mw.inset}`]:{marginLeft:52},[`& .${eR.root}`]:{marginTop:0,marginBottom:0},[`& .${eR.inset}`]:{paddingLeft:36},[`& .${Xw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Xw.root} svg`]:{fontSize:"1.25rem"}}))));var PR=Hn.forwardRef((function(e,t){const n=mc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,IR),f=Hn.useContext(Ww),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);Cu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kR,a))})(n),b=Iu(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Ww.Provider,{value:m,children:Xs.jsx(_R,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Sc(v.focusVisible,s),className:Sc(v.root,d)},p,{ownerState:g,classes:v}))})}));function AR(e){return Wu("MuiNativeSelect",e)}var DR=Gu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const TR=["className","disabled","error","IconComponent","inputRef","variant"],OR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${DR.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),NR=bc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${DR.multiple}`]:t.multiple}]}})(OR),qR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),FR=bc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),zR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,TR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"]},AR,t)})(u);return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(NR,Lr({ownerState:u,className:Sc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Xs.jsx(FR,{as:i,ownerState:u,className:c.icon})]})}));var jR,$R=zR;const BR=["children","classes","className","label","notched"],HR=bc("fieldset",{shouldForwardProp:hc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),WR=bc("legend",{shouldForwardProp:hc})((({ownerState:e,theme:t})=>Lr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Lr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const GR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],VR=bc(RC,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:CC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${DC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${DC.focused} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${DC.error} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${DC.disabled} .${DC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),UR=bc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,BR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return Xs.jsx(HR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Xs.jsx(WR,{ownerState:a,children:i?Xs.jsx("span",{children:n}):jR||(jR=Xs.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),YR=bc(LC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wC})((({theme:e,ownerState:t})=>Lr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),KR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=mc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,GR),v=(e=>{const{classes:t}=e;return Lr({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AC,t))})(l),b=gC(),y=mC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:VR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:YR;return Xs.jsx(IC,Lr({slots:{root:S,input:E},renderSuffix:e=>Xs.jsx(UR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Xs.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));KR.muiName="Input";var XR=KR;function QR(e){return Wu("MuiSelect",e)}var JR,ZR=Gu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const eL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],tL=bc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ZR.select}`]:t.select},{[`&.${ZR.select}`]:t[n.variant]},{[`&.${ZR.error}`]:t.error},{[`&.${ZR.multiple}`]:t.multiple}]}})(OR,{[`&.${ZR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),nL=bc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xu(n.variant)}`],n.open&&t.iconOpen]}})(qR),rL=bc("input",{shouldForwardProp:e=>gc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function oL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function iL(e){return null==e||"string"==typeof e&&!e.trim()}const aL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:M={},tabIndex:I,value:_,variant:P="standard"}=e,A=kr(e,eL),[D,T]=ku({controlled:_,default:c,name:"Select"}),[O,N]=ku({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Iu(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=Su(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(yC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>oL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=oL(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==I?I:d?null:0;const oe=M.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Sl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},QR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Lu();return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx(tL,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},M,{ownerState:ie,className:Sc(M.className,ae.select,s),id:oe,children:iL(Q)?JR||(JR=Xs.jsx("span",{className:"notranslate",children:""})):Q})),Xs.jsx(rL,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),Xs.jsx(nL,{as:m,className:ae.icon,ownerState:ie}),Xs.jsx(LR,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var lL=aL;const sL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uL=["root"],cL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},dL=bc(Ow,cL)(""),pL=bc(XR,cL)(""),fL=bc(ww,cL)(""),mL=Hn.forwardRef((function(e,t){const n=mc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=NC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,sL),R=v?$R:lL,L=mC({props:n,muiFormControl:gC(),states:["variant","error"]}),k=L.variant||C,M=Lr({},n,{variant:k,classes:i}),I=(e=>{const{classes:t}=e;return t})(M),_=kr(I,uL),P=d||{standard:Xs.jsx(dL,{ownerState:M}),outlined:Xs.jsx(pL,{label:f,ownerState:M}),filled:Xs.jsx(fL,{ownerState:M})}[k],A=Iu(t,P.ref);return Xs.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?yu(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Sc(P.props.className,a,I.root)},!d&&{variant:k},w))})}));mL.muiName="Select";var hL=mL,gL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const vL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${gu(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${gu(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${gu(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${gu(Un.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(gL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Un.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Un.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${gu(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${gu(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const bL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},yL=e=>({components:vL,palette:bL,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),xL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},SL=yL().palette,EL={TEXT:SL.text.primary,DISABLED:SL.text.disabled,HOVER:SL.action.hover,WHITE:xL.GREYSCALE_100,BORDER_LIGHT:xL.GREYSCALE_90,BORDER_MEDIUM:xL.GREYSCALE_85,BORDER_HEAVY:xL.GREYSCALE_50,DARK_MODE_TEXT:xL.GREYSCALE_95,DARK_MODE_BORDER:xL.GREYSCALE_95,DARK_MODE_DISABLED:xL.GREYSCALE_70,DARK_MODE_BACKGROUND:xL.GREYSCALE_20};function CL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function RL(){}var LL=.7,kL=1/LL,ML="\\s*([+-]?\\d+)\\s*",IL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PL=/^#([0-9a-f]{3,8})$/,AL=new RegExp(`^rgb\\(${ML},${ML},${ML}\\)$`),DL=new RegExp(`^rgb\\(${_L},${_L},${_L}\\)$`),TL=new RegExp(`^rgba\\(${ML},${ML},${ML},${IL}\\)$`),OL=new RegExp(`^rgba\\(${_L},${_L},${_L},${IL}\\)$`),NL=new RegExp(`^hsl\\(${IL},${_L},${_L}\\)$`),qL=new RegExp(`^hsla\\(${IL},${_L},${_L},${IL}\\)$`),FL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zL(){return this.rgb().formatHex()}function jL(){return this.rgb().formatRgb()}function $L(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=PL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?BL(t):3===n?new VL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?HL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?HL(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=AL.exec(e))?new VL(t[1],t[2],t[3],1):(t=DL.exec(e))?new VL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TL.exec(e))?HL(t[1],t[2],t[3],t[4]):(t=OL.exec(e))?HL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NL.exec(e))?JL(t[1],t[2]/100,t[3]/100,1):(t=qL.exec(e))?JL(t[1],t[2]/100,t[3]/100,t[4]):FL.hasOwnProperty(e)?BL(FL[e]):"transparent"===e?new VL(NaN,NaN,NaN,0):null}function BL(e){return new VL(e>>16&255,e>>8&255,255&e,1)}function HL(e,t,n,r){return r<=0&&(e=t=n=NaN),new VL(e,t,n,r)}function WL(e){return e instanceof RL||(e=$L(e)),e?new VL((e=e.rgb()).r,e.g,e.b,e.opacity):new VL}function GL(e,t,n,r){return 1===arguments.length?WL(e):new VL(e,t,n,null==r?1:r)}function VL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function UL(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}`}function YL(){const e=KL(this.opacity);return`${1===e?"rgb(":"rgba("}${XL(this.r)}, ${XL(this.g)}, ${XL(this.b)}${1===e?")":`, ${e})`}`}function KL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function XL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function QL(e){return((e=XL(e))<16?"0":"")+e.toString(16)}function JL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ek(e,t,n,r)}function ZL(e){if(e instanceof ek)return new ek(e.h,e.s,e.l,e.opacity);if(e instanceof RL||(e=$L(e)),!e)return new ek;if(e instanceof ek)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ek(a,l,s,e.opacity)}function ek(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tk(e){return(e=(e||0)%360)<0?e+360:e}function nk(e){return Math.max(0,Math.min(1,e||0))}function rk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}CL(RL,$L,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zL,formatHex:zL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ZL(this).formatHsl()},formatRgb:jL,toString:jL}),CL(VL,GL,wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new VL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new VL(XL(this.r),XL(this.g),XL(this.b),KL(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:UL,formatHex:UL,formatHex8:function(){return`#${QL(this.r)}${QL(this.g)}${QL(this.b)}${QL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:YL,toString:YL})),CL(ek,(function(e,t,n,r){return 1===arguments.length?ZL(e):new ek(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return e=null==e?kL:Math.pow(kL,e),new ek(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?LL:Math.pow(LL,e),new ek(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new VL(rk(e>=240?e-240:e+120,o,r),rk(e,o,r),rk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ek(tk(this.h),nk(this.s),nk(this.l),KL(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=KL(this.opacity);return`${1===e?"hsl(":"hsla("}${tk(this.h)}, ${100*nk(this.s)}%, ${100*nk(this.l)}%${1===e?")":`, ${e})`}`}}));const ok=Math.PI/180,ik=180/Math.PI,ak=.96422,lk=1,sk=.82521,uk=4/29,ck=6/29,dk=3*ck*ck,pk=ck*ck*ck;function fk(e){if(e instanceof mk)return new mk(e.l,e.a,e.b,e.opacity);if(e instanceof xk)return Sk(e);e instanceof VL||(e=WL(e));var t,n,r=bk(e.r),o=bk(e.g),i=bk(e.b),a=hk((.2225045*r+.7168786*o+.0606169*i)/lk);return r===o&&o===i?t=n=a:(t=hk((.4360747*r+.3850649*o+.1430804*i)/ak),n=hk((.0139322*r+.0971045*o+.7141733*i)/sk)),new mk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hk(e){return e>pk?Math.pow(e,1/3):e/dk+uk}function gk(e){return e>ck?e*e*e:dk*(e-uk)}function vk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xk)return new xk(e.h,e.c,e.l,e.opacity);if(e instanceof mk||(e=fk(e)),0===e.a&&0===e.b)return new xk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ik;return new xk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xk(e,t,n,null==r?1:r)}function xk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sk(e){if(isNaN(e.h))return new mk(e.l,0,0,e.opacity);var t=e.h*ok;return new mk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}CL(mk,(function(e,t,n,r){return 1===arguments.length?fk(e):new mk(e,t,n,null==r?1:r)}),wL(RL,{brighter(e){return new mk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new VL(vk(3.1338561*(t=ak*gk(t))-1.6168667*(e=lk*gk(e))-.4906146*(n=sk*gk(n))),vk(-.9787684*t+1.9161415*e+.033454*n),vk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),CL(xk,yk,wL(RL,{brighter(e){return new xk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sk(this).rgb()}}));const Ek=(e,t)=>{const n=yk(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Ck=e=>{if(e){const t=GL(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},wk=e=>!!e&&0===GL(e).opacity,Rk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Lk=e=>{const t=Rk.exec(e);if(t){const[,e,n,r,o]=t;return GL(+n,+r,+o,+e/255)}return GL(e)},kk=e=>{const t=Lk(e);return Number.isNaN(t.r)?null:t.toString()},Mk=e=>{e.stopPropagation(),e.preventDefault()},Ik="#grid",_k=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Pk=(e,t,n,r,o)=>{const i=_k(".qv-object .qv-inner-object",n),a=_k(".qv-panel-sheet",n),l=_k(Ik,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return kk(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Lk(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=wk(p),m=Ck(f?s:p),h=((e,t,n)=>e&&!wk(e)?e:wk(t)?n&&!wk(n)?n:EL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},Ak=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(Ik),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:Pk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function Dk(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Tk=Object.prototype.hasOwnProperty,Ok=Object.prototype.toString,Nk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Fk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ok.call(e)},zk=function(e){if(!e||"[object Object]"!==Ok.call(e))return!1;var t,n=Tk.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Tk.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Tk.call(e,t)},jk=function(e,t){Nk&&"__proto__"===t.name?Nk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$k=function(e,t){if("__proto__"===t){if(!Tk.call(e,t))return;if(qk)return qk(e,t).value}return e[t]};function Bk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Hk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=$k(l,n),l!==(o=$k(t,n))&&(c&&o&&(zk(o)||(i=Fk(o)))?(i?(i=!1,a=r&&Fk(r)?r:[]):a=r&&zk(r)?r:{},jk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&jk(l,{name:n,newValue:o}));return l}));var Gk=1/.7,Vk="\\s*([+-]?\\d+)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kk=/^#([0-9a-f]{3,8})$/,Xk=new RegExp(`^rgb\\(${Vk},${Vk},${Vk}\\)$`),Qk=new RegExp(`^rgb\\(${Yk},${Yk},${Yk}\\)$`),Jk=new RegExp(`^rgba\\(${Vk},${Vk},${Vk},${Uk}\\)$`),Zk=new RegExp(`^rgba\\(${Yk},${Yk},${Yk},${Uk}\\)$`),eM=new RegExp(`^hsl\\(${Uk},${Yk},${Yk}\\)$`),tM=new RegExp(`^hsla\\(${Uk},${Yk},${Yk},${Uk}\\)$`),nM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rM(){return this.rgb().formatHex()}function oM(){return this.rgb().formatRgb()}function iM(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?aM(t):3===n?new cM(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lM(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lM(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Xk.exec(e))?new cM(t[1],t[2],t[3],1):(t=Qk.exec(e))?new cM(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Jk.exec(e))?lM(t[1],t[2],t[3],t[4]):(t=Zk.exec(e))?lM(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eM.exec(e))?gM(t[1],t[2]/100,t[3]/100,1):(t=tM.exec(e))?gM(t[1],t[2]/100,t[3]/100,t[4]):nM.hasOwnProperty(e)?aM(nM[e]):"transparent"===e?new cM(NaN,NaN,NaN,0):null}function aM(e){return new cM(e>>16&255,e>>8&255,255&e,1)}function lM(e,t,n,r){return r<=0&&(e=t=n=NaN),new cM(e,t,n,r)}function sM(e){return e instanceof Wk||(e=iM(e)),e?new cM((e=e.rgb()).r,e.g,e.b,e.opacity):new cM}function uM(e,t,n,r){return 1===arguments.length?sM(e):new cM(e,t,n,null==r?1:r)}function cM(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dM(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}`}function pM(){const e=fM(this.opacity);return`${1===e?"rgb(":"rgba("}${mM(this.r)}, ${mM(this.g)}, ${mM(this.b)}${1===e?")":`, ${e})`}`}function fM(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mM(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hM(e){return((e=mM(e))<16?"0":"")+e.toString(16)}function gM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bM(e,t,n,r)}function vM(e){if(e instanceof bM)return new bM(e.h,e.s,e.l,e.opacity);if(e instanceof Wk||(e=iM(e)),!e)return new bM;if(e instanceof bM)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new bM(a,l,s,e.opacity)}function bM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function yM(e){return(e=(e||0)%360)<0?e+360:e}function xM(e){return Math.max(0,Math.min(1,e||0))}function SM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bk(Wk,iM,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rM,formatHex:rM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vM(this).formatHsl()},formatRgb:oM,toString:oM}),Bk(cM,uM,Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cM(mM(this.r),mM(this.g),mM(this.b),fM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dM,formatHex:dM,formatHex8:function(){return`#${hM(this.r)}${hM(this.g)}${hM(this.b)}${hM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pM,toString:pM})),Bk(bM,(function(e,t,n,r){return 1===arguments.length?vM(e):new bM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return e=null==e?Gk:Math.pow(Gk,e),new bM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new cM(SM(e>=240?e-240:e+120,o,r),SM(e,o,r),SM(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new bM(yM(this.h),xM(this.s),xM(this.l),fM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fM(this.opacity);return`${1===e?"hsl(":"hsla("}${yM(this.h)}, ${100*xM(this.s)}%, ${100*xM(this.l)}%${1===e?")":`, ${e})`}`}}));const EM=Math.PI/180,CM=180/Math.PI,wM=4/29,RM=6/29,LM=3*RM*RM;function kM(e){if(e instanceof MM)return new MM(e.l,e.a,e.b,e.opacity);if(e instanceof DM)return TM(e);e instanceof cM||(e=sM(e));var t,n,r=AM(e.r),o=AM(e.g),i=AM(e.b),a=IM((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=IM((.4360747*r+.3850649*o+.1430804*i)/.96422),n=IM((.0139322*r+.0971045*o+.7141733*i)/.82521)),new MM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function MM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function IM(e){return e>.008856451679035631?Math.pow(e,1/3):e/LM+wM}function _M(e){return e>RM?e*e*e:LM*(e-wM)}function PM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function AM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function DM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function TM(e){if(isNaN(e.h))return new MM(e.l,0,0,e.opacity);var t=e.h*EM;return new MM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bk(MM,(function(e,t,n,r){return 1===arguments.length?kM(e):new MM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new MM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new MM(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new cM(PM(3.1338561*(t=.96422*_M(t))-1.6168667*(e=1*_M(e))-.4906146*(n=.82521*_M(n))),PM(-.9787684*t+1.9161415*e+.033454*n),PM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bk(DM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof DM)return new DM(e.h,e.c,e.l,e.opacity);if(e instanceof MM||(e=kM(e)),0===e.a&&0===e.b)return new DM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*CM;return new DM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new DM(e,t,n,null==r?1:r)}),Hk(Wk,{brighter(e){return new DM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new DM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return TM(this).rgb()}}));var OM,NM=e=>()=>e;function qM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):NM(isNaN(e)?t:e)}function FM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function zM(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function jM(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BM)):void 0===t&&(t=$M);for(var n,r,o,i,a,l=new GM(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new GM(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(WM)}function $M(e){return e.children}function BM(e){return Array.isArray(e)?e[1]:null}function HM(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function WM(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function GM(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?qM:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):NM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=uM(e)).r,(t=uM(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=qM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),GM.prototype=jM.prototype={constructor:GM,count:function(){return this.eachAfter(zM)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return jM(this).eachBefore(HM)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},OM=function(e){
|
|
119
|
-
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
120
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},OM({exports:{}});const VM=3,UM="N";function YM(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function KM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=VM}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Hn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=FM(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=FM((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=YM(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(UM).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var XM,QM=KS;XM=QM.createRoot,QM.hydrateRoot;function JM(e,t){const[n,r]=Hn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var ZM={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const eI=({translator:e})=>(Hn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ZM).forEach((t=>{e.add(ZM[t])}))}}(e)),[e]),e),tI=document.createElement("textarea");function nI(e){tI.value=e,document.body.appendChild(tI),tI.select(),tI.setSelectionRange(0,tI.value.length),document.execCommand("copy"),document.body.removeChild(tI)}tI.style.position="absolute",tI.style.left="-9999px",tI.setAttribute("readonly","");function rI(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>nI(n))):nI(n))})(r)}})}))}var oI="$$material";const iI=["values","unit","step"],aI=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Xt({},e,{[t.key]:t.val})),{})};function lI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=rn(e,iI),i=aI(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Xt({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var sI={borderRadius:4};function uI(e,t){return t?wa(e,t,{clone:!1}):e}const cI={xs:0,sm:600,md:900,lg:1200,xl:1536},dI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cI[e]}px)`};function pI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||dI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||dI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||cI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function fI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function mI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fI(e,n)||r,t&&(o=t(o,r,e)),o}function hI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fI(e.theme,r)||{};return pI(e,i,(e=>{let r=mI(a,o,e);return e===r&&"string"==typeof e&&(r=mI(a,o,`${t}${"default"===e?"":Xa(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gI={m:"margin",p:"padding"},vI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bI[e])return[e];e=bI[e]}const[t,n]=e.split(""),r=gI[t],o=vI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EI(e,t,n,r){var o;const i=null!=(o=fI(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function CI(e){return EI(e,"spacing",8)}function wI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function RI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=wI(t,n),e)),{})}(yI(n),r);return pI(e,e[n],o)}function LI(e,t){const n=CI(e.theme);return Object.keys(e).map((r=>RI(e,t,r,n))).reduce(uI,{})}function kI(e){return LI(e,xI)}function MI(e){return LI(e,SI)}function II(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?uI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function _I(e){return"number"!=typeof e?e:`${e}px solid`}function PI(e,t){return hI({prop:e,themeKey:"borders",transform:t})}kI.propTypes={},kI.filterProps=xI,MI.propTypes={},MI.filterProps=SI;const AI=PI("border",_I),DI=PI("borderTop",_I),TI=PI("borderRight",_I),OI=PI("borderBottom",_I),NI=PI("borderLeft",_I),qI=PI("borderColor"),FI=PI("borderTopColor"),zI=PI("borderRightColor"),jI=PI("borderBottomColor"),$I=PI("borderLeftColor"),BI=PI("outline",_I),HI=PI("outlineColor"),WI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=EI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wI(t,e)});return pI(e,e.borderRadius,n)}return null};WI.propTypes={},WI.filterProps=["borderRadius"],II(AI,DI,TI,OI,NI,qI,FI,zI,jI,$I,WI,BI,HI);const GI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=EI(e.theme,"spacing",8),n=e=>({gap:wI(t,e)});return pI(e,e.gap,n)}return null};GI.propTypes={},GI.filterProps=["gap"];const VI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=EI(e.theme,"spacing",8),n=e=>({columnGap:wI(t,e)});return pI(e,e.columnGap,n)}return null};VI.propTypes={},VI.filterProps=["columnGap"];const UI=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=EI(e.theme,"spacing",8),n=e=>({rowGap:wI(t,e)});return pI(e,e.rowGap,n)}return null};UI.propTypes={},UI.filterProps=["rowGap"];function YI(e,t){return"grey"===t?t:e}II(GI,VI,UI,hI({prop:"gridColumn"}),hI({prop:"gridRow"}),hI({prop:"gridAutoFlow"}),hI({prop:"gridAutoColumns"}),hI({prop:"gridAutoRows"}),hI({prop:"gridTemplateColumns"}),hI({prop:"gridTemplateRows"}),hI({prop:"gridTemplateAreas"}),hI({prop:"gridArea"}));function KI(e){return e<=1&&0!==e?100*e+"%":e}II(hI({prop:"color",themeKey:"palette",transform:YI}),hI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:YI}),hI({prop:"backgroundColor",themeKey:"palette",transform:YI}));const XI=hI({prop:"width",transform:KI}),QI=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||cI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:KI(t)}};return pI(e,e.maxWidth,t)}return null};QI.filterProps=["maxWidth"];const JI=hI({prop:"minWidth",transform:KI}),ZI=hI({prop:"height",transform:KI}),e_=hI({prop:"maxHeight",transform:KI}),t_=hI({prop:"minHeight",transform:KI});hI({prop:"size",cssProperty:"width",transform:KI}),hI({prop:"size",cssProperty:"height",transform:KI});II(XI,QI,JI,ZI,e_,t_,hI({prop:"boxSizing"}));var n_={border:{themeKey:"borders",transform:_I},borderTop:{themeKey:"borders",transform:_I},borderRight:{themeKey:"borders",transform:_I},borderBottom:{themeKey:"borders",transform:_I},borderLeft:{themeKey:"borders",transform:_I},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_I},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:WI},color:{themeKey:"palette",transform:YI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:YI},backgroundColor:{themeKey:"palette",transform:YI},p:{style:MI},pt:{style:MI},pr:{style:MI},pb:{style:MI},pl:{style:MI},px:{style:MI},py:{style:MI},padding:{style:MI},paddingTop:{style:MI},paddingRight:{style:MI},paddingBottom:{style:MI},paddingLeft:{style:MI},paddingX:{style:MI},paddingY:{style:MI},paddingInline:{style:MI},paddingInlineStart:{style:MI},paddingInlineEnd:{style:MI},paddingBlock:{style:MI},paddingBlockStart:{style:MI},paddingBlockEnd:{style:MI},m:{style:kI},mt:{style:kI},mr:{style:kI},mb:{style:kI},ml:{style:kI},mx:{style:kI},my:{style:kI},margin:{style:kI},marginTop:{style:kI},marginRight:{style:kI},marginBottom:{style:kI},marginLeft:{style:kI},marginX:{style:kI},marginY:{style:kI},marginInline:{style:kI},marginInlineStart:{style:kI},marginInlineEnd:{style:kI},marginBlock:{style:kI},marginBlockStart:{style:kI},marginBlockEnd:{style:kI},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:GI},rowGap:{style:UI},columnGap:{style:VI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:KI},maxWidth:{style:QI},minWidth:{transform:KI},height:{transform:KI},maxHeight:{transform:KI},minHeight:{transform:KI},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function r_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=fI(n,l)||{};if(u)return u(o);return pI(o,t,(t=>{let n=mI(c,s,t);return t===n&&"string"==typeof t&&(n=mI(c,s,`${e}${"default"===t?"":Xa(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:n_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=uI(s,e(n,o,i,a));else{const e=pI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=uI(s,e):s[n]=t({sx:o,theme:i})}else s=uI(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const o_=r_();o_.filterProps=["sx"];var i_=o_;function a_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const l_=["breakpoints","palette","spacing","shape"];function s_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=rn(e,l_),l=lI(n),s=function(e=8){if(e.mui)return e;const t=CI({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=wa({breakpoints:l,direction:"ltr",components:{},palette:Xt({mode:"light"},r),spacing:s,shape:Xt({},sI,i)},a);return u.applyStyles=a_,u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var u_=Object.freeze({__proto__:null,default:s_,private_createBreakpoints:lI,unstable_applyStyles:a_});function c_(e=null){const t=Hn.useContext(ia);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const d_=s_();function p_(e=d_){return c_(e)}const f_=["sx"],m_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:n_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function h_(e){const{sx:t}=e,n=rn(e,f_),{systemProps:r,otherProps:o}=m_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ea(n)?Xt({},r,n):r}:Xt({},r,t),Xt({},o,{sx:i})}var g_=Object.freeze({__proto__:null,default:i_,extendSxProp:h_,unstable_createStyleFunctionSx:r_,unstable_defaultSxConfig:n_});const v_=["className","component"];function b_(e){if(e.type)return e;if("#"===e.charAt(0))return b_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Mr(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Mr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function y_(e,t){return e=b_(e),t=function(e,t=0,n=1){return kl(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var x_=Hn.createContext(null);function S_(){return Hn.useContext(x_)}var E_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function C_(e){const{children:t,theme:n}=e,r=S_(),o=Hn.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Xt({},e,t)}(r,n);return null!=e&&(e[E_]=null!==r),e}),[n,r]);return Xs.jsx(x_.Provider,{value:o,children:t})}const w_=["value"],R_=Hn.createContext();function L_(e){let{value:t}=e,n=rn(e,w_);return Xs.jsx(R_.Provider,Xt({value:null==t||t},n))}const k_=Hn.createContext(void 0);function M_({value:e,children:t}){return Xs.jsx(k_.Provider,{value:e,children:t})}function I_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?xl(o.defaultProps,r):o.styleOverrides||o.variants?r:xl(o,r)}({props:e,name:t,theme:{components:Hn.useContext(k_)}})}const __={};function P_(e,t,n,r=!1){return Hn.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Xt({},t,{[e]:i}):i;return r?()=>a:a}return Xt({},t,e?{[e]:n}:n)}),[e,t,n,r])}function A_(e){const{children:t,theme:n,themeId:r}=e,o=c_(__),i=S_()||__,a=P_(r,o,n),l=P_(r,i,n,!0),s="rtl"===a.direction;return Xs.jsx(C_,{theme:l,children:Xs.jsx(ia.Provider,{value:a,children:Xs.jsx(L_,{value:s,children:Xs.jsx(M_,{value:null==a?void 0:a.components,children:t})})})})}var D_={},T_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(T_);var O_=T_.exports,N_=r(Ir),q_=r(Ml),F_=O_;Object.defineProperty(D_,"__esModule",{value:!0});var z_=D_.alpha=J_;D_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=U_(e),a=U_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return K_({type:"rgb",values:l})},D_.colorChannel=void 0;var j_=D_.darken=Z_;D_.decomposeColor=U_,D_.emphasize=tP;var $_=D_.getContrastRatio=function(e,t){const n=Q_(e),r=Q_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};D_.getLuminance=Q_,D_.hexToRgb=V_,D_.hslToRgb=X_;var B_=D_.lighten=eP;D_.private_safeAlpha=function(e,t,n){try{return J_(e,t)}catch(t){return e}},D_.private_safeColorChannel=void 0,D_.private_safeDarken=function(e,t,n){try{return Z_(e,t)}catch(t){return e}},D_.private_safeEmphasize=function(e,t,n){try{return tP(e,t)}catch(t){return e}},D_.private_safeLighten=function(e,t,n){try{return eP(e,t)}catch(t){return e}},D_.recomposeColor=K_,D_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=U_(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var H_=F_(N_),W_=F_(q_);function G_(e,t=0,n=1){return(0,W_.default)(e,t,n)}function V_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function U_(e){if(e.type)return e;if("#"===e.charAt(0))return U_(V_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,H_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,H_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Y_=e=>{const t=U_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};D_.colorChannel=Y_;function K_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function X_(e){e=U_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),K_({type:l,values:s})}function Q_(e){let t="hsl"===(e=U_(e)).type||"hsla"===e.type?U_(X_(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function J_(e,t){return e=U_(e),t=G_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,K_(e)}function Z_(e,t){if(e=U_(e),t=G_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return K_(e)}function eP(e,t){if(e=U_(e),t=G_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return K_(e)}function tP(e,t=.15){return Q_(e)>.5?Z_(e,t):eP(e,t)}D_.private_safeColorChannel=(e,t)=>{try{return Y_(e)}catch(t){return e}};var nP={black:"#000",white:"#fff"};var rP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var oP={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var iP={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var aP={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var lP={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var sP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var uP={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const cP=["mode","contrastThreshold","tonalOffset"],dP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:nP.white,default:nP.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},pP={text:{primary:nP.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:nP.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function fP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=B_(e.main,o):"dark"===t&&(e.dark=j_(e.main,i)))}function mP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=rn(e,cP),i=e.primary||function(e="light"){return"dark"===e?{main:lP[200],light:lP[50],dark:lP[400]}:{main:lP[700],light:lP[400],dark:lP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:oP[200],light:oP[50],dark:oP[400]}:{main:oP[500],light:oP[300],dark:oP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:iP[500],light:iP[300],dark:iP[700]}:{main:iP[700],light:iP[400],dark:iP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:sP[400],light:sP[300],dark:sP[700]}:{main:sP[700],light:sP[500],dark:sP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:uP[400],light:uP[300],dark:uP[700]}:{main:uP[800],light:uP[500],dark:uP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:aP[400],light:aP[300],dark:aP[700]}:{main:"#ed6c02",light:aP[500],dark:aP[900]}}(t);function d(e){return $_(e,pP.text.primary)>=n?pP.text.primary:dP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Xt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Mr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Mr(12,t?` (${t})`:"",JSON.stringify(e.main)));return fP(e,"light",o,r),fP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pP,light:dP};return wa(Xt({common:Xt({},nP),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:rP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const hP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gP={textTransform:"uppercase"},vP='"Roboto", "Helvetica", "Arial", sans-serif';function bP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=vP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=rn(n,hP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Xt({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===vP?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,gP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wa(Xt({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function yP(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var xP=["none",yP(0,2,1,-1,0,1,1,0,0,1,3,0),yP(0,3,1,-2,0,2,2,0,0,1,5,0),yP(0,3,3,-2,0,3,4,0,0,1,8,0),yP(0,2,4,-1,0,4,5,0,0,1,10,0),yP(0,3,5,-1,0,5,8,0,0,1,14,0),yP(0,3,5,-1,0,6,10,0,0,1,18,0),yP(0,4,5,-2,0,7,10,1,0,2,16,1),yP(0,5,5,-3,0,8,10,1,0,3,14,2),yP(0,5,6,-3,0,9,12,1,0,3,16,2),yP(0,6,6,-3,0,10,14,1,0,4,18,3),yP(0,6,7,-4,0,11,15,1,0,4,20,3),yP(0,7,8,-4,0,12,17,2,0,5,22,4),yP(0,7,8,-4,0,13,19,2,0,5,24,4),yP(0,7,9,-4,0,14,21,2,0,5,26,4),yP(0,8,9,-5,0,15,22,2,0,6,28,5),yP(0,8,10,-5,0,16,24,2,0,6,30,5),yP(0,8,11,-5,0,17,26,2,0,6,32,5),yP(0,9,11,-5,0,18,28,2,0,7,34,6),yP(0,9,12,-6,0,19,29,2,0,7,36,6),yP(0,10,13,-6,0,20,31,3,0,8,38,7),yP(0,10,13,-6,0,21,33,3,0,8,40,7),yP(0,10,14,-6,0,22,35,3,0,8,42,7),yP(0,11,14,-7,0,23,36,3,0,9,44,8),yP(0,11,15,-7,0,24,38,3,0,9,46,8)];const SP=["duration","easing","delay"],EP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},CP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wP(e){return`${Math.round(e)}ms`}function RP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function LP(e){const t=Xt({},EP,e.easing),n=Xt({},CP,e.duration);return Xt({getAutoHeightDuration:RP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return rn(r,SP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wP(o)} ${i} ${"string"==typeof a?a:wP(a)}`)).join(",")}},e,{easing:t,duration:n})}var kP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const MP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function IP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=rn(e,MP);if(e.vars)throw new Error(Mr(18));const l=mP(r),s=s_(e);let u=wa(s,{mixins:(c=s.breakpoints,d=n,Xt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:xP.slice(),typography:bP(l,i),transitions:LP(o),zIndex:Xt({},kP)});var c,d;return u=wa(u,a),u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=Xt({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var _P=IP();function PP(){const e=p_(_P);return e[oI]||e}var AP,DP={},TP={exports:{}};var OP,NP={exports:{}};var qP=r(Sa),FP=r(La),zP=r(Qa),jP=r(Ka),$P=r(u_),BP=r(g_),HP=O_;Object.defineProperty(DP,"__esModule",{value:!0});var WP=DP.default=function(e={}){const{themeId:t,defaultTheme:n=nA,rootShouldForwardProp:r=tA,slotShouldForwardProp:o=tA}=e,i=e=>(0,XP.default)((0,GP.default)({},e,{theme:oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,UP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=iA(rA(s))}=a,p=(0,VP.default)(a,ZP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=tA;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,UP.default)(e,(0,GP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,YP.isPlainObject)(e)?r=>aA(e,(0,GP.default)({},r,{theme:oA({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=aA(n,(0,GP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=oA((0,GP.default)({},e,{defaultTheme:n,themeId:t}));return aA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,GP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};DP.shouldForwardProp=tA,DP.systemDefaultTheme=void 0;var GP=HP((AP||(AP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(TP)),TP.exports)),VP=HP((OP||(OP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(NP)),NP.exports)),UP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=eA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(qP),YP=FP;HP(zP),HP(jP);var KP=HP($P),XP=HP(BP);const QP=["ownerState"],JP=["variants"],ZP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(eA=function(e){return e?n:t})(e)}function tA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nA=DP.systemDefaultTheme=(0,KP.default)(),rA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function oA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function iA(e){return e?(t,n)=>n[e]:null}function aA(e,t){let{ownerState:n}=t,r=(0,VP.default)(t,QP);const o="function"==typeof e?e((0,GP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>aA(e,(0,GP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,VP.default)(o,JP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,GP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,GP.default)({ownerState:n},r,n)):e.style))})),t}return o}var lA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sA=WP({themeId:oI,defaultTheme:_P,rootShouldForwardProp:lA});const uA=["theme"];function cA(e){let{theme:t}=e,n=rn(e,uA);const r=t[oI];return Xs.jsx(A_,Xt({},n,{themeId:r?oI:void 0,theme:r||t}))}var dA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const pA=bc(KC,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${et}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${et}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),fA=bc(KC)({position:"absolute",height:"100%",width:"3px"}),mA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=Hn.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};JM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,tt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:nt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{Mk(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{Mk(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Je.LEFT||e.key===Je.RIGHT){Mk(e);const t=5,n=e.key===Je.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Je.SPACE||e.key===Je.ENTER?(Mk(e),l(e),g()):e.key===Je.ESC&&(Mk(e),l(e),h(c.current.initWidth))}:void 0;return Wn.createElement(pA,{className:Ze,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":Ze},Wn.createElement(fA,{className:et}))};function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),vA=Hn.forwardRef(gA);function bA(){return bA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bA.apply(null,arguments)}const yA=bc(KC,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),xA=bc(vA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SA=bc(LR)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),EA=bc(yw)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CA=bc(PR)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wA=bc(PR,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),RA=bc("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),LA=bc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),kA=bc(XE)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),MA=bc(Zw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _A=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),PA=Hn.forwardRef(_A);let AA={};const DA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Hn.useState(!1),p=Hn.useRef(null),f=Hn.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wn.createElement(Wn.Fragment,null,Wn.createElement(wA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),AA={}),null!=a&&a.length&&(d(!0),AA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wn.createElement(RA,null),Wn.createElement(LA,null,Wn.createElement(MA,null,Wn.createElement(o,null)),Wn.createElement(kA,{variant:"body2"},r)),null!=a&&a.length?Wn.createElement(PA,null):null),(null==a?void 0:a.length)&&Wn.createElement(NA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=AA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},TA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wn.createElement(CA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wn.createElement(DA,bA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),OA={appear:200,enter:200,exit:100},NA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Wn.createElement(SA,bA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:OA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[TA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wn.createElement(EA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},FA=(e,t)=>e.some((e=>t[e]>0));function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),$A=Hn.forwardRef(jA);function BA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),WA=Hn.forwardRef(HA);function GA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),UA=Hn.forwardRef(VA);function YA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),XA=Hn.forwardRef(KA);function QA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JA=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),ZA=Hn.forwardRef(JA);function eD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),nD=Hn.forwardRef(tD);function rD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),iD=Hn.forwardRef(oD);function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),sD=Hn.forwardRef(lD);function uD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),dD=Hn.forwardRef(cD);function pD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),mD=Hn.forwardRef(fD);let hD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const gD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[hD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:$A,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:XA,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[hD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:ZA,enabled:!0}]}]),n[hD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:mD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:nD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:dD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:iD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:sD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:WA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[hD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:UA,enabled:!0}]}]),d},vD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=eI({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Hn.useState(null),[o,i]=Hn.useState(qA);return Hn.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Hn.useCallback((()=>i(qA)),[]),updateSelectionActionsEnabledStatus:Hn.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:FA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:FA(["qSelected"],n.qStateCounts),canSelectPossible:FA(["qOption"],n.qStateCounts),canSelectAlternative:FA(["qAlternative"],n.qStateCounts),canSelectExcluded:FA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Hn.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,v,g]);Hn.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=Hn.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wn.createElement(yA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&Wn.createElement(xA,{height:Ke,className:Xe,"data-testid":Xe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wn.createElement(vA,null)),Wn.createElement(NA,{open:e,anchorEl:n.current,onClose:C,menuGroups:gD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},bD=e=>e.isDark?{background:e.color,borderColor:EL.DARK_MODE_BORDER,color:EL.DARK_MODE_TEXT,disabledColor:EL.DARK_MODE_DISABLED,iconColor:EL.DARK_MODE_TEXT}:{background:e.color,borderColor:EL.BORDER_MEDIUM,color:EL.TEXT,disabledColor:EL.DISABLED},yD=bc(KC,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),xD=bc(hL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),SD=bc(aw,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),ED=bc(XE)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),CD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Hn.useMemo((()=>bD(r.background)),[r]);if(!n.active)return null;const a=o?Wn.createElement(yD,{footerStyle:i},e):null;return t?XS.createPortal(e,t):a},wD={},RD=Hn.createContext(wD),LD=()=>Hn.useContext(RD),kD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=Hn.useMemo((()=>bD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=eI({translator:d}),x=Hn.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return Wn.createElement(RD.Provider,{value:x},e)};let MD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ID=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function _D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const PD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),AD=Hn.forwardRef(PD);function DD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),OD=Hn.forwardRef(TD);function ND(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qD=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ND(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),FD=Hn.forwardRef(qD),zD={FirstPage:OD,PreviousPage:AD,NextPage:PA,LastPage:FD,FirstPageRTL:FD,PreviousPageRTL:PA,NextPageRTL:AD,LastPageRTL:OD},jD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=LD(),u=zD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},$D=()=>{const{pageInfo:e,width:t}=LD(),n=0===e.page,{IconComponent:r,styledProps:o}=jD({type:MD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ID.FirstPage?null:Wn.createElement(SD,o,Wn.createElement(r,{height:Ke}))},BD=(e,t,n=!1)=>{n&&e.key===Je.TAB&&!e.shiftKey&&(Mk(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},HD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>BD(e,t,r):null;return o<=ID.LastPage?null:Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},WD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=LD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:MD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ID.FirstPage&&o>ID.LastPage)&&t.enabled?e=>BD(e,t,r):null;return Wn.createElement(SD,bA({},l,{onKeyDown:s}),Wn.createElement(a,{height:Ke}))},GD=()=>{const{pageInfo:e}=LD(),t=0===e.page,{IconComponent:n,styledProps:r}=jD({type:MD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wn.createElement(SD,r,Wn.createElement(n,{height:Ke}))},VD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=LD(),{page:o,rowsPerPage:i}=n;if(t<=ID.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wn.createElement(ED,{variant:"caption"},a)},UD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=LD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return Wn.createElement(Wn.Fragment,null,Wn.createElement(ED,{variant:"caption",id:d},u,":"),Wn.createElement(xD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},YD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=LD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ID.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wn.createElement(Wn.Fragment,null,t.rowsPerPageOptions.map((e=>Wn.createElement("option",{key:e,value:e},e))));return Wn.createElement(UD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},KD=1e3,XD="…",QD=({totalPages:e,page:t})=>{const n=Math.min(e,KD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-KD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wn.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wn.createElement("option",{key:"startMoreOptions",value:XD,disabled:!0},XD)),o<e-1&&a.push(Wn.createElement("option",{key:"endMoreOptions",value:XD,disabled:!0},XD)),Wn.createElement(Wn.Fragment,null,a)},JD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=LD(),{page:o}=e;if(t<=ID.SelectPage)return null;const i=Wn.createElement(QD,{totalPages:n,page:o});return Wn.createElement(UD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},ZD=e=>Wn.createElement(kD,e,Wn.createElement(YD,null),Wn.createElement(JD,null),Wn.createElement(VD,null),Wn.createElement($D,null),Wn.createElement(GD,null),Wn.createElement(WD,null),Wn.createElement(HD,null));var eT=Hn.memo(ZD);const tT=e=>Wn.createElement(CD,e,Wn.createElement(eT,e)),nT={},rT=Hn.createContext(nT),oT=()=>Hn.useContext(rT),iT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=Hn.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return Xs.jsx(rT.Provider,{value:u,children:e})},aT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=oT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:vt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:Xs.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Xs.jsx("span",{style:{...kt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},lT={},sT=Hn.createContext(lT),uT=()=>Hn.useContext(sT),cT=({children:e,styleService:t})=>Xs.jsx(sT.Provider,{value:t,children:e}),dT=21,pT=20,fT=pT,mT=16+St+1,hT=.75;let gT=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),vT=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const bT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===gT.Image},yT="/qHyperCubeDef",xT=-1,ST="PSEUDO-DIM",ET=e=>void 0===e?bt:e,CT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wT=e=>CT(e,tt.PixelsDefault),RT=(e,t)=>CT(e,tt.PercentageDefault)*t/100,LT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return wT(t.pixels);case nt.Percentage:return RT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},kT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===ST)return e+0;const m=n(p),h=!u&&f&&d<s-1?dT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+mT+h+m+g)}),0),MT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*mT;return Math.max(e,o+t(r.qFallbackTitle))}),0),IT=(e,t,n,r)=>{const o=100*e/t,i=r*hT*(o/100),a=n*(o/100);return Math.min(a,i)},_T=(e,t,n,r)=>r*(n/100)*(100*e/t/100),PT=(e,t)=>e.some((e=>e>=t*hT)),AT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*hT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,kT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,MT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===ST)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===nt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+mT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,MT(e.visibleMeasureInfo,l,!0));h=Math.min(c,kT({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=nt.Pixels,y.pixels=o);return[nt.Pixels,nt.Percentage].includes(y.type)||PT(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=PT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=IT(e[0],l,u,n),i=IT(e[1],l,u,n)),s===nt.Percentage&&c&&(o=_T(e[0],l,c,n),i=_T(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function DT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*hT,i=uT(),{measureText:a}=KM(i.header),{estimateWidth:l,measureText:s}=KM({...i.dimensionValues,fontWeight:ET(i.dimensionValues.fontWeight)}),{measureText:u}=KM({...i.dimensionValues,...i.measureLabels}),c=Hn.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h}=e,g=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+mT,a=Math.max(i,e);return Math.max(n,h?a:LT(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===ST)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?fT:0;return mT+a(t)+pT+r})(r);return Math.max(o,t)}),0);let b=0,y=n.data.at(-1);h&&n.size.x>1&&y&&y[0]&&(y=y[0]);const x=y.map(((r,a)=>{let s=mT;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ge.Pivot?o=p:r.columnWidthLocation===Ge.Dimension&&({columnWidth:o}=r);let i=0;r.isLeftDimension?i=r.id===ST?g():Math.max(v(a),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(bT(a))return tt.PixelsDefault;const s=!m&&o&&n<d-1?dT:0;return mT+l(r)+s})(r,a)):r.isLeftDimension||(i=v(a),r.columnWidthLocation===Ge.Measures&&(i=g(i))),h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=LT(t,o,i)}return b+=s,s}));return h&&n.size.x>1?AT({layoutService:e,headersData:n,columnWidths:x,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,b),leftGridColumnWidths:x,leftGridFullWidth:b}}),[t,n,e,o,a,u,l,s,r]),[d,p]=Hn.useState(c);JM((()=>{p(c())}),[c]);const f=Hn.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=uT(),{estimateWidth:c,measureText:d}=KM(u.measureValues),{estimateWidth:p}=KM({...u.dimensionValues,fontWeight:ET(u.dimensionValues.fontWeight)}),f=t-o-St,m=n.at(-1),h=m===xT,g=a.length-i>n.length?dT:0,v=Hn.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(tt.PixelsMax,Math.max(tt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case nt.Pixels:i(t,wT(o));break;case nt.Percentage:i(t,RT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:mT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,bT(e)));break;case nt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(tt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=Hn.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Hn.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let OT;const NT=new Uint8Array(16);function qT(){if(!OT&&(OT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!OT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return OT(NT)}const FT=[];for(let e=0;e<256;++e)FT.push((e+256).toString(16).slice(1));var zT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jT(e,t,n){if(zT.randomUUID&&!t&&!e)return zT.randomUUID();const r=(e=e||{}).random||(e.rng||qT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return FT[e[t+0]]+FT[e[t+1]]+FT[e[t+2]]+FT[e[t+3]]+"-"+FT[e[t+4]]+FT[e[t+5]]+"-"+FT[e[t+6]]+FT[e[t+7]]+"-"+FT[e[t+8]]+FT[e[t+9]]+"-"+FT[e[t+10]]+FT[e[t+11]]+FT[e[t+12]]+FT[e[t+13]]+FT[e[t+14]]+FT[e[t+15]]}(r)}const $T=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:jT()},BT=e=>e===xT?ST:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:$T()})(e),HT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===xT?n.columnWidthLocation=Ge.Measures:n.isLeftDimension?n.columnWidthLocation=Ge.Dimension:t.at(-1)===xT?n.columnWidthLocation=Ge.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ge.Pivot))},WT=(e,t,n)=>{var r;const o=BT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===xT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ge.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},GT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===xT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=WT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=WT(e,t,o)})),l},VT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(xT)?GT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(GT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)HT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else HT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function UT(e){return UT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UT(e)}function YT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function XT(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZT(e,t)}function JT(e){return JT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JT(e)}function ZT(e,t){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZT(e,t)}function eO(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function tO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JT(e);if(t){var o=JT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eO(this,n)}}function nO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:iO(e),value:iO(t),useEqualSign:n}}(n,o,i))}})),t}};function iO(e){try{return decodeURIComponent(e)}catch(t){return e}}function aO(e){if(!(this instanceof aO))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return oO.fromSearchString(t.search)}}})}function lO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}aO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},aO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=lO((t=e[r]).key),t.value?n+="=".concat(lO(t.value)):n+=t.useEqualSign?"=":"";return n};var sO,uO=function(){function e(t){YT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return XT(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),cO=function(){function e(){YT(this,e)}return XT(e,[{key:"decode",value:function(e){for(var t,n="",r=new uO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),dO=function(e){return e>=0&&e<=1114111},pO=function(e){return e.match(/[\s]/)},fO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!pO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return dO(a)?String.fromCharCode(a):"�"}}]),n}(cO),mO=function(){function e(t,n){YT(this,e),this._key=t,this._value=n}return XT(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),hO=function(){function e(){YT(this,e)}return XT(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return mO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return mO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||mO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),gO=function(){function e(){YT(this,e),this.clear()}return XT(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new hO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),vO=function(){var e,t,n,r=[],o=[],i=new gO;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="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["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),bO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,vO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=vO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&dO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&dO(r)?String.fromCharCode(r):null}}]),n}(cO),yO=function(e){QT(n,e);var t=tO(n);function n(){return YT(this,n),t.apply(this,arguments)}return XT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),dO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(cO),xO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(sO=document.createElement("div"));var SO=Array.prototype.indexOf,EO=[",",".","_"," "],CO={default:[",",".","-","_"," "]},wO={width:["%"],height:["%"]},RO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},LO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":RO.image,"background-color":RO.color,"border-color":RO.color,"border-image":RO.image,color:RO.color,icon:RO.image,"list-style-image":RO.image,"outline-color":RO.color},kO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function MO(e,t,n){var r;if(t){if(SO)return SO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function IO(e){if(null==e)return"";var t,n=document.createTextNode(e);return sO.appendChild(n),t=sO.innerHTML,sO.removeChild(n),t}function _O(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<kO.attr_val;i++)if(t.toLowerCase().match(kO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=wO[e])||(r=CO.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&MO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function PO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=AO(e).toLowerCase(),t=AO(t),MO(e,kO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<kO.css_val.length;r++)if(t.toLowerCase().indexOf(kO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=LO[e])||(o=RO.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&MO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function AO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new bO,new yO,new fO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var DO=[],TO=0;TO<255;TO++)DO[TO]=TO>=48&&TO<=57||TO>=65&&TO<=90||TO>=97&&TO<=122?null:TO.toString(16);var OO=function(e){return IO(e.unsafe)},NO=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=PO(t,n[t],!0),i+=PO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},qO=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=_O(i,t[i],!0),o+=_O(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function FO(e,t){throw new Error(t)}var zO={canonicalize:AO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===UT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?OO(e):"css"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),NO(e)):"attr"===e.context?(null!=e.map&&"object"!==UT(e.map)&&FO(this,"Invalid parameter type"),qO(e)):void FO(this,"Invalid parameter type")},encodeForAttr:_O,encodeForAttr2:function(e){return _O("nonsens",e,!0)},encodeForCSS:PO,encodeForHref:function(e){AO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new aO(e),n=aO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+aO.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=EO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),MO(o,t)>=0||null==DO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:IO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=AO(t).toLowerCase():FO(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=nO(null!==(t=xO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const jO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},$O=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},BO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&zO.isSafeDataURL(t)?{type:gT.Image,url:t,text:e,imageSize:n,resolvedImagePosition:$O(r)}:{type:gT.Text,url:void 0,text:e},HO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===vT.Attribute||null==n?void 0:n.urlLabel},WO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gT.Link,url:zO.encodeForHref(t),text:e}}catch(t){return{type:gT.Text,url:void 0,text:e}}},GO=(e,t,n,r)=>{var o,i;const a=(e=>{switch(null==e?void 0:e.type){case"url":return gT.Link;case"image":return gT.Image;default:return gT.Text}})(t);return a!==gT.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===gT.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===vT.Attribute){var o;const r=HO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return WO({text:i,url:r})}if(r===vT.Dimension){var i;const r=HO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return WO({text:r,url:e.qText})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n):{type:gT.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=jO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return BO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return BO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=jO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return BO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:gT.Text,url:void 0,text:e.qText}})(e,t,n)},VO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?kk(s):null,c=l?kk(l):null,d=((e,t)=>e||!t?null:Ck(t)?EL.WHITE:EL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},UO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:UO(e,t)),e),YO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:yt-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,UO(l,e))},KO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=!c&&e.qType===it.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:$T(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:YO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===it.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===it.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===it.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:VO(s,e),selectionCellType:u?ot.NX_CELL_LEFT:ot.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:GO({...e,qText:h},l===xT?void 0:l.representation,s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},XO=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(xT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===it.NX_DIM_CELL_NORMAL||p.qType===it.NX_DIM_CELL_NULL||p.qType===it.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===it.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?KO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},QO=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},JO=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},ZO=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=XO(e.grid,l,s,n,r,o,i,a);QO(u,n.rowsOnCurrentPage);const c=JO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},eN=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===it.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$T(),ref:t,isNull:u}}))})),o},tN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?eN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},nN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:KO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},rN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=nN(e.grid,s,u,n,r,o,i,a,l);QO(c,n.size.x);const d=JO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},oN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),iN=(e,t,n,r,o)=>{const{env:i}=oT(),[a,l]=Hn.useState(null),s=((e,t,n)=>Hn.useMemo((()=>({left:e.map(oN),top:t.map(oN),measures:n.map(oN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=Hn.useMemo((()=>VT(t,o,r)),[t,o,r]),c=Hn.useCallback((()=>e.slice(1).reduce(((e,t)=>tN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return eN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=Hn.useCallback((()=>e.slice(1).reduce(((e,r)=>rN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=nN([],s,l,t,n,r,o,i,a);QO(u,t.size.x);const c=JO(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=Hn.useCallback((()=>e.slice(1).reduce(((e,o)=>ZO({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=XO([],l,a,n,t,r,o,i);QO(s,n.rowsOnCurrentPage);const u=JO(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=Hn.useState((()=>c())),[h,g]=Hn.useState((()=>d())),[v,b]=Hn.useState((()=>p()));JM((()=>{m(c())}),[c]),JM((()=>{g(d())}),[d]),JM((()=>{b(p())}),[p]),JM((()=>{a&&a.forEach((e=>{m((t=>tN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>rN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>ZO({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=Hn.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},aN=Math.sqrt(1e4),lN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),sN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/aN),r=Math.ceil(e.qHeight/aN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*aN,qTop:e.qTop+n*aN,qWidth:Math.min(aN,e.qWidth-o*aN),qHeight:Math.min(aN,e.qHeight-n*aN)});return t};function uN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Hn.useRef(e);return t.current=e,t})(n.page),i=e,a=Hn.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,yT,e,t,!1))}),[i]),l=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(yT,e,t,!1))}),[i]),s=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(yT,e,t,!1))}),[i]),u=Hn.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(yT,e,t,!1))}),[i]),c=Hn.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(yT,e.reduce(((e,t)=>[...e,...sN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Hn.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ge.Dimension:c=[{qPath:`${yT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ge.Measures:if(o)c=l.map(((e,t)=>({qPath:`${yT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${yT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ge.Pivot:c=[{qPath:`${yT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=Hn.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${yT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return Hn.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const cN=(e,t)=>e>t?Ye.Forward:e<t?Ye.Backward:Ye.None,dN=(e,t,n)=>(r,o)=>{if(r===it.NX_DIM_CELL_PSEUDO)return xT;const i=t[n+o];return e[i]},pN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},fN=({width:e,height:t,children:n,isLeftGrid:r})=>Xs.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+St},children:n}),mN=e=>`scrollable-container--${e}`,hN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=oT();return Xs.jsx("div",{ref:t,"data-key":mN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var gN=Wn.forwardRef(hN);const vN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Xs.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bN.apply(this,arguments)}function yN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(e,t){return xN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xN(e,t)}function SN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xN(e,t)}var EN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function CN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||EN(r)&&EN(o)))return!1;var r,o;return!0}function wN(e,t){var n;void 0===t&&(t=CN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function RN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var LN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function kN(e){cancelAnimationFrame(e.id)}function MN(e,t){var n=LN();var r={id:requestAnimationFrame((function o(){LN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var IN=-1;function _N(e){if(void 0===e&&(e=!1),-1===IN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),IN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return IN}var PN=null;function AN(e){if(void 0===e&&(e=!1),null===PN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?PN="positive-descending":(t.scrollLeft=1,PN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PN}return PN}var DN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function TN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,yN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:yN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(AN()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return ON(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=_N();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(AN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&kN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?DN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var M=R;M<=L;M++)for(var I=E;I<=C;I++)k.push(Hn.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,I)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Hn.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ON=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},NN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},qN=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},FN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},zN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?jN(e,t,n,i,0,r):$N(e,t,n,Math.max(0,i),r)},jN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=FN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},$N=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&FN(e,t,r,n).offset<o;)r+=a,a*=2;return jN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},BN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=FN(e,t,n,i),u="column"===e?qN(t,i):NN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},HN=TN({getColumnOffset:function(e,t,n){return FN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return zN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=FN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:NN,getEstimatedTotalWidth:qN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return BN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return BN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return FN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return zN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=FN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=FN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),WN=function(e,t){return e};function GN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,yN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:yN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(AN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&kN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=MN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}SN(t,e),t.getDerivedStateFromProps=function(e,t){return VN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?_N():0:s.scrollHeight>s.clientHeight?_N():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(AN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&kN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?WN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(Hn.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return Hn.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:bN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Hn.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(Hn.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var VN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},UN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},YN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=UN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},KN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&UN(e,n,t).offset<r;)n+=i,i*=2;return YN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},XN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},QN=GN({getItemOffset:function(e,t,n){return UN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:XN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=UN(e,t,o),p=XN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?YN(e,t,o,0,n):KN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=UN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=UN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function JN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var ZN=["style"],eq=["style"];function tq(e,t){var n=e.style,r=RN(e,ZN),o=t.style,i=RN(t,eq);return!JN(n,o)&&!JN(r,i)}const nq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),rq=10,oq=(e,t)=>e.current===Ye.Backward?t:0,iq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},aq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,lq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(iq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&aq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},sq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ye.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return lq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},uq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=oq(n,rq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+rq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=lq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...sq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},cq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},dq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,pq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(cq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&dq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},fq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=oq(n,rq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+rq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=pq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ye.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=pq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},mq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ye.None&&(p=fq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ye.None&&(f=uq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ye.None&&a.current===Ye.None&&(p=pq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},hq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(mq,100),gq=Ce(mq,75),vq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=uT();return Xs.jsx("div",{style:{...e,...Lt,..._t(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},bq=({children:e,verticalAlign:t,width:n,right:r})=>Xs.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),yq=e=>{const{type:t,imageSize:n}=e;return t!==gT.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},xq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),Cq=Hn.forwardRef(Eq);function wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rq=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),Lq=Hn.forwardRef(Rq),kq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ze)};function Mq(e,t){const n=e.isActive(),[r,o]=Hn.useState(new Map),[i,a]=Hn.useState(null);Hn.useEffect((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=Hn.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===ot.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Hn.useCallback((t=>async n=>{if(kq(n))return;if(e.isActive()||await e.begin([yT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===ot.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[yT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=Hn.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Hn.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Iq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},_q=Hn.createContext(Iq),Pq=()=>Hn.useContext(_q),Aq=({children:e,selections:t,updatePageInfo:n})=>{const r=Mq(t,n);return Xs.jsx(_q.Provider,{value:r,children:e})};var Dq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Dq||(Dq={}));const Tq={brighter:.5,darker:.3,opacity:.03},Oq=(e,{cell:t,styleService:n})=>{if(e===Dq.Background||e===Dq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Nq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Oq(Dq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Oq(Dq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Ek(i=o,Tq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},qq=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Oq(Dq.Color,{cell:e,styleService:t}),Fq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Oq(Dq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?bt:o},zq=({cell:e,styleService:t})=>Oq(Dq.FontStyle,{cell:e,styleService:t}),jq=({cell:e,styleService:t})=>Oq(Dq.TextDecoration,{cell:e,styleService:t}),$q=e=>e?"pointer":"default",Bq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Hq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===gT.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Wq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=qq({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?Lq:Cq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,Xs.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Hq(e,o)},onClick:l?void 0:Bq({cell:e,expandOrCollapse:d})})},Gq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Vq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Uq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},Yq=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},Kq=e=>{if("alwaysFit"===e)return"contain"},Xq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=oT(),t=Hn.useRef(null),{promise:n,resolve:r}=Hn.useMemo((()=>xq()),[]);return Hn.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:Hn.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Xs.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Uq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Xs.jsx("img",{src:s,alt:u,style:{width:Vq(c),height:Gq(c),objectFit:Kq(c),objectPosition:Yq(c,d),...f},onLoad:l,ref:a})})},Qq=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},Jq={display:"flex",flexDirection:"row",alignItems:"center"},Zq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},eF=(e,t,n,r)=>t?{...Zq,...e.nullValues}:n?{...Jq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Jq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},tF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...kt,...!n&&Mt(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?bt:s,fontStyle:u,textDecoration:c}},nF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==gT.Image?Qq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},rF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=tF(n,o,i,a,e.isNull);return r.type!==gT.Image||e.isNull?Xs.jsx("span",{style:{padding:4,...s},children:l}):Xs.jsx(Xq,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},oF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},iF="flex-start",aF=(e,t)=>{return e.isNull?iF:t.type===gT.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:iF;var n},lF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=uT(),{env:a}=oT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return Xs.jsx(vq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?oF(g,t):oF(h,e),E=u.visibleMeasureInfo[S],C=GO(b.ref,E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=VO(v[S],b.ref),M={...eF(i,b.isNull,w,k.background),..._t(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Lt,padding:"0px 4px",display:"flex",justifyContent:nF(b,E,C,L,a.flags)};return Xs.jsx("div",{className:Qe,title:R,style:{...M,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Xs.jsx(bq,{width:yq(C),verticalAlign:aF(b,C),children:Xs.jsx(rF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var sF=Wn.memo(lF,tq);const uF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},cF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},dF={...Rt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},pF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=uT(),x={...dF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Hn.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return nq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Hn.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return nq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>Hn.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=oT();return Hn.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ye.None?0:rq),h=e.gridHeight+a+(l.current===Ye.None?0:rq);let g=hq;h*m>1500&&(g=gq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return JM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Hn.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Xs.jsx(HN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:cF,children:sF})};var fF=Hn.memo(pF);function mF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hF=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Wn.createElement("use",{fillRule:"evenodd"})),gF=Hn.forwardRef(hF),vF=e=>{const[t,n]=Hn.useState(!1);return JM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},bF=({interactions:e,dataModel:t})=>{const[n,r]=Hn.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=vF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!kq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function yF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Et.Transparent?EL.WHITE:l,u=null===(o=$L(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=$L(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const xF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=oT(),{isActive:u}=Pq(),c=uT(),[,d]=Hn.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=yF(c,e);return Xs.jsx(mA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*hT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function SF(e){return I_(e)}const EF=e=>e.scrollTop;function CF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function wF(e){return Rl("MuiPaper",e)}Ll("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const RF=["className","component","elevation","square","variant"],LF=sA("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Xt({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Xt({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${z_("#fff",dA(t.elevation))}, ${z_("#fff",dA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var kF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=rn(n,RF),u=Xt({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},wF,o)})(u);return Xs.jsx(LF,Xt({as:o,ownerState:u,className:Pl(c.root,r),ref:t},s))}));var MF=Ll("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const IF=["center","classes","className"];let _F,PF,AF,DF,TF=e=>e;const OF=ha(_F||(_F=TF`
|
|
120
|
+
`),$C.rippleVisible,YC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$C.child,$C.childLeaving,KC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.childPulsate,XC,(({theme:e})=>e.transitions.easing.easeInOut)),ZC=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Go(n,BC),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=ao.useRef(0),f=ao.useRef(null),m=ao.useRef(null);ao.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(JC,{classes:{ripple:Fd(o.ripple,$C.ripple),rippleVisible:Fd(o.rippleVisible,$C.rippleVisible),ripplePulsate:Fd(o.ripplePulsate,$C.ripplePulsate),child:Fd(o.child,$C.child),childLeaving:Fd(o.childLeaving,$C.childLeaving),childPulsate:Fd(o.childPulsate,$C.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.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 ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(QC,Wo({className:Fd($C.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var ew=ZC;function tw(e){return ld("MuiButtonBase",e)}var nw=sd("MuiButtonBase",["root","disabled","focusVisible"]);const rw=["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"],ow=Od("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"},[`&.${nw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Go(n,rw),A=ao.useRef(null),D=ao.useRef(null),T=Vc(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=nd(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Gc((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Gc((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Gc((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Gc((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Vc(t,F,A),se=Wo({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},tw,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(ow,Wo({as:ie,className:Fd(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(ew,Wo({ref:T,center:o},I)):null]}))}));var aw=iw;function lw(e){return ld("MuiTypography",e)}sd("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uw=Od("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${qc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Wo({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}))),cw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTypography"}),r=(e=>dw[e]||e)(n.color),o=vc(Wo({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cw}=o,f=Go(o,sw),m=Wo({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||cw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Fs({root:["root",i,"inherit"!==e.align&&`align${qc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},lw,a)})(m);return fc.jsx(uw,Wo({as:h,ref:t,ownerState:m,className:Fd(g.root,a)},f))}));var fw=pw;const mw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hw(e){const t=[],n=[];return Array.from(e.querySelectorAll(mw)).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 gw(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=hw,isEnabled:a=gw,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const bw=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));function yw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xw(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function Sw(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&&yw(e,o)}))}function Ew(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Cw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${xw(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${xw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(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 ww=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&&yw(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);Sw(t,e.mount,e.modalRef,r,!0);const o=Ew(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=Ew(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Cw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ew(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&&yw(e.modalRef,t),Sw(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&&yw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Rw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ww,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&yw(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=qC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=mr({},n,t);return mr({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>mr({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const Lw=["onChange","maxRows","minRows","style","value"];function kw(e){return parseInt(e,10)||0}const Iw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Mw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _w=ao.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Sr(e,Lw),{current:s}=ao.useRef(null!=a),u=ao.useRef(null),c=Es(t,u),d=ao.useRef(null),p=ao.useRef(0),[f,m]=ao.useState({outerHeightStyle:0}),h=ao.useCallback((()=>{const t=u.current,n=bs(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=kw(n.paddingBottom)+kw(n.paddingTop),s=kw(n.borderBottomWidth)+kw(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=ao.useCallback((()=>{const e=h();Mw(e)||m((t=>g(t,e)))}),[h]);xs((()=>{const e=()=>{p.current=0,(()=>{const e=h();Mw(e)||pC.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=gs(e),n=u.current,r=bs(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),xs((()=>{v()})),ao.useEffect((()=>{p.current=0}),[a]);return fc.jsxs(ao.Fragment,{children:[fc.jsx("textarea",mr({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:mr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),fc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:mr({},Iw,i,{paddingTop:0,paddingBottom:0})})]})}));function Pw({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 Aw=ao.createContext(void 0);function Dw(){return ao.useContext(Aw)}function Tw(e){return fc.jsx(mc,Wo({},e,{defaultTheme:Md,themeId:Ho}))}function Ow(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Nw(e,t=!1){return e&&(Ow(e.value)&&""!==e.value||t&&Ow(e.defaultValue)&&""!==e.defaultValue)}function qw(e){return ld("MuiInputBase",e)}var Fw=sd("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const zw=["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"],jw=(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${qc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$w=(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]},Bw=Od("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>Wo({},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",[`&.${Fw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Wo({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Hw=Od("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Wo({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 Wo({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] + .${Fw.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},[`&.${Fw.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"})})),Ww=fc.jsx(Tw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Gw=ao.forwardRef((function(e,t){var n;const r=Pd({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=Go(r,zw),z=null!=v.value?v.value:q,{current:j}=ao.useRef(null!=z),$=ao.useRef(),B=ao.useCallback((e=>{}),[]),H=Vc($,b,v.ref,B),[W,G]=ao.useState(!1),V=Dw(),U=Pw({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,ao.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=ao.useCallback((e=>{Nw(e)?Y&&Y():K&&K()}),[Y,K]);jc((()=>{j&&X({value:z})}),[z,X,j]);ao.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Wo(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=_w);ao.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Wo({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Fs({root:["root",`color${qc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${qc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},qw,t)})(Z),te=T.root||s.Root||Bw,ne=D.root||u.root||{},re=T.input||s.Input||Hw;return J=Wo({},J,null!=(n=D.input)?n:u.input),fc.jsxs(ao.Fragment,{children:[!p&&Ww,fc.jsxs(te,Wo({},ne,!NC(te)&&{ownerState:Wo({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Fd(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,fc.jsx(Aw.Provider,{value:null,children:fc.jsx(re,Wo({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!NC(re)&&{as:Q,ownerState:Wo({},Z,J.ownerState)},{ref:H,className:Fd(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(Bo(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Wo({},U,{startAdornment:O})):null]}))]})}));var Vw=Gw;function Uw(e){return ld("MuiInput",e)}var Yw=Wo({},Fw,sd("MuiInput",["root","underline","input"]));function Kw(e){return ld("MuiOutlinedInput",e)}var Xw=Wo({},Fw,sd("MuiOutlinedInput",["root","notchedOutline","input"]));function Qw(e){return ld("MuiFilledInput",e)}var Jw=Wo({},Fw,sd("MuiFilledInput",["root","underline","input"])),Zw=function(e,t){function n(n,r){return fc.jsx(Hd,Wo({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Hd.muiName,ao.memo(ao.forwardRef(n))}(fc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const eR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tR={entering:{opacity:1},entered:{opacity:1}},nR=ao.forwardRef((function(e,t){const n=_d(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=Go(e,eR),y=ao.useRef(null),x=Vc(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{_C(e);const r=PC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=PC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,Wo({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,Wo({style:Wo({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},tR[e],h,a.props.style),ref:x},t))}))}));var rR=nR;function oR(e){return ld("MuiBackdrop",e)}sd("MuiBackdrop",["root","invisible"]);const iR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aR=Od("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Wo({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"}))),lR=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rR,transitionDuration:g}=i,v=Go(i,iR),b=Wo({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},oR,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,Wo({in:p,timeout:g},v,{children:fc.jsx(aR,Wo({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Fd(y.root,l,null==x?void 0:x.className),ownerState:Wo({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var sR=lR;var uR=sd("MuiBox",["root"]);const cR=Id(),dR=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qu);return ao.forwardRef((function(e,a){const l=rc(n),s=vc(e),{className:u,component:c="div"}=s,d=Sr(s,bc);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Ho,defaultTheme:cR,defaultClassName:uR.root,generateClassName:id.generate});var pR=dR;function fR(e){return ld("MuiButton",e)}var mR=sd("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 hR=ao.createContext({});var gR=ao.createContext(void 0);const vR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bR=e=>Wo({},"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}}),yR=Od(aw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${qc(n.color)}`],t[`size${qc(n.size)}`],t[`${n.variant}Size${qc(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 Wo({},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":Wo({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(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})`:Dc(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})`:Dc(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":Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mR.focusVisible}`]:Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mR.disabled}`]:Wo({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 ${Dc(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"},[`&.${mR.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mR.disabled}`]:{boxShadow:"none"}})),xR=Od("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},bR(e)))),SR=Od("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},bR(e)))),ER=ao.forwardRef((function(e,t){const n=ao.useContext(hR),r=ao.useContext(gR),o=Pd({props:rd(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Go(o,vR),x=Wo({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Wo({},a,Fs({root:["root",i,`${i}${qc(t)}`,`size${qc(o)}`,`${i}Size${qc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${qc(o)}`],endIcon:["endIcon",`iconSize${qc(o)}`]},fR,a))})(x),E=g&&fc.jsx(xR,{className:S.startIcon,ownerState:x,children:g}),C=p&&fc.jsx(SR,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return fc.jsxs(yR,Wo({ownerState:x,className:Fd(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Fd(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var CR=ER;function wR(e){return ld("MuiModal",e)}sd("MuiModal",["root","hidden","backdrop"]);const RR=["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"],LR=Od("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})=>Wo({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kR=Od(sR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IR=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Pd({name:"MuiModal",props:e}),{BackdropComponent:u=kR,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Go(s,RR),P=Wo({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Rw(Wo({},P,{rootRef:t})),z=Wo({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wR,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:LR,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=jC({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Fd(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=jC({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Wo({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Fd(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(bw,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,Wo({},V,{children:[!w&&u?fc.jsx(H,Wo({},U)):null,fc.jsx(vw,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var MR=IR;function _R(e){return ld("MuiDivider",e)}var PR=sd("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const AR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DR=Od("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})=>Wo({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)`:Dc(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})=>Wo({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Wo({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),TR=Od("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Wo({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)`}))),OR=ao.forwardRef((function(e,t){const n=Pd({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=Go(n,AR),m=Wo({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Fs({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"]},_R,r)})(m);return fc.jsx(DR,Wo({as:a,className:Fd(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?fc.jsx(TR,{className:h.wrapper,ownerState:m,children:o}):null}))}));OR.muiSkipListHighlight=!0;var NR=OR;const qR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],FR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(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 Wo({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}},[`&.${Jw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jw.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"},[`&.${Jw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jw.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(.${Jw.disabled}, .${Jw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jw.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Wo({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}))})),zR=Od(Hw,{name:"MuiFilledInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({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}))),jR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Go(a,qR),g=Wo({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Qw,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Nc(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:FR,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:zR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));jR.muiName="Input";var $R=jR;const BR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HR(e){return`scale(${e}, ${e**2})`}const WR={entering:{opacity:1,transform:HR(1)},entered:{opacity:1,transform:"none"}},GR="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),VR=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=Go(e,BR),v=ao.useRef(),b=ao.useRef(),y=_d(),x=ao.useRef(null),S=Vc(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{_C(e);const{duration:n,delay:r,easing:o}=PC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:GR?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=PC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:GR?o:.666*o,delay:GR?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HR(.75),c&&c(e)})),I=E(d);return ao.useEffect((()=>()=>{clearTimeout(v.current)}),[]),fc.jsx(h,Wo({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,Wo({style:Wo({opacity:0,transform:HR(.75),visibility:"exited"!==e||a?void 0:"hidden"},WR[e],f,o.props.style),ref:S},t))}))}));VR.muiSupportAuto=!0;var UR=VR;const YR=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(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})`),Wo({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"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.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(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),XR=Od(Hw,{name:"MuiInput",slot:"Input",overridesResolver:$w})({}),QR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Go(a,YR),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Uw,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Nc(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:KR,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:XR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));QR.muiName="Input";var JR=QR;function ZR(e){return ld("MuiLink",e)}var eL=sd("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const tL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var nL=({theme:e,ownerState:t})=>{const n=(e=>tL[e]||e)(t.color),r=au(e,`palette.${n}`,!1)||t.color,o=au(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Dc(r,.4)};const rL=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oL=Od(fw,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${qc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Wo({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Wo({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:nL({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"},[`&.${eL.focusVisible}`]:{outline:"auto"}}))),iL=ao.forwardRef((function(e,t){const n=Pd({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=Go(n,rL),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=nd(),[v,b]=ao.useState(!1),y=Vc(t,g),x=Wo({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Fs({root:["root",`underline${qc(o)}`,"button"===n&&"button",r&&"focusVisible"]},ZR,t)})(x);return fc.jsx(oL,Wo({color:o,className:Fd(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(tL).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var aL=iL;var lL=ao.createContext({});function sL(e){return ld("MuiList",e)}sd("MuiList",["root","padding","dense","subheader"]);const uL=["children","className","component","dense","disablePadding","subheader"],cL=Od("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})=>Wo({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var dL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Go(n,uL),c=ao.useMemo((()=>({dense:a})),[a]),d=Wo({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sL,t)})(d);return fc.jsx(lL.Provider,{value:c,children:fc.jsxs(cL,Wo({as:i,className:Fd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function pL(e){return ld("MuiListItemIcon",e)}var fL=sd("MuiListItemIcon",["root","alignItemsFlexStart"]);const mL=["className"],hL=Od("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})=>Wo({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var gL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Go(n,mL),i=Wo({},n,{alignItems:ao.useContext(lL).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Fs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},pL,n)})(i);return fc.jsx(hL,Wo({className:Fd(a.root,r),ownerState:i,ref:t},o))}));var vL=sd("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const bL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yL(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xL(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function SL(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 EL(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")&&SL(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var CL=ao.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=Go(e,bL),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jc((()=>{r&&p.current.focus()}),[r]),ao.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)}(Fc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Vc(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(dL,Wo({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Fc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),EL(t,r,s,l,yL);else if("ArrowUp"===n)e.preventDefault(),EL(t,r,s,l,xL);else if("Home"===n)e.preventDefault(),EL(t,null,s,l,yL);else if("End"===n)e.preventDefault(),EL(t,null,s,l,xL);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&&SL(r,o);o.previousKeyMatched&&(s||EL(t,r,!1,l,yL,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function wL(e){return ld("MuiPopover",e)}sd("MuiPopover",["root","paper"]);const RL=["onEntering"],LL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kL=["slotProps"];function IL(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ML(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _L(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PL(e){return"function"==typeof e?e():e}const AL=Od(MR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=Od(OC,{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 TL=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=UR,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Go(i.TransitionProps,RL),L=Go(i,LL),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Vc(I,k.ref),_=Wo({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},wL,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=PL(l),t=(e&&1===e.nodeType?e:Fc(I.current).body).getBoundingClientRect();return{top:t.top+IL(t,s.vertical),left:t.left+ML(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:IL(e,x.vertical),horizontal:ML(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:_L(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=zc(PL(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:_L(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.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=zc(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?Fc(PL(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:AL,$=null!=(o=null==b?void 0:b.paper)?o:DL,B=jC({elementType:$,externalSlotProps:Wo({},k,{style:O?k.style:Wo({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Fd(P.paper,null==k?void 0:k.className)}),H=jC({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Fd(P.root,p)}),{slotProps:W}=H,G=Go(H,kL);return fc.jsx(j,Wo({},G,!NC(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,Wo({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,Wo({},B,{children:d}))}))}))}));function OL(e){return ld("MuiMenu",e)}sd("MuiMenu",["root","paper","list"]);const NL=["onEntering"],qL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FL={vertical:"top",horizontal:"right"},zL={vertical:"top",horizontal:"left"},jL=Od(TL,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$L=Od(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BL=Od(CL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var HL=ao.forwardRef((function(e,t){var n,r;const o=Pd({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Go(o.TransitionProps,NL),x=Go(o,qL),S=_d(),E="rtl"===S.direction,C=Wo({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},OL,t)})(C),R=i&&!s&&d,L=ao.useRef(null);let k=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:$L,M=null!=(r=b.paper)?r:p,_=jC({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=jC({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return fc.jsx(jL,Wo({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FL:zL,slots:{paper:I,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Wo({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:fc.jsx(BL,Wo({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Fd(w.list,u.className),children:a}))}))}));function WL(e){return ld("MuiMenuItem",e)}var GL=sd("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const VL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UL=Od(aw,{shouldForwardProp:e=>Ad(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})=>Wo({},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"}},[`&.${GL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GL.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GL.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dc(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})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PR.inset}`]:{marginLeft:52},[`& .${vL.root}`]:{marginTop:0,marginBottom:0},[`& .${vL.inset}`]:{paddingLeft:36},[`& .${fL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Wo({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fL.root} svg`]:{fontSize:"1.25rem"}}))));var YL=ao.forwardRef((function(e,t){const n=Pd({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=Go(n,VL),f=ao.useContext(lL),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);jc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Wo({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Wo({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},WL,a))})(n),b=Vc(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(lL.Provider,{value:m,children:fc.jsx(UL,Wo({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Fd(v.focusVisible,s),className:Fd(v.root,d)},p,{ownerState:g,classes:v}))})}));function KL(e){return ld("MuiNativeSelect",e)}var XL=sd("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const QL=["className","disabled","error","IconComponent","inputRef","variant"],JL=({ownerState:e,theme:t})=>Wo({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Wo({},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"},[`&.${XL.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}}),ZL=Od("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ad,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${XL.multiple}`]:t.multiple}]}})(JL),ek=({ownerState:e,theme:t})=>Wo({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XL.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),tk=Od("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),nk=ao.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Go(e,QL),u=Wo({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"]},KL,t)})(u);return fc.jsxs(ao.Fragment,{children:[fc.jsx(ZL,Wo({ownerState:u,className:Fd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:fc.jsx(tk,{as:i,ownerState:u,className:c.icon})]})}));var rk,ok=nk;const ik=["children","classes","className","label","notched"],ak=Od("fieldset",{shouldForwardProp:Ad})({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%"}),lk=Od("legend",{shouldForwardProp:Ad})((({ownerState:e,theme:t})=>Wo({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&&Wo({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 sk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uk=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Wo({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Xw.focused} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xw.error} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xw.disabled} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Wo({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ck=Od((function(e){const{className:t,label:n,notched:r}=e,o=Go(e,ik),i=null!=n&&""!==n,a=Wo({},e,{notched:r,withLabel:i});return fc.jsx(ak,Wo({"aria-hidden":!0,className:t,ownerState:a},o,{children:fc.jsx(lk,{ownerState:a,children:i?fc.jsx("span",{children:n}):rk||(rk=fc.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}})),dk=Od(Hw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({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}))),pk=ao.forwardRef((function(e,t){var n,r,o,i,a;const l=Pd({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Go(l,sk),v=(e=>{const{classes:t}=e;return Wo({},t,Fs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Kw,t))})(l),b=Dw(),y=Pw({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Wo({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:uk,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:dk;return fc.jsx(Vw,Wo({slots:{root:S,input:E},renderSuffix:e=>fc.jsx(ck,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=fc.jsxs(ao.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Wo({},v,{notchedOutline:null})}))}));pk.muiName="Input";var fk=pk;function mk(e){return ld("MuiSelect",e)}var hk,gk=sd("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const vk=["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"],bk=Od("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gk.select}`]:t.select},{[`&.${gk.select}`]:t[n.variant]},{[`&.${gk.error}`]:t.error},{[`&.${gk.multiple}`]:t.multiple}]}})(JL,{[`&.${gk.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yk=Od("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),xk=Od("input",{shouldForwardProp:e=>Dd(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 Sk(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ek(e){return null==e||"string"==typeof e&&!e.trim()}const Ck=ao.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:_,variant:P="standard"}=e,A=Go(e,vk),[D,T]=Wc({controlled:_,default:c,name:"Select"}),[O,N]=Wc({controlled:R,default:u,name:"Select"}),q=ao.useRef(null),F=ao.useRef(null),[z,j]=ao.useState(null),{current:$}=ao.useRef(null!=R),[B,H]=ao.useState(),W=Vc(t,h),G=ao.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;ao.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),ao.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),ao.useEffect((()=>{i&&F.current.focus()}),[i]),ao.useEffect((()=>{if(!g)return;const e=Fc(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=ao.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(Nw({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!ao.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(Bo(2));t=D.some((t=>Sk(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=Sk(D,e.props.value),t&&ee&&(J=e.props.children);return ao.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Wo({},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 Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},mk,t)})(ie),le=Wo({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Hc();return fc.jsxs(ao.Fragment,{children:[fc.jsx(bk,Wo({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:Fd(I.className,ae.select,s),id:oe,children:Ek(Q)?hk||(hk=fc.jsx("span",{className:"notranslate",children:""})):Q})),fc.jsx(xk,Wo({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),fc.jsx(yk,{as:m,className:ae.icon,ownerState:ie}),fc.jsx(HL,Wo({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Wo({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Wo({},v.slotProps,{paper:Wo({},le,{style:Wo({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var wk=Ck;const Rk=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Lk=["root"],kk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ad(e)&&"variant"!==e,slot:"Root"},Ik=Od(JR,kk)(""),Mk=Od(fk,kk)(""),_k=Od($R,kk)(""),Pk=ao.forwardRef((function(e,t){const n=Pd({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Zw,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=Go(n,Rk),R=v?ok:wk,L=Pw({props:n,muiFormControl:Dw(),states:["variant","error"]}),k=L.variant||C,I=Wo({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=Go(M,Lk),P=d||{standard:fc.jsx(Ik,{ownerState:I}),outlined:fc.jsx(Mk,{label:f,ownerState:I}),filled:fc.jsx(_k,{ownerState:I})}[k],A=Vc(t,P.ref);return fc.jsx(ao.Fragment,{children:ao.cloneElement(P,Wo({inputComponent:R,inputProps:Wo({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Wo({id:c},E)},p,{classes:p?Nc(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Fd(P.props.className,a,M.root)},!d&&{variant:k},w))})}));Pk.muiName="Select";var Ak=Pk,Dk=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:co.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Tk={MuiAccordion:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:co.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(Ro,{"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 ${co.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,borderRadius:go,backgroundColor:co.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 ${co.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:co.WHITE,color:co.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:go},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:go,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:co.PURPLE,"&.Mui-focusVisible":{borderColor:co.PURPLE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:co.GREEN,"&.Mui-focusVisible":{borderColor:co.GREEN,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:co.BLUE,"&.Mui-focusVisible":{borderColor:co.BLUE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:co.ORANGE,"&.Mui-focusVisible":{borderColor:co.ORANGE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:co.RED,"&.Mui-focusVisible":{borderColor:co.RED,boxShadow:`0 0 0 3px ${Dc(co.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:co.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:co.PURPLE_PALE},"&:active":{backgroundColor:co.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:co.PURPLE_PALE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:co.ORANGE_PALE},"&:active":{backgroundColor:co.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:co.ORANGE_PALE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:co.RED_PALE},"&:active":{backgroundColor:co.RED_DARK},"&.Mui-focusVisible":{borderColor:co.RED_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:co.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:co.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:go,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:po,borderRadius:go,color:co.TEXT_PRIMARY,backgroundColor:co.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:co.GREYSCALE_0_05,color:co.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:co.GREEN,borderColor:co.GREEN},"&.MuiChip-outlinedInfo":{color:co.BLUE,borderColor:co.BLUE},"&.MuiChip-outlinedWarning":{color:co.ORANGE,borderColor:co.ORANGE},"&.MuiChip-outlinedError":{color:co.RED,borderColor:co.RED}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:go,boxShadow:"none",backgroundColor:co.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:co.GREEN,borderColor:co.GREEN},outlinedSecondary:{color:co.BLUE,borderColor:co.BLUE},label:{fontFamily:So.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(Ro,{"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:go},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:go,fontSize:fo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:co.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${co.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:co.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:co.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:co.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:go,border:`solid 1px ${co.GREYSCALE_0_15}`,color:co.GREYSCALE_0_60,marginRight:0,width:ho,height:ho},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${co.GREYSCALE_0_15}`},clearIndicator:{borderRadius:go,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:co.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:po,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:co.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:co.GREYSCALE_25,fontSize:po,fontFamily:So.FONT_FAMILY,fontWeight:yo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:co.TEXT_PRIMARY},"&.Mui-error":{color:co.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:co.TEXT_SECONDARY,content:"'(optional)'",fontWeight:bo,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:co.TEXT_SECONDARY,content:"'(required)'",fontWeight:bo,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fo,lineHeight:"16px",backgroundColor:co.WHITE,borderRadius:go,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_05}`,borderColor:co.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.RED}`,boxShadow:`0px 0px 0px 1px ${co.RED}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_10}`,borderColor:co.GREYSCALE_0_10,backgroundColor:co.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:co.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:co.GREYSCALE_0_15,borderRadius:go,boxShadow:`inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(Ro,{...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:co.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:co.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_10},"&:focus":{backgroundColor:co.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:co.GREYSCALE_0_30,"&:hover":{backgroundColor:co.GREYSCALE_0_0,borderColor:co.GREYSCALE_0_15},"& ~svg":{color:co.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:go}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:co.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:fo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:po,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:po,fontWeight:yo,color:co.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement(Po,null),checkedIcon:lo.createElement(Ao,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:co.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:co.GREYSCALE_0_20}},"&.Mui-disabled":{fill:co.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(Dk,null),checkedIcon:lo.createElement(Mo,null),indeterminateIcon:lo.createElement(_o,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:go,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:co.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:co.GREYSCALE_0_55,color:co.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:co.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:co.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:co.GREYSCALE_0_55,"&:hover":{color:co.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:co.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:co.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fo,color:co.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yo},secondary:{fontSize:po,color:co.GREYSCALE_45,fontWeight:bo,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:co.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:po,borderBottom:`solid 1px ${co.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fo,color:co.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:co.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:co.RED}}},"&.Mui-focusVisible":{backgroundColor:co.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:co.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:co.GREEN,height:"24px","&.Mui-disabled":{color:co.GREYSCALE_0_15}},rail:{backgroundColor:co.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go,boxShadow:`inset 0px 0px 0px 1px ${co.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.WHITE,boxShadow:`0px 1px 2px 0px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`,"&:hover":{borderRadius:go,boxShadow:`0 2px 4px 0 ${co.GREYSCALE_0_30}, 0 0 0 1px ${co.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:co.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:co.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:co.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:co.GREYSCALE_0_15},markLabel:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:co.WHITE,color:co.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:co.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:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:co.GREYSCALE_0_15,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.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:fo,fontWeight:yo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${co.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,backgroundColor:co.GREYSCALE_0_03,borderRadius:go},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:co.GREYSCALE_25,"&.Mui-selected":{color:co.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${co.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${co.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${co.GREYSCALE_85}`,borderRight:`1px solid ${co.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yo,backgroundColor:co.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:co.GREYSCALE_98,borderBottom:`1px solid ${co.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${co.GREYSCALE_85}`,borderTop:`1px solid ${co.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:co.GREYSCALE_0_05,"&:hover":{backgroundColor:co.GREYSCALE_0_03}},"&&:hover":{backgroundColor:co.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement(Do,{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 ${co.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fo,borderRadius:go,padding:"7px 16px",border:`1px solid ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_60,color:co.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_30}`},"&:hover":{backgroundColor:co.GREYSCALE_0_03,border:`1px solid ${co.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:co.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`,border:`1px solid ${co.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:co.GREYSCALE_25,backgroundColor:co.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:po,height:24,width:24,padding:7},sizeLarge:{fontSize:mo,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fo,borderRadius:go}}},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:co.GREYSCALE_20},tooltip:{backgroundColor:co.GREYSCALE_20,fontSize:po,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Ok={mode:"light",primary:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},secondary:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},error:{light:co.RED_PALE,main:co.RED,dark:co.RED_DARK,contrastText:co.WHITE},warning:{light:co.ORANGE_PALE,main:co.ORANGE,dark:co.ORANGE_DARK,contrastText:co.WHITE},success:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},info:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},text:{primary:co.TEXT_PRIMARY,secondary:co.TEXT_SECONDARY,disabled:co.GREYSCALE_0_30},action:{hover:co.GREYSCALE_0_03,hoverOpacity:.05,selected:co.GREYSCALE_0_05,focus:co.MISC_FOCUS_BORDER},amethyst:{main:co.PURPLE,light:co.PURPLE_PALE,dark:co.PURPLE_DARK,contrastText:co.WHITE},background:{paper:co.WHITE,default:co.GREYSCALE_95},divider:co.GREYSCALE_0_15},Nk=e=>({components:Tk,palette:Ok,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:fo,fontWeightLight:vo,fontWeightRegular:bo,fontWeightMedium:yo,fontWeightBold:xo,htmlFontSize:fo,fontFamily:So.FONT_FAMILY,button:{fontWeight:yo,fontSize:fo,textTransform:"none"},body1:{fontSize:mo,lineHeight:"24px"},body2:{fontSize:fo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ho,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:mo,fontWeight:yo,lineHeight:"16px"},h6:{fontSize:fo,fontWeight:yo,lineHeight:"16px"},caption:{color:co.TEXT_SECONDARY},subtitle1:{fontSize:fo,color:co.TEXT_SECONDARY},subtitle2:{fontSize:po,color:co.TEXT_SECONDARY}},shape:{borderRadius:go}}),qk={...uo,MISC_FOCUS_BORDER:co.MISC_FOCUS_BORDER},Fk=Nk().palette,zk={TEXT:Fk.text.primary,DISABLED:Fk.text.disabled,HOVER:Fk.action.hover,WHITE:qk.GREYSCALE_100,BORDER_LIGHT:qk.GREYSCALE_90,BORDER_MEDIUM:qk.GREYSCALE_85,BORDER_HEAVY:qk.GREYSCALE_50,DARK_MODE_TEXT:qk.GREYSCALE_95,DARK_MODE_BORDER:qk.GREYSCALE_95,DARK_MODE_DISABLED:qk.GREYSCALE_70,DARK_MODE_BACKGROUND:qk.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:qk.GREYSCALE_95};function jk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $k(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bk(){}var Hk=.7,Wk=1/Hk,Gk="\\s*([+-]?\\d+)\\s*",Vk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${Gk},${Gk},${Gk}\\)$`),Xk=new RegExp(`^rgb\\(${Uk},${Uk},${Uk}\\)$`),Qk=new RegExp(`^rgba\\(${Gk},${Gk},${Gk},${Vk}\\)$`),Jk=new RegExp(`^rgba\\(${Uk},${Uk},${Uk},${Vk}\\)$`),Zk=new RegExp(`^hsl\\(${Vk},${Uk},${Uk}\\)$`),eI=new RegExp(`^hsla\\(${Vk},${Uk},${Uk},${Vk}\\)$`),tI={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 nI(){return this.rgb().formatHex()}function rI(){return this.rgb().formatRgb()}function oI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Yk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?iI(t):3===n?new uI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?aI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?aI(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=Kk.exec(e))?new uI(t[1],t[2],t[3],1):(t=Xk.exec(e))?new uI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qk.exec(e))?aI(t[1],t[2],t[3],t[4]):(t=Jk.exec(e))?aI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Zk.exec(e))?hI(t[1],t[2]/100,t[3]/100,1):(t=eI.exec(e))?hI(t[1],t[2]/100,t[3]/100,t[4]):tI.hasOwnProperty(e)?iI(tI[e]):"transparent"===e?new uI(NaN,NaN,NaN,0):null}function iI(e){return new uI(e>>16&255,e>>8&255,255&e,1)}function aI(e,t,n,r){return r<=0&&(e=t=n=NaN),new uI(e,t,n,r)}function lI(e){return e instanceof Bk||(e=oI(e)),e?new uI((e=e.rgb()).r,e.g,e.b,e.opacity):new uI}function sI(e,t,n,r){return 1===arguments.length?lI(e):new uI(e,t,n,null==r?1:r)}function uI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function cI(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}`}function dI(){const e=pI(this.opacity);return`${1===e?"rgb(":"rgba("}${fI(this.r)}, ${fI(this.g)}, ${fI(this.b)}${1===e?")":`, ${e})`}`}function pI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mI(e){return((e=fI(e))<16?"0":"")+e.toString(16)}function hI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vI(e,t,n,r)}function gI(e){if(e instanceof vI)return new vI(e.h,e.s,e.l,e.opacity);if(e instanceof Bk||(e=oI(e)),!e)return new vI;if(e instanceof vI)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 vI(a,l,s,e.opacity)}function vI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function bI(e){return(e=(e||0)%360)<0?e+360:e}function yI(e){return Math.max(0,Math.min(1,e||0))}function xI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}jk(Bk,oI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nI,formatHex:nI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gI(this).formatHsl()},formatRgb:rI,toString:rI}),jk(uI,sI,$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uI(fI(this.r),fI(this.g),fI(this.b),pI(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:cI,formatHex:cI,formatHex8:function(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}${mI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dI,toString:dI})),jk(vI,(function(e,t,n,r){return 1===arguments.length?gI(e):new vI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new vI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new vI(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 uI(xI(e>=240?e-240:e+120,o,r),xI(e,o,r),xI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vI(bI(this.h),yI(this.s),yI(this.l),pI(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=pI(this.opacity);return`${1===e?"hsl(":"hsla("}${bI(this.h)}, ${100*yI(this.s)}%, ${100*yI(this.l)}%${1===e?")":`, ${e})`}`}}));const SI=Math.PI/180,EI=180/Math.PI,CI=.96422,wI=1,RI=.82521,LI=4/29,kI=6/29,II=3*kI*kI,MI=kI*kI*kI;function _I(e){if(e instanceof PI)return new PI(e.l,e.a,e.b,e.opacity);if(e instanceof qI)return FI(e);e instanceof uI||(e=lI(e));var t,n,r=OI(e.r),o=OI(e.g),i=OI(e.b),a=AI((.2225045*r+.7168786*o+.0606169*i)/wI);return r===o&&o===i?t=n=a:(t=AI((.4360747*r+.3850649*o+.1430804*i)/CI),n=AI((.0139322*r+.0971045*o+.7141733*i)/RI)),new PI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function PI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function AI(e){return e>MI?Math.pow(e,1/3):e/II+LI}function DI(e){return e>kI?e*e*e:II*(e-LI)}function TI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function OI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function NI(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qI)return new qI(e.h,e.c,e.l,e.opacity);if(e instanceof PI||(e=_I(e)),0===e.a&&0===e.b)return new qI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*EI;return new qI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qI(e,t,n,null==r?1:r)}function qI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function FI(e){if(isNaN(e.h))return new PI(e.l,0,0,e.opacity);var t=e.h*SI;return new PI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jk(PI,(function(e,t,n,r){return 1===arguments.length?_I(e):new PI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return new PI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new PI(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 uI(TI(3.1338561*(t=CI*DI(t))-1.6168667*(e=wI*DI(e))-.4906146*(n=RI*DI(n))),TI(-.9787684*t+1.9161415*e+.033454*n),TI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),jk(qI,NI,$k(Bk,{brighter(e){return new qI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return FI(this).rgb()}}));const zI=(e,t)=>{const n=NI(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()},jI=e=>{if(e){const t=sI(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},$I=e=>!!e&&0===sI(e).opacity,BI=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,HI=e=>{const t=BI.exec(e);if(t){const[,e,n,r,o]=t;return sI(+n,+r,+o,+e/255)}return sI(e)},WI=e=>{const t=HI(e);return Number.isNaN(t.r)?null:t.toString()},GI=e=>{e.stopPropagation(),e.preventDefault()},VI="#grid",UI=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},YI=(e,t,n,r,o)=>{const i=UI(".qv-object .qv-inner-object",n),a=UI(".qv-panel-sheet",n),l=UI(VI,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return WI(s);if("none"===u)return"transparent";if(void 0===u)return;const c=HI(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=$I(p),m=jI(f?s:p),h=((e,t,n)=>e&&!$I(e)?e:$I(t)?n&&!$I(n)?n:zk.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},KI=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(VI),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:YI(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function XI(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]}const QI=3,JI="N";function ZI(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 eM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=QI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=ao.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=wn(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=wn((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ZI(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(JI).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var tM,nM=pC;tM=nM.createRoot,nM.hydrateRoot;function rM(e,t){const[n,r]=ao.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var oM={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 iM=({translator:e})=>(ao.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oM).forEach((t=>{e.add(oM[t])}))}}(e)),[e]),e),aM=document.createElement("textarea");function lM(e){aM.value=e,document.body.appendChild(aM),aM.select(),aM.setSelectionRange(0,aM.value.length),document.execCommand("copy"),document.body.removeChild(aM)}aM.style.position="absolute",aM.style.left="-9999px",aM.setAttribute("readonly","");function sM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Je}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>lM(n))):lM(n))})(r)}})}))}var uM="$$material";const cM=["values","unit","step"],dM=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)=>mr({},e,{[t.key]:t.val})),{})};function pM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Sr(e,cM),i=dM(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 mr({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 fM={borderRadius:4};function mM(e,t){return t?$l(e,t,{clone:!1}):e}const hM={xs:0,sm:600,md:900,lg:1200,xl:1536},gM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hM[e]}px)`};function vM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||gM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||gM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||hM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function bM(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 yM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:bM(e,n)||r,t&&(o=t(o,r,e)),o}function xM(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=bM(e.theme,r)||{};return vM(e,i,(e=>{let r=yM(a,o,e);return e===r&&"string"==typeof e&&(r=yM(a,o,`${t}${"default"===e?"":fs(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const SM={m:"margin",p:"padding"},EM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},CM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!CM[e])return[e];e=CM[e]}const[t,n]=e.split(""),r=SM[t],o=EM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),RM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function kM(e,t,n,r){var o;const i=null!=(o=bM(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 IM(e){return kM(e,"spacing",8)}function MM(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 _M(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=MM(t,n),e)),{})}(wM(n),r);return vM(e,e[n],o)}function PM(e,t){const n=IM(e.theme);return Object.keys(e).map((r=>_M(e,t,r,n))).reduce(mM,{})}function AM(e){return PM(e,RM)}function DM(e){return PM(e,LM)}function TM(...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]?mM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function OM(e){return"number"!=typeof e?e:`${e}px solid`}function NM(e,t){return xM({prop:e,themeKey:"borders",transform:t})}AM.propTypes={},AM.filterProps=RM,DM.propTypes={},DM.filterProps=LM;const qM=NM("border",OM),FM=NM("borderTop",OM),zM=NM("borderRight",OM),jM=NM("borderBottom",OM),$M=NM("borderLeft",OM),BM=NM("borderColor"),HM=NM("borderTopColor"),WM=NM("borderRightColor"),GM=NM("borderBottomColor"),VM=NM("borderLeftColor"),UM=NM("outline",OM),YM=NM("outlineColor"),KM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=kM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:MM(t,e)});return vM(e,e.borderRadius,n)}return null};KM.propTypes={},KM.filterProps=["borderRadius"],TM(qM,FM,zM,jM,$M,BM,HM,WM,GM,VM,KM,UM,YM);const XM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=kM(e.theme,"spacing",8),n=e=>({gap:MM(t,e)});return vM(e,e.gap,n)}return null};XM.propTypes={},XM.filterProps=["gap"];const QM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=kM(e.theme,"spacing",8),n=e=>({columnGap:MM(t,e)});return vM(e,e.columnGap,n)}return null};QM.propTypes={},QM.filterProps=["columnGap"];const JM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=kM(e.theme,"spacing",8),n=e=>({rowGap:MM(t,e)});return vM(e,e.rowGap,n)}return null};JM.propTypes={},JM.filterProps=["rowGap"];function ZM(e,t){return"grey"===t?t:e}TM(XM,QM,JM,xM({prop:"gridColumn"}),xM({prop:"gridRow"}),xM({prop:"gridAutoFlow"}),xM({prop:"gridAutoColumns"}),xM({prop:"gridAutoRows"}),xM({prop:"gridTemplateColumns"}),xM({prop:"gridTemplateRows"}),xM({prop:"gridTemplateAreas"}),xM({prop:"gridArea"}));function e_(e){return e<=1&&0!==e?100*e+"%":e}TM(xM({prop:"color",themeKey:"palette",transform:ZM}),xM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ZM}),xM({prop:"backgroundColor",themeKey:"palette",transform:ZM}));const t_=xM({prop:"width",transform:e_}),n_=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])||hM[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:e_(t)}};return vM(e,e.maxWidth,t)}return null};n_.filterProps=["maxWidth"];const r_=xM({prop:"minWidth",transform:e_}),o_=xM({prop:"height",transform:e_}),i_=xM({prop:"maxHeight",transform:e_}),a_=xM({prop:"minHeight",transform:e_});xM({prop:"size",cssProperty:"width",transform:e_}),xM({prop:"size",cssProperty:"height",transform:e_});TM(t_,n_,r_,o_,i_,a_,xM({prop:"boxSizing"}));var l_={border:{themeKey:"borders",transform:OM},borderTop:{themeKey:"borders",transform:OM},borderRight:{themeKey:"borders",transform:OM},borderBottom:{themeKey:"borders",transform:OM},borderLeft:{themeKey:"borders",transform:OM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:OM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:KM},color:{themeKey:"palette",transform:ZM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ZM},backgroundColor:{themeKey:"palette",transform:ZM},p:{style:DM},pt:{style:DM},pr:{style:DM},pb:{style:DM},pl:{style:DM},px:{style:DM},py:{style:DM},padding:{style:DM},paddingTop:{style:DM},paddingRight:{style:DM},paddingBottom:{style:DM},paddingLeft:{style:DM},paddingX:{style:DM},paddingY:{style:DM},paddingInline:{style:DM},paddingInlineStart:{style:DM},paddingInlineEnd:{style:DM},paddingBlock:{style:DM},paddingBlockStart:{style:DM},paddingBlockEnd:{style:DM},m:{style:AM},mt:{style:AM},mr:{style:AM},mb:{style:AM},ml:{style:AM},mx:{style:AM},my:{style:AM},margin:{style:AM},marginTop:{style:AM},marginRight:{style:AM},marginBottom:{style:AM},marginLeft:{style:AM},marginX:{style:AM},marginY:{style:AM},marginInline:{style:AM},marginInlineStart:{style:AM},marginInlineEnd:{style:AM},marginBlock:{style:AM},marginBlockStart:{style:AM},marginBlockEnd:{style:AM},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:XM},rowGap:{style:JM},columnGap:{style:QM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:e_},maxWidth:{style:n_},minWidth:{transform:e_},height:{transform:e_},maxHeight:{transform:e_},minHeight:{transform:e_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function s_(){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=bM(n,l)||{};if(u)return u(o);return vM(o,t,(t=>{let n=yM(c,s,t);return t===n&&"string"==typeof t&&(n=yM(c,s,`${e}${"default"===t?"":fs(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:l_;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=mM(s,e(n,o,i,a));else{const e=vM({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=mM(s,e):s[n]=t({sx:o,theme:i})}else s=mM(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 u_=s_();u_.filterProps=["sx"];var c_=u_;function d_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const p_=["breakpoints","palette","spacing","shape"];function f_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Sr(e,p_),l=pM(n),s=function(e=8){if(e.mui)return e;const t=IM({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=$l({breakpoints:l,direction:"ltr",components:{},palette:mr({mode:"light"},r),spacing:s,shape:mr({},fM,i)},a);return u.applyStyles=d_,u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},l_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return c_({sx:e,theme:this})},u}var m_=Object.freeze({__proto__:null,default:f_,private_createBreakpoints:pM,unstable_applyStyles:d_});function h_(e=null){const t=ao.useContext(El);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const g_=f_();function v_(e=g_){return h_(e)}const b_=["sx"],y_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:l_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function x_(e){const{sx:t}=e,n=Sr(e,b_),{systemProps:r,otherProps:o}=y_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return zl(n)?mr({},r,n):r}:mr({},r,t),mr({},o,{sx:i})}var S_=Object.freeze({__proto__:null,default:c_,extendSxProp:x_,unstable_createStyleFunctionSx:s_,unstable_defaultSxConfig:l_});const E_=["className","component"];function C_(e){if(e.type)return e;if("#"===e.charAt(0))return C_(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(Vo(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(Vo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function w_(e,t){return e=C_(e),t=function(e,t=0,n=1){return Ws(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var R_=ao.createContext(null);function L_(){return ao.useContext(R_)}var k_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function I_(e){const{children:t,theme:n}=e,r=L_(),o=ao.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mr({},e,t)}(r,n);return null!=e&&(e[k_]=null!==r),e}),[n,r]);return fc.jsx(R_.Provider,{value:o,children:t})}const M_=["value"],__=ao.createContext();function P_(e){let{value:t}=e,n=Sr(e,M_);return fc.jsx(__.Provider,mr({value:null==t||t},n))}const A_=ao.createContext(void 0);function D_({value:e,children:t}){return fc.jsx(A_.Provider,{value:e,children:t})}function T_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qs(o.defaultProps,r):o.styleOverrides||o.variants?r:qs(o,r)}({props:e,name:t,theme:{components:ao.useContext(A_)}})}const O_={};function N_(e,t,n,r=!1){return ao.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?mr({},t,{[e]:i}):i;return r?()=>a:a}return mr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function q_(e){const{children:t,theme:n,themeId:r}=e,o=h_(O_),i=L_()||O_,a=N_(r,o,n),l=N_(r,i,n,!0),s="rtl"===a.direction;return fc.jsx(I_,{theme:l,children:fc.jsx(El.Provider,{value:a,children:fc.jsx(P_,{value:s,children:fc.jsx(D_,{value:null==a?void 0:a.components,children:t})})})})}var F_={},z_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(z_);var j_=z_.exports,$_=r(Uo),B_=r(Gs),H_=j_;Object.defineProperty(F_,"__esModule",{value:!0});var W_=F_.alpha=rP;F_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=J_(e),a=J_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return eP({type:"rgb",values:l})},F_.colorChannel=void 0;var G_=F_.darken=oP;F_.decomposeColor=J_,F_.emphasize=aP;var V_=F_.getContrastRatio=function(e,t){const n=nP(e),r=nP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};F_.getLuminance=nP,F_.hexToRgb=Q_,F_.hslToRgb=tP;var U_=F_.lighten=iP;F_.private_safeAlpha=function(e,t,n){try{return rP(e,t)}catch(t){return e}},F_.private_safeColorChannel=void 0,F_.private_safeDarken=function(e,t,n){try{return oP(e,t)}catch(t){return e}},F_.private_safeEmphasize=function(e,t,n){try{return aP(e,t)}catch(t){return e}},F_.private_safeLighten=function(e,t,n){try{return iP(e,t)}catch(t){return e}},F_.recomposeColor=eP,F_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=J_(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 Y_=H_($_),K_=H_(B_);function X_(e,t=0,n=1){return(0,K_.default)(e,t,n)}function Q_(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 J_(e){if(e.type)return e;if("#"===e.charAt(0))return J_(Q_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Y_.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,Y_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Z_=e=>{const t=J_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};F_.colorChannel=Z_;function eP(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 tP(e){e=J_(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])),eP({type:l,values:s})}function nP(e){let t="hsl"===(e=J_(e)).type||"hsla"===e.type?J_(tP(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 rP(e,t){return e=J_(e),t=X_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,eP(e)}function oP(e,t){if(e=J_(e),t=X_(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 eP(e)}function iP(e,t){if(e=J_(e),t=X_(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 eP(e)}function aP(e,t=.15){return nP(e)>.5?oP(e,t):iP(e,t)}F_.private_safeColorChannel=(e,t)=>{try{return Z_(e)}catch(t){return e}};var lP={black:"#000",white:"#fff"};var sP={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 uP={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 cP={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 dP={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 pP={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 fP={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 mP={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 hP=["mode","contrastThreshold","tonalOffset"],gP={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:lP.white,default:lP.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}},vP={text:{primary:lP.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:lP.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 bP(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=U_(e.main,o):"dark"===t&&(e.dark=G_(e.main,i)))}function yP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Sr(e,hP),i=e.primary||function(e="light"){return"dark"===e?{main:pP[200],light:pP[50],dark:pP[400]}:{main:pP[700],light:pP[400],dark:pP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uP[200],light:uP[50],dark:uP[400]}:{main:uP[500],light:uP[300],dark:uP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:cP[500],light:cP[300],dark:cP[700]}:{main:cP[700],light:cP[400],dark:cP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:fP[400],light:fP[300],dark:fP[700]}:{main:fP[700],light:fP[500],dark:fP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:mP[400],light:mP[300],dark:mP[700]}:{main:mP[800],light:mP[500],dark:mP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:dP[400],light:dP[300],dark:dP[700]}:{main:"#ed6c02",light:dP[500],dark:dP[900]}}(t);function d(e){return V_(e,vP.text.primary)>=n?vP.text.primary:gP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=mr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Vo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Vo(12,t?` (${t})`:"",JSON.stringify(e.main)));return bP(e,"light",o,r),bP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:vP,light:gP};return $l(mr({common:mr({},lP),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:sP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const xP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const SP={textTransform:"uppercase"},EP='"Roboto", "Helvetica", "Arial", sans-serif';function CP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=EP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Sr(n,xP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return mr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===EP?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,SP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,SP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $l(mr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function wP(...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 RP=["none",wP(0,2,1,-1,0,1,1,0,0,1,3,0),wP(0,3,1,-2,0,2,2,0,0,1,5,0),wP(0,3,3,-2,0,3,4,0,0,1,8,0),wP(0,2,4,-1,0,4,5,0,0,1,10,0),wP(0,3,5,-1,0,5,8,0,0,1,14,0),wP(0,3,5,-1,0,6,10,0,0,1,18,0),wP(0,4,5,-2,0,7,10,1,0,2,16,1),wP(0,5,5,-3,0,8,10,1,0,3,14,2),wP(0,5,6,-3,0,9,12,1,0,3,16,2),wP(0,6,6,-3,0,10,14,1,0,4,18,3),wP(0,6,7,-4,0,11,15,1,0,4,20,3),wP(0,7,8,-4,0,12,17,2,0,5,22,4),wP(0,7,8,-4,0,13,19,2,0,5,24,4),wP(0,7,9,-4,0,14,21,2,0,5,26,4),wP(0,8,9,-5,0,15,22,2,0,6,28,5),wP(0,8,10,-5,0,16,24,2,0,6,30,5),wP(0,8,11,-5,0,17,26,2,0,6,32,5),wP(0,9,11,-5,0,18,28,2,0,7,34,6),wP(0,9,12,-6,0,19,29,2,0,7,36,6),wP(0,10,13,-6,0,20,31,3,0,8,38,7),wP(0,10,13,-6,0,21,33,3,0,8,40,7),wP(0,10,14,-6,0,22,35,3,0,8,42,7),wP(0,11,14,-7,0,23,36,3,0,9,44,8),wP(0,11,15,-7,0,24,38,3,0,9,46,8)];const LP=["duration","easing","delay"],kP={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)"},IP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MP(e){return`${Math.round(e)}ms`}function _P(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function PP(e){const t=mr({},kP,e.easing),n=mr({},IP,e.duration);return mr({getAutoHeightDuration:_P,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Sr(r,LP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:MP(o)} ${i} ${"string"==typeof a?a:MP(a)}`)).join(",")}},e,{easing:t,duration:n})}var AP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const DP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function TP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Sr(e,DP);if(e.vars)throw new Error(Vo(18));const l=yP(r),s=f_(e);let u=$l(s,{mixins:(c=s.breakpoints,d=n,mr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:RP.slice(),typography:CP(l,i),transitions:PP(o),zIndex:mr({},AP)});var c,d;return u=$l(u,a),u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},l_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return c_({sx:e,theme:this})},u}var OP=TP();function NP(){const e=v_(OP);return e[uM]||e}var qP,FP={},zP={exports:{}};var jP,$P={exports:{}};var BP=r(Fl),HP=r(Hl),WP=r(ms),GP=r(ps),VP=r(m_),UP=r(S_),YP=j_;Object.defineProperty(FP,"__esModule",{value:!0});var KP=FP.default=function(e={}){const{themeId:t,defaultTheme:n=lA,rootShouldForwardProp:r=aA,slotShouldForwardProp:o=aA}=e,i=e=>(0,tA.default)((0,XP.default)({},e,{theme:uA((0,XP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,JP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=cA(sA(s))}=a,p=(0,QP.default)(a,oA),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=aA;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,JP.default)(e,(0,XP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ZP.isPlainObject)(e)?r=>dA(e,(0,XP.default)({},r,{theme:uA({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=uA((0,XP.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]=dA(n,(0,XP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=uA((0,XP.default)({},e,{defaultTheme:n,themeId:t}));return dA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,XP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};FP.shouldForwardProp=aA,FP.systemDefaultTheme=void 0;var XP=YP((qP||(qP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zP)),zP.exports)),QP=YP((jP||(jP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}($P)),$P.exports)),JP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=iA(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}(BP),ZP=HP;YP(WP),YP(GP);var eA=YP(VP),tA=YP(UP);const nA=["ownerState"],rA=["variants"],oA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(iA=function(e){return e?n:t})(e)}function aA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lA=FP.systemDefaultTheme=(0,eA.default)(),sA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function uA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function cA(e){return e?(t,n)=>n[e]:null}function dA(e,t){let{ownerState:n}=t,r=(0,QP.default)(t,nA);const o="function"==typeof e?e((0,XP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>dA(e,(0,XP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,QP.default)(o,rA);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,XP.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,XP.default)({ownerState:n},r,n)):e.style))})),t}return o}var pA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var fA=KP({themeId:uM,defaultTheme:OP,rootShouldForwardProp:pA});const mA=["theme"];function hA(e){let{theme:t}=e,n=Sr(e,mA);const r=t[uM];return fc.jsx(q_,mr({},n,{themeId:r?uM:void 0,theme:r||t}))}var gA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const vA=Od(pR,{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)":{[`& .${tt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${tt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),bA=Od(pR)({position:"absolute",height:"100%",width:"3px"}),yA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=ao.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};rM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,nt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:rt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{GI(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{GI(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Ze.LEFT||e.key===Ze.RIGHT){GI(e);const t=5,n=e.key===Ze.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Ze.SPACE||e.key===Ze.ENTER?(GI(e),l(e),g()):e.key===Ze.ESC&&(GI(e),l(e),h(c.current.initWidth))}:void 0;return lo.createElement(vA,{className:et,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:rt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":et},lo.createElement(bA,{className:tt}))};function xA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),EA=ao.forwardRef(SA);function CA(){return CA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CA.apply(null,arguments)}const wA=Od(pR,{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"}))),RA=Od(EA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),LA=Od(HL)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),kA=Od(NR)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),IA=Od(YL)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),MA=Od(YL,{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")}))),_A=Od("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"}))),PA=Od("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),AA=Od(fw)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),DA=Od(gL)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OA=(e,t)=>lo.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){TA(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),lo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),NA=ao.forwardRef(OA);let qA={};const FA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=ao.useState(!1),p=ao.useRef(null),f=ao.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return lo.createElement(lo.Fragment,null,lo.createElement(MA,{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),qA={}),null!=a&&a.length&&(d(!0),qA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&lo.createElement(_A,null),lo.createElement(PA,null,lo.createElement(DA,null,lo.createElement(o,null)),lo.createElement(AA,{variant:"body2"},r)),null!=a&&a.length?lo.createElement(NA,null):null),(null==a?void 0:a.length)&&lo.createElement($A,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=qA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},zA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&lo.createElement(IA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>lo.createElement(FA,CA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),jA={appear:200,enter:200,exit:100},$A=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?lo.createElement(LA,CA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:jA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[zA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?lo.createElement(kA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,BA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},HA=(e,t)=>e.some((e=>t[e]>0));function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),VA=ao.forwardRef(GA);function UA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),KA=ao.forwardRef(YA);function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),JA=ao.forwardRef(QA);function ZA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),tD=ao.forwardRef(eD);function nD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),oD=ao.forwardRef(rD);function iD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),lD=ao.forwardRef(aD);function sD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uD=(e,t)=>lo.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){sD(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),lo.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"})),cD=ao.forwardRef(uD);function dD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),fD=ao.forwardRef(pD);function mD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.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"})),gD=ao.forwardRef(hD);function vD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bD=(e,t)=>lo.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){vD(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),lo.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"})),yD=ao.forwardRef(bD);let xD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const SD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[xD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:VA,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:tD,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[xD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:oD,enabled:!0}]}]),n[xD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:yD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:lD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:gD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:cD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:fD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:KA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[xD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:JA,enabled:!0}]}]),d},ED=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=iM({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=ao.useState(null),[o,i]=ao.useState(BA);return ao.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:ao.useCallback((()=>i(BA)),[]),updateSelectionActionsEnabledStatus:ao.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:HA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:HA(["qSelected"],n.qStateCounts),canSelectPossible:HA(["qOption"],n.qStateCounts),canSelectAlternative:HA(["qAlternative"],n.qStateCounts),canSelectExcluded:HA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=ao.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"},sortCriteria:c.sortCriteria})}}),[c,v,g]);ao.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=ao.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?lo.createElement(wA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&lo.createElement(RA,{height:Xe,className:Qe,"data-testid":Qe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},lo.createElement(EA,null)),lo.createElement($A,{open:e,anchorEl:n.current,onClose:C,menuGroups:SD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},CD=e=>e.isDark?{background:e.color,borderColor:zk.DARK_MODE_BORDER,color:zk.DARK_MODE_TEXT,disabledColor:zk.DARK_MODE_DISABLED,iconColor:zk.DARK_MODE_TEXT}:{background:e.color,borderColor:zk.BORDER_MEDIUM,color:zk.TEXT,disabledColor:zk.DISABLED},wD=Od(pR,{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}`}))),RD=Od(Ak,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),LD=Od(CR,{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)}))),kD=Od(fw)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ID=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=ao.useMemo((()=>CD(r.background)),[r]);if(!n.active)return null;const a=o?lo.createElement(wD,{footerStyle:i},e):null;return t?fC.createPortal(e,t):a},MD={},_D=ao.createContext(MD),PD=()=>ao.useContext(_D),AD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=ao.useMemo((()=>CD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=iM({translator:d}),x=ao.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return lo.createElement(_D.Provider,{value:x},e)};let DD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),TD=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 OD(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)=>lo.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){OD(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),lo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),qD=ao.forwardRef(ND);function FD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zD=(e,t)=>lo.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){FD(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),lo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),jD=ao.forwardRef(zD);function $D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),HD=ao.forwardRef(BD),WD={FirstPage:jD,PreviousPage:qD,NextPage:NA,LastPage:HD,FirstPageRTL:HD,PreviousPageRTL:NA,NextPageRTL:qD,LastPageRTL:jD},GD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=PD(),u=WD[`${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}},VD=()=>{const{pageInfo:e,width:t}=PD(),n=0===e.page,{IconComponent:r,styledProps:o}=GD({type:DD.FirstPage,disabledCondition:n,pageNumber:0});return t<=TD.FirstPage?null:lo.createElement(LD,o,lo.createElement(r,{height:Xe}))},UD=(e,t,n=!1)=>{n&&e.key===Ze.TAB&&!e.shiftKey&&(GI(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))},YD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=PD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GD({type:DD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>UD(e,t,r):null;return o<=TD.LastPage?null:lo.createElement(LD,CA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},KD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=PD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GD({type:DD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>TD.FirstPage&&o>TD.LastPage)&&t.enabled?e=>UD(e,t,r):null;return lo.createElement(LD,CA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},XD=()=>{const{pageInfo:e}=PD(),t=0===e.page,{IconComponent:n,styledProps:r}=GD({type:DD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return lo.createElement(LD,r,lo.createElement(n,{height:Xe}))},QD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=PD(),{page:o,rowsPerPage:i}=n;if(t<=TD.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return lo.createElement(kD,{variant:"caption"},a)},JD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=PD(),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 lo.createElement(lo.Fragment,null,lo.createElement(kD,{variant:"caption",id:d},u,":"),lo.createElement(RD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},ZD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=PD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>TD.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=lo.createElement(lo.Fragment,null,t.rowsPerPageOptions.map((e=>lo.createElement("option",{key:e,value:e},e))));return lo.createElement(JD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},eT=1e3,tT="…",nT=({totalPages:e,page:t})=>{const n=Math.min(e,eT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-eT):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return lo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(lo.createElement("option",{key:"startMoreOptions",value:tT,disabled:!0},tT)),o<e-1&&a.push(lo.createElement("option",{key:"endMoreOptions",value:tT,disabled:!0},tT)),lo.createElement(lo.Fragment,null,a)},rT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=PD(),{page:o}=e;if(t<=TD.SelectPage)return null;const i=lo.createElement(nT,{totalPages:n,page:o});return lo.createElement(JD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},oT=e=>lo.createElement(AD,e,lo.createElement(ZD,null),lo.createElement(rT,null),lo.createElement(QD,null),lo.createElement(VD,null),lo.createElement(XD,null),lo.createElement(KD,null),lo.createElement(YD,null));var iT=ao.memo(oT);const aT=e=>lo.createElement(ID,e,lo.createElement(iT,e)),lT={},sT=ao.createContext(lT),uT=()=>ao.useContext(sT),cT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=ao.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return fc.jsx(sT.Provider,{value:u,children:e})},dT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=uT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Hn;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:fc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:fc.jsx("span",{style:{...Zn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},pT={},fT=ao.createContext(pT),mT=()=>ao.useContext(fT),hT=({children:e,styleService:t})=>fc.jsx(fT.Provider,{value:t,children:e}),gT=21,vT=20,bT=vT,yT=16+Un+1,xT=.75,ST=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===qe.Image},ET="/qHyperCubeDef",CT=-1,wT="PSEUDO-DIM",RT=e=>void 0===e?Wn:e,LT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,kT=e=>LT(e,nt.PixelsDefault),IT=(e,t)=>LT(e,nt.PercentageDefault)*t/100,MT=(e,t,n)=>{switch(null==t?void 0:t.type){case rt.Pixels:return kT(t.pixels);case rt.Percentage:return IT(t.percentage,e);case rt.FitToContent:case rt.Auto:default:return n}},_T=({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===wT)return e+0;const m=n(p),h=!u&&f&&d<s-1?gT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+yT+h+m+g)}),0),PT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*yT;return Math.max(e,o+t(r.qFallbackTitle))}),0),AT=(e,t,n,r)=>{const o=100*e/t,i=r*xT*(o/100),a=n*(o/100);return Math.min(a,i)},DT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),TT=(e,t)=>e.some((e=>e>=t*xT)),OT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*xT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,_T({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,PT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===wT)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===rt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+yT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,PT(e.visibleMeasureInfo,l,!0));h=Math.min(c,_T({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=rt.Pixels,y.pixels=o);return[rt.Pixels,rt.Percentage].includes(y.type)||TT(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=TT(e,n);s===rt.Auto&&d&&(o>i?o-=i:i-=o),s===rt.Pixels&&u&&(o=AT(e[0],l,u,n),i=AT(e[1],l,u,n)),s===rt.Percentage&&c&&(o=DT(e[0],l,c,n),i=DT(e[1],l,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function NT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*xT,i=mT(),{measureText:a}=eM(i.header),{estimateWidth:l,measureText:s}=eM({...i.dimensionValues,fontWeight:RT(i.dimensionValues.fontWeight)}),{measureText:u}=eM({...i.dimensionValues,...i.measureLabels}),c=ao.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=e,v=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+yT,a=Math.max(i,e);return Math.max(n,h?a:MT(t,o,a))}),0),b=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===wT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?bT:0;return yT+a(t)+vT+r})(r);return Math.max(o,t)}),0);let y=0,x=n.data.at(-1);h&&n.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((r,a)=>{let s=yT;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ve.Pivot?o=h?void 0:p:r.columnWidthLocation===Ve.Dimension&&({columnWidth:o}=r);let i=0;if(r.isLeftDimension)if(r.id===wT)i=v();else{const t=b(a),o=((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(ST(a))return nt.PixelsDefault;const s=!m&&o&&n<d-1?gT:0;return yT+l(r)+s})(r,a);i=Math.max(t,o),h&&!g&&a+1===d&&r.columnWidthLocation===Ve.Dimension&&n.size.x>1&&(i=t)}else r.isLeftDimension||(i=b(a),r.columnWidthLocation===Ve.Measures&&(i=v(i)));h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=h&&!g&&n.size.x>1?i:MT(t,o,i)}return y+=s,s}));return h&&n.size.x>1?OT({layoutService:e,headersData:n,columnWidths:S,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[t,n,e,o,a,u,l,s,r]),[d,p]=ao.useState(c);rM((()=>{p(c())}),[c]);const f=ao.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function qT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=mT(),{estimateWidth:c,measureText:d}=eM(u.measureValues),{estimateWidth:p}=eM({...u.dimensionValues,fontWeight:RT(u.dimensionValues.fontWeight)}),f=t-o-Un,m=n.at(-1),h=m===CT,g=a.length-i>n.length?gT:0,v=ao.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(nt.PixelsMax,Math.max(nt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case rt.Pixels:i(t,kT(o));break;case rt.Percentage:i(t,IT(a,f));break;case rt.FitToContent:i(t,((e,t,n)=>n?nt.PixelsDefault:yT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,ST(e)));break;case rt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(nt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=ao.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=ao.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let FT;const zT=new Uint8Array(16);function jT(){if(!FT&&(FT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(zT)}const $T=[];for(let e=0;e<256;++e)$T.push((e+256).toString(16).slice(1));var BT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function HT(e,t,n){if(BT.randomUUID&&!t&&!e)return BT.randomUUID();const r=(e=e||{}).random||(e.rng||jT)();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 $T[e[t+0]]+$T[e[t+1]]+$T[e[t+2]]+$T[e[t+3]]+"-"+$T[e[t+4]]+$T[e[t+5]]+"-"+$T[e[t+6]]+$T[e[t+7]]+"-"+$T[e[t+8]]+$T[e[t+9]]+"-"+$T[e[t+10]]+$T[e[t+11]]+$T[e[t+12]]+$T[e[t+13]]+$T[e[t+14]]+$T[e[t+15]]}(r)}const WT=()=>{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:HT()},GT=e=>e===CT?wT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:WT()})(e),VT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===CT?n.columnWidthLocation=Ve.Measures:n.isLeftDimension?n.columnWidthLocation=Ve.Dimension:t.at(-1)===CT?n.columnWidthLocation=Ve.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ve.Pivot))},UT=(e,t,n)=>{var r;const o=GT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===CT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},YT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===CT?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]=UT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=UT(e,t,o)})),l},KT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(CT)?YT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(YT({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++)VT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else VT({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 XT(e){return XT="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},XT(e)}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JT(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 ZT(e,t,n){return t&&JT(e.prototype,t),n&&JT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eO(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&&nO(e,t)}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tO(e)}function nO(e,t){return nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nO(e,t)}function rO(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 oO(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=tO(e);if(t){var o=tO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rO(this,n)}}function iO(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 aO(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 aO(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 aO(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 lO={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:sO(e),value:sO(t),useEqualSign:n}}(n,o,i))}})),t}};function sO(e){try{return decodeURIComponent(e)}catch(t){return e}}function uO(e){if(!(this instanceof uO))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 lO.fromSearchString(t.search)}}})}function cO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}uO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},uO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=cO((t=e[r]).key),t.value?n+="=".concat(cO(t.value)):n+=t.useEqualSign?"=":"";return n};var dO,pO=function(){function e(t){QT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return ZT(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}(),fO=function(){function e(){QT(this,e)}return ZT(e,[{key:"decode",value:function(e){for(var t,n="",r=new pO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),mO=function(e){return e>=0&&e<=1114111},hO=function(e){return e.match(/[\s]/)},gO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(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())&&!hO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return mO(a)?String.fromCharCode(a):"�"}}]),n}(fO),vO=function(){function e(t,n){QT(this,e),this._key=t,this._value=n}return ZT(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}(),bO=function(){function e(){QT(this,e)}return ZT(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 vO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return vO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||vO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),yO=function(){function e(){QT(this,e),this.clear()}return ZT(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 bO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),xO=function(){var e,t,n,r=[],o=[],i=new yO;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="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["¬in"]="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}(),SO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(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,xO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=xO.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)&&mO(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)&&mO(r)?String.fromCharCode(r):null}}]),n}(fO),EO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(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),mO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(fO),CO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(dO=document.createElement("div"));var wO=Array.prototype.indexOf,RO=[",",".","_"," "],LO={default:[",",".","-","_"," "]},kO={width:["%"],height:["%"]},IO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},MO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":IO.image,"background-color":IO.color,"border-color":IO.color,"border-image":IO.image,color:IO.color,icon:IO.image,"list-style-image":IO.image,"outline-color":IO.color},_O={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function PO(e,t,n){var r;if(t){if(wO)return wO.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 AO(e){if(null==e)return"";var t,n=document.createTextNode(e);return dO.appendChild(n),t=dO.innerHTML,dO.removeChild(n),t}function DO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=OO(e).toLowerCase(),t=OO(t),PO(e,_O.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<_O.attr_val;i++)if(t.toLowerCase().match(_O.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=kO[e])||(r=LO.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]/)&&PO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function TO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=OO(e).toLowerCase(),t=OO(t),PO(e,_O.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<_O.css_val.length;r++)if(t.toLowerCase().indexOf(_O.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=MO[e])||(o=IO.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]/)&&PO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function OO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new SO,new EO,new gO];!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 NO=[],qO=0;qO<255;qO++)NO[qO]=qO>=48&&qO<=57||qO>=65&&qO<=90||qO>=97&&qO<=122?null:qO.toString(16);var FO=function(e){return AO(e.unsafe)},zO=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]=TO(t,n[t],!0),i+=TO(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]=DO(i,t[i],!0),o+=DO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function $O(e,t){throw new Error(t)}var BO={canonicalize:OO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===XT(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?FO(e):"css"===e.context?(null!=e.map&&"object"!==XT(e.map)&&$O(this,"Invalid parameter type"),zO(e)):"attr"===e.context?(null!=e.map&&"object"!==XT(e.map)&&$O(this,"Invalid parameter type"),jO(e)):void $O(this,"Invalid parameter type")},encodeForAttr:DO,encodeForAttr2:function(e){return DO("nonsens",e,!0)},encodeForCSS:TO,encodeForHref:function(e){OO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new uO(e),n=uO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+uO.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=RO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),PO(o,t)>=0||null==NO[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:AO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=OO(t).toLowerCase():$O(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=iO(null!==(t=CO.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 HO=(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]},WO=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"}}},GO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&BO.isSafeDataURL(t)?{type:qe.Image,url:t,text:e,imageSize:n,resolvedImagePosition:WO(r)}:{type:qe.Text,url:void 0,text:e},VO=(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)===Fe.Attribute||null==n?void 0:n.urlLabel},UO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:qe.Link,url:BO.encodeForHref(t),text:e}}catch(t){return{type:qe.Text,url:void 0,text:e}}},YO=(e,t,n,r)=>{var o,i;const a=ze(t);return a!==qe.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===qe.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===Fe.Attribute){var o;const r=VO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return UO({text:i,url:r})}if(r===Fe.Dimension){var i;const r=VO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return UO({text:r,url:e.qText})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n):{type:qe.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=HO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return GO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return GO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=HO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return GO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n)},KO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?WI(s):null,c=l?WI(l):null,d=((e,t)=>e||!t?null:jI(t)?zk.WHITE:zk.TEXT)(c,u);return{color:null!=d?d:c,background:u}},XO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:XO(e,t)),e),QO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Gn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,XO(l,e))},JO=(e,t)=>{if(e!==CT)return t?{type:qe.Text}:e.representation},ZO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=(!c||!u)&&e.qType===st.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:WT(),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:QO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===st.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===st.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===st.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:KO(s,e),selectionCellType:u?lt.NX_CELL_LEFT:lt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:YO({...e,qText:h},JO(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},eN=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(CT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===st.NX_DIM_CELL_NORMAL||p.qType===st.NX_DIM_CELL_NULL||p.qType===st.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===st.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?ZO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},tN=(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)}))}))},nN=(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},rN=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=eN(e.grid,l,s,n,r,o,i,a);tN(u,n.rowsOnCurrentPage);const c=nN(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},oN=({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===st.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:WT(),ref:t,isNull:u}}))})),o},iN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?oN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},aN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:ZO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},lN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=aN(e.grid,s,u,n,r,o,i,a,l);tN(c,n.size.x);const d=nN(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},sN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),uN=(e,t,n,r,o)=>{const{env:i}=uT(),[a,l]=ao.useState(null),s=((e,t,n)=>ao.useMemo((()=>({left:e.map(sN),top:t.map(sN),measures:n.map(sN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=ao.useMemo((()=>KT(t,o,r)),[t,o,r]),c=ao.useCallback((()=>e.slice(1).reduce(((e,t)=>iN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return oN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=ao.useCallback((()=>e.slice(1).reduce(((e,r)=>lN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=aN([],s,l,t,n,r,o,i,a);tN(u,t.size.x);const c=nN(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=ao.useCallback((()=>e.slice(1).reduce(((e,o)=>rN({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=eN([],l,a,n,t,r,o,i);tN(s,n.rowsOnCurrentPage);const u=nN(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=ao.useState((()=>c())),[h,g]=ao.useState((()=>d())),[v,b]=ao.useState((()=>p()));rM((()=>{m(c())}),[c]),rM((()=>{g(d())}),[d]),rM((()=>{b(p())}),[p]),rM((()=>{a&&a.forEach((e=>{m((t=>iN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>lN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>rN({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=ao.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},cN=Math.sqrt(1e4),dN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/nt.PixelsMin)}),pN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/cN),r=Math.ceil(e.qHeight/cN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*cN,qTop:e.qTop+n*cN,qWidth:Math.min(cN,e.qWidth-o*cN),qHeight:Math.min(cN,e.qHeight-n*cN)});return t};function fN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=ao.useRef(e);return t.current=e,t})(n.page),i=e,a=ao.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,ET,e,t,!1))}),[i]),l=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(ET,e,t,!1))}),[i]),s=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(ET,e,t,!1))}),[i]),u=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(ET,e,t,!1))}),[i]),c=ao.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(ET,e.reduce(((e,t)=>[...e,...pN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=ao.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 Ve.Dimension:c=[{qPath:`${ET}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ve.Measures:if(o)c=l.map(((e,t)=>({qPath:`${ET}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${ET}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ve.Pivot:c=[{qPath:`${ET}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=ao.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${ET}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return ao.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const mN=(e,t)=>e>t?Ke.Forward:e<t?Ke.Backward:Ke.None,hN=(e,t,n)=>(r,o)=>{if(r===st.NX_DIM_CELL_PSEUDO)return CT;const i=t[n+o];return e[i]},gN=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},vN=({width:e,height:t,children:n,isLeftGrid:r})=>fc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Un},children:n}),bN=e=>`scrollable-container--${e}`,yN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=uT();return fc.jsx("div",{ref:t,"data-key":bN(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 xN=lo.forwardRef(yN);const SN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>fc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function EN(){return EN=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},EN.apply(this,arguments)}function CN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wN(e,t){return wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wN(e,t)}function RN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wN(e,t)}var LN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kN(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||LN(r)&&LN(o)))return!1;var r,o;return!0}function IN(e,t){var n;void 0===t&&(t=kN);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 MN(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 _N="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PN(e){cancelAnimationFrame(e.id)}function AN(e,t){var n=_N();var r={id:requestAnimationFrame((function o(){_N()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var DN=-1;function TN(e){if(void 0===e&&(e=!1),-1===DN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),DN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DN}var ON=null;function NN(e){if(void 0===e&&(e=!1),null===ON||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?ON="positive-descending":(t.scrollLeft=1,ON=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ON}return ON}var qN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,CN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:CN(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=IN((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=IN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((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(NN()){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&&PN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return zN(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=TN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(NN()){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&&PN(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?qN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var M=E;M<=C;M++)k.push(ao.createElement(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},ao.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},$N=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},BN=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]},HN=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?WN(e,t,n,i,0,r):GN(e,t,n,Math.max(0,i),r)},WN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=BN(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},GN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&BN(e,t,r,n).offset<o;)r+=a,a*=2;return WN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},VN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=BN(e,t,n,i),u="column"===e?$N(t,i):jN(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}},UN=FN({getColumnOffset:function(e,t,n){return BN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return HN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=BN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=BN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:jN,getEstimatedTotalWidth:$N,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return VN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return VN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return BN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return HN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=BN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=BN("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}}),YN=function(e,t){return e};function KN(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,CN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:CN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=IN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((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(NN()){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&&PN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return XN(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?TN():0:s.scrollHeight>s.clientHeight?TN():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(NN()){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&&PN(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?YN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(ao.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},ao.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QN=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]},JN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QN(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},ZN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QN(e,n,t).offset<r;)n+=i,i*=2;return JN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},eq=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},tq=KN({getItemOffset:function(e,t,n){return QN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:eq,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=QN(e,t,o),p=eq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?JN(e,t,o,0,n):ZN(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=QN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=QN(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 nq(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 rq=["style"],oq=["style"];function iq(e,t){var n=e.style,r=MN(e,rq),o=t.style,i=MN(t,oq);return!nq(n,o)&&!nq(r,i)}const aq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),lq=10,sq=(e,t)=>e.current===Ke.Backward?t:0,uq=(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},cq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,dq=({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(uq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&cq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},pq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ke.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return dq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},fq=({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=sq(n,lq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+lq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=dq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...pq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},mq=(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},hq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,gq=({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(mq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&hq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},vq=({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=sq(n,lq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+lq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=gq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ke.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=gq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},bq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ke.None&&(p=vq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ke.None&&(f=fq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ke.None&&a.current===Ke.None&&(p=gq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},yq=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))}}(bq,100),xq=xe(bq,75),Sq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=mT();return fc.jsx("div",{style:{...e,...Jn,...nr(n,r,l,o),...or({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Eq=({children:e,verticalAlign:t,width:n,right:r})=>fc.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}),Cq=e=>{const{type:t,imageSize:n}=e;return t!==qe.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},wq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Rq(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)=>lo.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){Rq(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),lo.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"})),kq=ao.forwardRef(Lq);function Iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mq=(e,t)=>lo.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){Iq(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),lo.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"})),_q=ao.forwardRef(Mq),Pq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(et)};function Aq(e,t){const n=e.isActive(),[r,o]=ao.useState(new Map),[i,a]=ao.useState(null);ao.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=ao.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===lt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=ao.useCallback((t=>async n=>{if(Pq(n))return;if(e.isActive()||await e.begin([ET]),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===lt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[ET,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=ao.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return ao.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Dq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Tq=ao.createContext(Dq),Oq=()=>ao.useContext(Tq),Nq=({children:e,selections:t,updatePageInfo:n})=>{const r=Aq(t,n);return fc.jsx(Tq.Provider,{value:r,children:e})};var qq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(qq||(qq={}));const Fq={brighter:.5,darker:.3,opacity:.03},zq=(e,{cell:t,styleService:n})=>{if(e===qq.Background||e===qq.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]},jq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=zq(qq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?zq(qq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${zI(i=o,Fq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},$q=({cell:e,styleService:t,isCellSelected:n})=>n?"white":zq(qq.Color,{cell:e,styleService:t}),Bq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=zq(qq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Wn:o},Hq=({cell:e,styleService:t})=>zq(qq.FontStyle,{cell:e,styleService:t}),Wq=({cell:e,styleService:t})=>zq(qq.TextDecoration,{cell:e,styleService:t}),Gq=e=>e?"pointer":"default",Vq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Uq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===qe.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Yq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=mT(),{interactions:i}=uT(),{isActive:a}=Oq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=$q({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?_q:kq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,fc.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Uq(e,o)},onClick:l?void 0:Vq({cell:e,expandOrCollapse:d})})},Kq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Xq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Qq=({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}}},Jq=(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"}},Zq=e=>{if("alwaysFit"===e)return"contain"},eF=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=uT(),t=ao.useRef(null),{promise:n,resolve:r}=ao.useMemo((()=>wq()),[]);return ao.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:ao.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return fc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Qq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:fc.jsx("img",{src:s,alt:u,style:{width:Xq(c),height:Kq(c),objectFit:Zq(c),objectPosition:Jq(c,d),...f},onLoad:l,ref:a})})},tF=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},nF={display:"flex",flexDirection:"row",alignItems:"center"},rF={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},oF=(e,t,n,r)=>t?{...rF,...e.nullValues}:n?{...nF,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...nF,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},iF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Zn,...!n&&er(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?Wn:s,fontStyle:u,textDecoration:c}},aF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==qe.Image?tF(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},lF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=iF(n,o,i,a,e.isNull);return r.type!==qe.Image||e.isNull?fc.jsx("span",{style:{padding:4,...s},children:l}):fc.jsx(eF,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},sF=(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},uF="flex-start",cF=(e,t)=>{return e.isNull?uF:t.type===qe.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:uF;var n},dF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=mT(),{env:a}=uT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return fc.jsx(Sq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?sF(g,t):sF(h,e),E=u.visibleMeasureInfo[S],C=YO(b.ref,u.isIndentModeEnabled?{type:qe.Text}:E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=KO(v[S],b.ref),I={...oF(i,b.isNull,w,k.background),...nr(y,x,i.grid.border,c),...or({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Jn,padding:"0px 4px",display:"flex",justifyContent:aF(b,E,C,L,a.flags)};return fc.jsx("div",{className:Je,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fc.jsx(Eq,{width:Cq(C),verticalAlign:cF(b,C),children:fc.jsx(lF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var pF=lo.memo(dF,iq);const fF=(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()},mF=({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}`},hF={...Qn,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},gF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=mT(),x={...hF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>ao.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 aq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>ao.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return aq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>ao.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=uT();return ao.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ke.None?0:lq),h=e.gridHeight+a+(l.current===Ke.None?0:lq);let g=yq;h*m>1500&&(g=xq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return rM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),ao.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:fc.jsx(UN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:mF,children:pF})};var vF=ao.memo(gF);function bF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yF=(e,t)=>lo.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){bF(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),lo.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"}),lo.createElement("use",{fillRule:"evenodd"})),xF=ao.forwardRef(yF),SF=e=>{const[t,n]=ao.useState(!1);return rM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},EF=({interactions:e,dataModel:t})=>{const[n,r]=ao.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=SF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Pq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function CF(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===Yn.Transparent?zk.WHITE:l,u=null===(o=oI(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=oI(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const wF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=uT(),{isActive:u}=Oq(),c=mT(),[,d]=ao.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=CF(c,e);return fc.jsx(yA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*xT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function RF(e){return T_(e)}const LF=e=>e.scrollTop;function kF(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 IF(e){return Bs("MuiPaper",e)}Hs("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 MF=["className","component","elevation","square","variant"],_F=fA("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 mr({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&&mr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${W_("#fff",gA(t.elevation))}, ${W_("#fff",gA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var PF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Sr(n,MF),u=mr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Fs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IF,o)})(u);return fc.jsx(_F,mr({as:o,ownerState:u,className:Ys(c.root,r),ref:t},s))}));var AF=Hs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const DF=["center","classes","className"];let TF,OF,NF,qF,FF=e=>e;const zF=Al(TF||(TF=FF`
|
|
121
121
|
0% {
|
|
122
122
|
transform: scale(0);
|
|
123
123
|
opacity: 0.1;
|
|
@@ -127,7 +127,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
127
127
|
transform: scale(1);
|
|
128
128
|
opacity: 0.3;
|
|
129
129
|
}
|
|
130
|
-
`)),
|
|
130
|
+
`)),jF=Al(OF||(OF=FF`
|
|
131
131
|
0% {
|
|
132
132
|
opacity: 1;
|
|
133
133
|
}
|
|
@@ -135,7 +135,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
135
135
|
100% {
|
|
136
136
|
opacity: 0;
|
|
137
137
|
}
|
|
138
|
-
`))
|
|
138
|
+
`)),$F=Al(NF||(NF=FF`
|
|
139
139
|
0% {
|
|
140
140
|
transform: scale(1);
|
|
141
141
|
}
|
|
@@ -147,7 +147,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
147
147
|
100% {
|
|
148
148
|
transform: scale(1);
|
|
149
149
|
}
|
|
150
|
-
`)),
|
|
150
|
+
`)),BF=fA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HF=fA((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]=ao.useState(!1),p=Ys(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ys(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ao.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fc.jsx("span",{className:p,style:f,children:fc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(qF||(qF=FF`
|
|
151
151
|
opacity: 0;
|
|
152
152
|
position: absolute;
|
|
153
153
|
|
|
@@ -190,4 +190,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
190
190
|
animation-iteration-count: infinite;
|
|
191
191
|
animation-delay: 200ms;
|
|
192
192
|
}
|
|
193
|
-
`),MF.rippleVisible,OF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),MF.child,MF.childLeaving,NF,550,(({theme:e})=>e.transitions.easing.easeInOut),MF.childPulsate,qF,(({theme:e})=>e.transitions.easing.easeInOut)),jF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,IF),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=ul(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xs.jsx(zF,{classes:{ripple:Pl(o.ripple,MF.ripple),rippleVisible:Pl(o.rippleVisible,MF.rippleVisible),ripplePulsate:Pl(o.ripplePulsate,MF.ripplePulsate),child:Pl(o.child,MF.child),childLeaving:Pl(o.childLeaving,MF.childLeaving),childPulsate:Pl(o.childPulsate,MF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Xs.jsx(FF,Xt({className:Pl(MF.root,o.root,i),ref:m},a,{children:Xs.jsx(pE,{component:null,exit:!0,children:l})}))}));var $F=jF;function BF(e){return Rl("MuiButtonBase",e)}var HF=Ll("MuiButtonBase",["root","disabled","focusVisible"]);const WF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],GF=sA("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${HF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VF=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:_}=n,P=rn(n,WF),A=Hn.useRef(null),D=Hn.useRef(null),T=il(D,I),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=bl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return ol((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=ol((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=ol((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=ol((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=il(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Sl({root:["root",t&&"disabled",n&&"focusVisible"]},BF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xs.jsxs(GF,Xt({as:ie,className:Pl(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?Xs.jsx($F,Xt({ref:T,center:o},M)):null]}))}));var UF=VF;var YF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=il(Hn.isValidElement(n)?n.ref:null,t);if(rl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),rl((()=>{if(i&&!o)return nl(t,i),()=>{nl(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return Xs.jsx(Hn.Fragment,{children:n})}return Xs.jsx(Hn.Fragment,{children:i?KS.createPortal(n,i):i})}));const KF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],XF={entering:{opacity:1},entered:{opacity:1}},QF=Hn.forwardRef((function(e,t){const n=PP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=aE}=e,b=rn(e,KF),y=Hn.useRef(null),x=il(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{EF(e);const r=CF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=CF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return Xs.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},XF[e],h,a.props.style),ref:x},t))}))}));var JF=QF;function ZF(e){return Rl("MuiBackdrop",e)}Ll("MuiBackdrop",["root","invisible"]);const ez=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tz=sA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),nz=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=JF,transitionDuration:g}=i,v=rn(i,ez),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Sl({root:["root",n&&"invisible"]},ZF,t)})(b),x=null!=(n=f.root)?n:c.root;return Xs.jsx(h,Xt({in:p,timeout:g},v,{children:Xs.jsx(tz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Pl(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var rz=nz;var oz=Ll("MuiBox",["root"]);const iz=IP(),az=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ya("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(i_);return Hn.forwardRef((function(e,a){const l=p_(n),s=h_(e),{className:u,component:c="div"}=s,d=rn(s,v_);return Xs.jsx(i,Xt({as:c,ref:a,className:Pl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:oI,defaultTheme:iz,defaultClassName:oz.root,generateClassName:Cl.generate});var lz=az;function sz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uz(e){return parseInt(tl(e).getComputedStyle(e).paddingRight,10)||0}function cz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&sz(e,o)}))}function dz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function pz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=el(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yl(el(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${uz(r)+e}px`;const t=el(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${uz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=el(r).body;else{const t=r.parentElement,n=tl(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const fz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mz(e){const t=[],n=[];return Array.from(e.querySelectorAll(fz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hz(){return!0}function gz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=mz,isEnabled:a=hz,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=il(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=el(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xs.jsxs(Hn.Fragment,{children:[Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const vz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);cz(t,e.mount,e.modalRef,r,!0);const o=dz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=dz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=pz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=dz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sz(e.modalRef,t),cz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=vz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=il(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=ol((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||el(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=ol((e=>{f.current=e,e&&(c&&C()?S():m.current&&sz(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Al(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ja((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ja((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function yz(e){return Rl("MuiModal",e)}Ll("MuiModal",["root","hidden","backdrop"]);const xz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Sz=sA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ez=sA(rz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=SF({name:"MuiModal",props:e}),{BackdropComponent:u=Ez,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:M,slots:I}=s,_=rn(s,xz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=bz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Sl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:Sz,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:v.root,G=null!=(l=null==M?void 0:M.backdrop)?l:v.backdrop,V=Ol({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Pl(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Ol({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Pl(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?Xs.jsx(YF,{ref:O,container:m,disablePortal:S,children:Xs.jsxs(B,Xt({},V,{children:[!w&&u?Xs.jsx(H,Xt({},U)):null,Xs.jsx(gz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var wz=Cz;var Rz=Ll("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Lz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return`scale(${e}, ${e**2})`}const Mz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},Iz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_z=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=aE}=e,g=rn(e,Lz),v=ul(),b=Hn.useRef(),y=PP(),x=Hn.useRef(null),S=il(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{EF(e);const{duration:n,delay:r,easing:o}=CF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Iz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=CF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Iz?o:.666*o,delay:Iz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kz(.75),c&&c(e)})),M=E(d);return Xs.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:kz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Mz[e],f,o.props.style),ref:S},t))}))}));_z.muiSupportAuto=!0;var Pz=_z;var Az=Hn.createContext({});function Dz(e){return Rl("MuiList",e)}Ll("MuiList",["root","padding","dense","subheader"]);const Tz=["children","className","component","dense","disablePadding","subheader"],Oz=sA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Nz=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Tz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dz,t)})(d);return Xs.jsx(Az.Provider,{value:c,children:Xs.jsxs(Oz,Xt({as:i,className:Pl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var qz=Ll("MuiListItemIcon",["root","alignItemsFlexStart"]);var Fz=Ll("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const zz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $z(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wz=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,zz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rl((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${yl(el(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=il(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return Xs.jsx(Nz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=el(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hz(t,r,s,l,jz);else if("ArrowUp"===n)e.preventDefault(),Hz(t,r,s,l,$z);else if("Home"===n)e.preventDefault(),Hz(t,null,s,l,jz);else if("End"===n)e.preventDefault(),Hz(t,null,s,l,$z);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bz(r,o);o.previousKeyMatched&&(s||Hz(t,r,!1,l,jz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gz(e){return Rl("MuiPopover",e)}Ll("MuiPopover",["root","paper"]);const Vz=["onEntering"],Uz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yz=["slotProps"];function Kz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jz(e){return"function"==typeof e?e():e}const Zz=sA(wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ej=sA(kF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var tj=Hn.forwardRef((function(e,t){var n,r,o;const i=SF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Pz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Vz),L=rn(i,Uz),k=null!=(n=null==y?void 0:y.paper)?n:v,M=Hn.useRef(),I=il(M,k.ref),_=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},Gz,t)})(_),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jz(l),t=(e&&1===e.nodeType?e:el(M.current).body).getBoundingClientRect();return{top:t.top+Kz(t,s.vertical),left:t.left+Xz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Kz(e,x.vertical),horizontal:Xz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Qz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=tl(Jz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Za((()=>{q()})),t=tl(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?el(Jz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Zz,$=null!=(o=null==b?void 0:b.paper)?o:ej,B=Ol({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:_,className:Pl(P.paper,null==k?void 0:k.className)}),H=Ol({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Pl(P.root,p)}),{slotProps:W}=H,G=rn(H,Yz);return Xs.jsx(j,Xt({},G,!Il(j)&&{slotProps:W,disableScrollLock:w},{children:Xs.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Xs.jsx($,Xt({},B,{children:d}))}))}))}));function nj(e){return Rl("MuiMenu",e)}Ll("MuiMenu",["root","paper","list"]);const rj=["onEntering"],oj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ij={vertical:"top",horizontal:"right"},aj={vertical:"top",horizontal:"left"},lj=sA(tj,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sj=sA(ej,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uj=sA(Wz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var cj=Hn.forwardRef((function(e,t){var n,r;const o=SF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,rj),x=rn(o,oj),S=(()=>{const e=Hn.useContext(R_);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},nj,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:sj,M=null!=(r=b.paper)?r:p,I=Ol({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Ol({elementType:k,externalSlotProps:M,ownerState:E,className:C.paper});return Xs.jsx(lj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ij:aj,slots:{paper:k,root:v.root},slotProps:{root:I,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:Xs.jsx(uj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Pl(C.list,u.className),children:a}))}))}));function dj(e){return Rl("MuiMenuItem",e)}var pj=Ll("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mj=sA(UF,{shouldForwardProp:e=>lA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:z_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:z_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:z_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:z_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rz.inset}`]:{marginLeft:52},[`& .${Fz.root}`]:{marginTop:0,marginBottom:0},[`& .${Fz.inset}`]:{paddingLeft:36},[`& .${qz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qz.root} svg`]:{fontSize:"1.25rem"}}))));var hj=Hn.forwardRef((function(e,t){const n=SF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,fj),f=Hn.useContext(Az),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);rl((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,Sl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dj,a))})(n),b=il(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xs.jsx(Az.Provider,{value:m,children:Xs.jsx(mj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Pl(v.focusVisible,s),className:Pl(v.root,d)},p,{ownerState:g,classes:v}))})}));const gj=sA(lz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),vj=sA("div")({position:"absolute",left:0,bottom:0}),bj=sA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...wt,justifyContent:null!=e?e:wt.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),yj=sA("div")((()=>({...wt}))),xj=sA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Sj=sA(cj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ej=sA(hj,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),Cj=sA("span")({textOverflow:"ellipsis",overflow:"hidden"}),wj=sA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:pT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Rj={[hD.SORTING]:!0,[hD.SELECTIONS]:!0,[hD.SEARCHING]:!0},Lj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=Hn.useRef(null),g=uT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=oT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:M,hoverBackground:I,activeBackground:_}=g.header,P=Hn.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=bF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=Qq($,"flex-start",S);return Xs.jsxs(gj,{className:Qe,title:t.label,interactions:y,background:T?_:M,hoverBackground:I,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[Xs.jsxs(bj,{children:[A&&Xs.jsx(yj,{children:Xs.jsx(gF,{height:12})}),Xs.jsx(xj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:Xs.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Rj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),Xs.jsx(vj,{ref:h}),Xs.jsx(vj,{ref:P})]}),Xs.jsx(xF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},kj=({rowSpan:e,columnSpan:t})=>{const n=uT();return e>0&&t>0?Xs.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ij=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),_j=Hn.forwardRef(Ij);function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),Dj=Hn.forwardRef(Aj),Tj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=uT(),{interactions:i}=oT(),{isActive:a}=Pq(),{setIsAdjustingWidth:l}=vF([e]);if(!(!!i.active&&!a))return null;const s=yF(o,{isLeftColumn:!0});return Xs.jsx(mA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*hT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*hT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),qj=Hn.forwardRef(Nj),Fj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=oT(),{open:c,setOpen:d,handleOpenMenu:p}=bF({interactions:s,dataModel:n});return Xs.jsxs(Ej,{component:"div",onClick:p,isActive:c,children:[Xs.jsx(Cj,{children:e.label}),Xs.jsxs(wj,{className:"indent-mode-dropdown-more",visible:c,children:[Xs.jsx(qj,{}),e.isDim&&Xs.jsxs(Xs.Fragment,{children:[Xs.jsx(vD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Rj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Xs.jsx(vj,{ref:i}),Xs.jsx(vj,{ref:o})]})]})]})},zj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===ST,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===ST;return!(r&&a&&l)&&((null==t?void 0:t.id)!==ST&&e<n.length-1)},jj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=uT(),{interactions:u}=oT(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=vF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Xs.jsxs(gj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!kq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[Xs.jsxs(bj,{justifyContent:"flex-start",children:[Xs.jsx(xj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Xs.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Xs.jsx(Dj,{}):Xs.jsx(_j,{}),Xs.jsx(vj,{ref:p})]}),Xs.jsx(Sj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==ST&&Xs.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Xs.jsx(Fj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),zj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Xs.jsx(EA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Xs.jsx(Tj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},$j={display:"grid",width:"fit-content"},Bj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Xs.jsxs("div",{style:{...$j,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Xs.jsx(kj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(Xs.jsx(jj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(Xs.jsx(Lj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Hj=Hn.memo(Bj);const Wj=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Gj=(e,t)=>{JM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Vj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===gT.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Qq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Qq(u,i,r)},Uj=()=>{},Yj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=uT(),{interactions:f,env:{flags:m}}=oT(),{select:h,isLocked:g}=Pq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return Xs.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,..._t(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:$q(x),background:Nq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Vj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Uj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Kj=e=>e.stopPropagation(),Xj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(Hw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Kj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Qj=({children:e,textStyle:t})=>Xs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Jj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Pq(),{interactions:i}=oT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...Mt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:qq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Fq({cell:e,styleService:t}),fontStyle:zq({cell:e,styleService:t}),textDecoration:jq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==gT.Image||e.isTotal?(e.representation.type!==gT.Link||o||e.isTotal||(a=Xs.jsx(Xj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Xs.jsx(Qj,{textStyle:l,children:a})):Xs.jsx(Xq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Zj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==gT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},e$=({index:e,style:t,data:n})=>{const r=uT(),{isSelected:o}=Pq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=vF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=nq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return Xs.jsx(vq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return Xs.jsxs(Yj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[Xs.jsxs(bq,{verticalAlign:Zj(m),width:yq(m.representation),right:m.isLeftColumn?void 0:4,children:[Xs.jsx(Wq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),Xs.jsx(Jj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),Xs.jsx(xF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var t$=Wn.memo(e$,tq);const n$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},r$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},o$=(e,t)=>n=>{e.current&&(e.current[t]=n)},i$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},a$={overflow:"hidden",willChange:"auto",flexShrink:0},l$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=uT();Gj(t,a),Wj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Xs.jsx("div",{style:{...i$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=BT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=r$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return Xs.jsx(QN,{ref:o$(t,p),style:{...a$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:v,children:t$},h)}))})};var s$=Hn.memo(l$);const u$={overflow:"hidden",willChange:"auto"},c$={...Rt,borderWidth:"0px 0px 0px 1px"},d$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=uT(),p={...c$,borderColor:c,height:o};Gj(t,a),Wj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Xs.jsx("div",{style:{width:r,height:o,...c$}}):Xs.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=r$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?BT(g):`empty ${c}`;return Xs.jsx(QN,{ref:o$(t,c),style:u$,height:n(),width:r,itemCount:p,itemSize:n$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:uF,estimatedItemSize:m,children:t$},v)}))})};var p$=Hn.memo(d$);const f$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=uT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=pN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=pN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(dN(i,o,0)),visibleTopDimensionInfo:u.map(dN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=iN(o,r,i,c,d),y=uN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:M,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=oT(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=cN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=cN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const M=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}M()}),[M,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:M,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=uT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=uT(),{measureText:s}=KM(l.header),u=DT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=TT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+St,p=d<t,f=Hn.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+mT;return r&&d+fT<=a&&(c=!0,d+=fT),d+pT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return Hn.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:M,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:M,horizontalScrollbarHeight:I}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=oT();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Xs.jsx(gN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:Xs.jsx(fN,{...U.fullSize,children:Xs.jsxs(vN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&Xs.jsx(gN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:Xs.jsx(fN,{isLeftGrid:!0,...Y.containers.fullSize,children:Xs.jsxs(vN,{isLeftGrid:!0,...Y.containers.sticky,children:[Xs.jsx(Hj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),Xs.jsx(s$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Xs.jsx(gN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:Xs.jsx(fN,{...K.containers.fullSize,children:Xs.jsxs(vN,{...K.containers.sticky,children:[Xs.jsx(p$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),Xs.jsx(fF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},m$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=oT(),{layout:u,hasData:c}=t;return Xs.jsxs(Xs.Fragment,{children:[c&&Xs.jsx(f$,{...e}),Xs.jsx(aT,{translator:n,layoutService:t}),Xs.jsx(tT,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},h$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},g$=12,v$=14,b$=16,y$=24,x$=3,S$=300,E$=400,C$=600,w$=700,R$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(h$.GREYSCALE_0,.05),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var L$;function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(null,arguments)}nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var M$,I$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),L$||(L$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _$(){return _$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_$.apply(null,arguments)}var P$=function(e){return Hn.createElement("svg",_$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),M$||(M$=Hn.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function A$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var D$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),T$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),O$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),N$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),q$=({className:e})=>Wn.createElement(A$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Wn.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),F$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:h$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const z$={MuiAccordion:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:h$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${h$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,borderRadius:x$,backgroundColor:h$.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${h$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:h$.WHITE,color:h$.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:x$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:x$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:h$.PURPLE,"&.Mui-focusVisible":{borderColor:h$.PURPLE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:h$.GREEN,"&.Mui-focusVisible":{borderColor:h$.GREEN,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:h$.BLUE,"&.Mui-focusVisible":{borderColor:h$.BLUE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:h$.ORANGE,"&.Mui-focusVisible":{borderColor:h$.ORANGE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:h$.RED,"&.Mui-focusVisible":{borderColor:h$.RED,boxShadow:`0 0 0 3px ${y_(h$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:h$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:h$.PURPLE_PALE},"&:active":{backgroundColor:h$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:h$.PURPLE_PALE,boxShadow:`0 0 0 3px ${y_(h$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:h$.ORANGE_PALE},"&:active":{backgroundColor:h$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:h$.ORANGE_PALE,boxShadow:`0 0 0 3px ${y_(h$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:h$.RED_PALE},"&:active":{backgroundColor:h$.RED_DARK},"&.Mui-focusVisible":{borderColor:h$.RED_PALE,boxShadow:`0 0 0 3px ${y_(h$.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:h$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:h$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:x$,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:g$,borderRadius:x$,color:h$.TEXT_PRIMARY,backgroundColor:h$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:h$.GREYSCALE_0_05,color:h$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:h$.GREEN,borderColor:h$.GREEN},"&.MuiChip-outlinedInfo":{color:h$.BLUE,borderColor:h$.BLUE},"&.MuiChip-outlinedWarning":{color:h$.ORANGE,borderColor:h$.ORANGE},"&.MuiChip-outlinedError":{color:h$.RED,borderColor:h$.RED}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:x$,boxShadow:"none",backgroundColor:h$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:h$.GREEN,borderColor:h$.GREEN},outlinedSecondary:{color:h$.BLUE,borderColor:h$.BLUE},label:{fontFamily:R$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(I$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:x$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:x$,fontSize:v$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:h$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${h$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:h$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:h$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:x$,border:`solid 1px ${h$.GREYSCALE_0_15}`,color:h$.GREYSCALE_0_60,marginRight:0,width:y$,height:y$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${h$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:x$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:h$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:v$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:g$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:h$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:h$.GREYSCALE_25,fontSize:g$,fontFamily:R$.FONT_FAMILY,fontWeight:C$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:h$.TEXT_PRIMARY},"&.Mui-error":{color:h$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:h$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:E$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:h$.TEXT_SECONDARY,content:"'(required)'",fontWeight:E$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:v$,lineHeight:"16px",backgroundColor:h$.WHITE,borderRadius:x$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_05}`,borderColor:h$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.RED}`,boxShadow:`0px 0px 0px 1px ${h$.RED}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_10}`,borderColor:h$.GREYSCALE_0_10,backgroundColor:h$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:h$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:h$.GREYSCALE_0_15,borderRadius:x$,boxShadow:`inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(I$,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:h$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:h$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&:focus":{backgroundColor:h$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:h$.GREYSCALE_0_30,"&:hover":{backgroundColor:h$.GREYSCALE_0_0,borderColor:h$.GREYSCALE_0_15},"& ~svg":{color:h$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:x$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:h$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:v$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:g$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:g$,fontWeight:C$,color:h$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:C$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(N$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:h$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:h$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:h$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(F$,null),checkedIcon:Wn.createElement(D$,null),indeterminateIcon:Wn.createElement(T$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:x$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:h$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:h$.GREYSCALE_0_55,color:h$.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:h$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:h$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:h$.GREYSCALE_0_55,"&:hover":{color:h$.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:h$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:h$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:v$,color:h$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:C$},secondary:{fontSize:g$,color:h$.GREYSCALE_45,fontWeight:E$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:v$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:v$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:h$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:g$,borderBottom:`solid 1px ${h$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:v$,color:h$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:h$.RED}}},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:h$.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:h$.GREEN,height:"24px","&.Mui-disabled":{color:h$.GREYSCALE_0_15}},rail:{backgroundColor:h$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$,boxShadow:`inset 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.WHITE,boxShadow:`0px 1px 2px 0px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`,"&:hover":{borderRadius:x$,boxShadow:`0 2px 4px 0 ${h$.GREYSCALE_0_30}, 0 0 0 1px ${h$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:h$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:h$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:h$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:h$.GREYSCALE_0_15},markLabel:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:h$.WHITE,color:h$.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:h$.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${y_(h$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${y_(h$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:h$.GREYSCALE_0_15,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:v$,fontWeight:C$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${h$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,backgroundColor:h$.GREYSCALE_0_03,borderRadius:x$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:h$.GREYSCALE_25,"&.Mui-selected":{color:h$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:v$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:x$,"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${h$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${h$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:x$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderRight:`1px solid ${h$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:C$,backgroundColor:h$.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:h$.GREYSCALE_98,borderBottom:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderTop:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05,"&:hover":{backgroundColor:h$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:h$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(q$,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${h$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:v$,borderRadius:x$,padding:"7px 16px",border:`1px solid ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_60,color:h$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:h$.GREYSCALE_0_03,border:`1px solid ${h$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:h$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`,border:`1px solid ${h$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:h$.GREYSCALE_25,backgroundColor:h$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:g$,height:24,width:24,padding:7},sizeLarge:{fontSize:b$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:v$,borderRadius:x$}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:h$.GREYSCALE_20},tooltip:{backgroundColor:h$.GREYSCALE_20,fontSize:g$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var j$=e=>z$;const $$={mode:"light",primary:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},secondary:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},error:{ultraLight:h$.RED_ULTRA_LIGHT,light:h$.RED_PALE,main:h$.RED,dark:h$.RED_DARK,extraDark:h$.RED_EXTRA_DARK,contrastText:h$.WHITE},warning:{ultraLight:h$.ORANGE_ULTRA_LIGHT,light:h$.ORANGE_PALE,main:h$.ORANGE,dark:h$.ORANGE_DARK,extraDark:h$.ORANGE_EXTRA_DARK,contrastText:h$.WHITE},success:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},info:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},text:{primary:h$.TEXT_PRIMARY,secondary:h$.TEXT_SECONDARY,disabled:h$.GREYSCALE_0_30},action:{hover:h$.GREYSCALE_0_03,hoverOpacity:.03,selected:h$.GREYSCALE_0_05,selectedOpacity:.05,focus:h$.MISC_FOCUS_BORDER},amethyst:{ultraLight:h$.WHITE,main:h$.PURPLE,light:h$.PURPLE_PALE,dark:h$.PURPLE_DARK,extraDark:h$.GREYSCALE_0_0,contrastText:h$.WHITE},background:{paper:h$.WHITE,default:h$.GREYSCALE_95},divider:h$.GREYSCALE_0_15},B$=e=>$$,H$=(e="light")=>({components:j$(),palette:B$(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:v$,fontWeightLight:S$,fontWeightRegular:E$,fontWeightMedium:C$,fontWeightBold:w$,htmlFontSize:v$,fontFamily:R$.FONT_FAMILY,button:{fontWeight:C$,fontSize:v$,textTransform:"none"},body1:{fontSize:b$,lineHeight:"24px"},body2:{fontSize:v$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:y$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:b$,fontWeight:C$,lineHeight:"16px"},h6:{fontSize:v$,fontWeight:C$,lineHeight:"16px"},caption:{color:h$.TEXT_SECONDARY},subtitle1:{fontSize:v$,color:h$.TEXT_SECONDARY},subtitle2:{fontSize:g$,color:h$.TEXT_SECONDARY}},shape:{borderRadius:x$}});const W$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=H$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),IP({...n,direction:e})}("ltr");e.render(Xs.jsx(Wn.StrictMode,{children:Xs.jsx(cA,{theme:p,children:Xs.jsx(iT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Xs.jsx(Aq,{selections:n,updatePageInfo:t.updatePageInfo,children:Xs.jsx(cT,{styleService:r,children:Xs.jsx(m$,{...t})})})})})}))},G$={darker:.15,brighter:.3,opacity:.03},V$={darker:.3,brighter:.5,opacity:.05};var U$,Y$,K$,X$;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(U$||(U$={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(Y$||(Y$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(K$||(K$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(X$||(X$={}));const Q$=e=>e?`${parseInt(e,10)}px`:void 0,J$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},Z$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),eB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",tB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",nB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function rB(t,n){return e.useMemo((()=>t),n)}const oB={},iB=t=>{const n=e.useMemo((()=>({current:oB})),[]);return n.current=n.current===oB?t:n.current,n},aB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,lB=(t,n,r)=>{var o,i,a;const l=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,s=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,u=null!==(a=1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue))&&void 0!==a&&a;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o})=>{var i,a,l;const{qHyperCube:s,nullValueRepresentation:u,snapshotData:c}=e,{qNoOfLeftDims:d,qEffectiveInterColumnSortOrder:p,qMeasureInfo:f,qDimensionInfo:m}=s,h=!!c,g=null!==(i=null==c||null===(a=c.content)||void 0===a?void 0:a.rowsPerPage)&&void 0!==i?i:15e3,v={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,g)},b=p.slice(0,d),y=e=>b.some((t=>t===e)),x=y(xT),S=new Map(p.map((e=>{var t;return[null!==(t=m[e])&&void 0!==t?t:xT,e]}))),E=f.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==u?void 0:u.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(x)return 0;const n=e%E.length;return t?n:f.findIndex((e=>e===E[n]))},getDimensionInfo:e=>e===xT?xT:m[e],getDimensionInfoIndex:e=>{var t;return null!==(t=S.get(e))&&void 0!==t?t:-1},size:v,isSnapshot:h,hasLimitedData:!h&&v.x<e.qHyperCube.qSize.qcx,hasData:v.x>0&&v.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:x,leftDimensionInfoIndexes:b,isLeftDimension:y,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:E,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(l=e.qHyperCube.indentModeColumnWidth)&&void 0!==l?l:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o}})({layout:t,flags:n,qShowTotalsAbove:l,qAlwaysFullyExpanded:s,isSortedByFirstMeasure:u})),[t,l,s,u,n])},sB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=iB(e);return t.current=e,t})(lN(o));return Dk((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(yT,sN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},uB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),cB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:uB({rowsPerPage:n,totalRowCount:e,page:t})}),dB=15,pB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-dB,0),u=Math.max(l+o-dB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=lN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=sN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(yT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var fB={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const mB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(fB).forEach((t=>{e.add(fB[t])}))}}(t)),[t]),{translator:t,language:n}},hB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>XM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=iB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>xq()),[]),l=rB((e=>{r.current.add(e)}),[r]),s=rB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>Dk((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=lB(i,n,p),h=e.useSelections(),g=Ak(i,r),{translator:v,language:b}=mB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...cB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...cB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=uB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:uB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=pB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=sB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,M,I,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[U$.LineClamp])&&void 0!==i?i:oe(Y$.Grid,K$.Grid,X$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[U$.ColumnLineClamp])&&void 0!==l?l:oe(Y$.Grid,K$.Grid,X$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=J$(e,null==Q?void 0:Q[U$.Background]))&&void 0!==u?u:oe(Y$.Dimension,K$.LabelName,X$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Q$(null==Q?void 0:Q[U$.FontSize]))&&void 0!==d?d:oe(Y$.Dimension,K$.LabelName,X$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[U$.FontFamily])&&void 0!==f?f:oe(Y$.Dimension,K$.LabelName,X$.FontFamily))&&void 0!==p?p:vt,fontWeight:eB(null==Q?void 0:Q[U$.FontStyle],bt),fontStyle:tB(null==Q?void 0:Q[U$.FontStyle]),textDecoration:nB(null==Q?void 0:Q[U$.FontStyle]),color:null!==(m=null!==(h=J$(e,null==Q?void 0:Q[U$.FontColor]))&&void 0!==h?h:oe(Y$.Dimension,K$.LabelName,X$.Color))&&void 0!==m?m:EL.TEXT,background:le,hoverBackground:Ek(le,G$),activeBackground:Ek(le,V$)},dimensionValues:{fontSize:null!==(g=null!==(v=Q$(null==J?void 0:J[U$.FontSize]))&&void 0!==v?v:oe(Y$.Dimension,K$.LabelValue,X$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[U$.FontFamily])&&void 0!==y?y:oe(Y$.Dimension,K$.LabelValue,X$.FontFamily))&&void 0!==b?b:vt,fontWeight:eB(null==J?void 0:J[U$.FontStyle],void 0),fontStyle:tB(null==J?void 0:J[U$.FontStyle]),textDecoration:nB(null==J?void 0:J[U$.FontStyle]),color:null!==(x=null!==(S=J$(e,null==J?void 0:J[U$.FontColor]))&&void 0!==S?S:oe(Y$.Dimension,K$.LabelValue,X$.Color))&&void 0!==x?x:EL.TEXT,background:null!==(E=null!==(C=J$(e,null==J?void 0:J[U$.Background]))&&void 0!==C?C:oe(Y$.Dimension,K$.LabelValue,X$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Q$(null==Z?void 0:Z[U$.FontSize]))&&void 0!==R?R:oe(Y$.Measure,K$.LabelValue,X$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[U$.FontFamily])&&void 0!==k?k:oe(Y$.Measure,K$.LabelValue,X$.FontFamily))&&void 0!==L?L:vt,fontWeight:eB(null==Z?void 0:Z[U$.FontStyle],"normal"),fontStyle:tB(null==Z?void 0:Z[U$.FontStyle]),textDecoration:nB(null==Z?void 0:Z[U$.FontStyle]),color:null!==(M=null!==(I=J$(e,null==Z?void 0:Z[U$.FontColor]))&&void 0!==I?I:oe(Y$.Measure,K$.LabelValue,X$.Color))&&void 0!==M?M:Et.FontSecondary,background:null!==(_=null!==(P=J$(e,null==Z?void 0:Z[U$.Background]))&&void 0!==P?P:oe(Y$.Measure,K$.LabelValue,X$.BackgroundColor))&&void 0!==_?_:Et.Transparent},measureLabels:{fontWeight:eB(null==ee?void 0:ee[U$.FontStyle],"normal"),fontStyle:tB(null==ee?void 0:ee[U$.FontStyle]),textDecoration:nB(null==ee?void 0:ee[U$.FontStyle]),color:null!==(A=null!==(D=J$(e,null==ee?void 0:ee[U$.FontColor]))&&void 0!==D?D:oe(Y$.Measure,K$.LabelName,X$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=J$(e,null==ee?void 0:ee[U$.Background]))&&void 0!==O?O:oe(Y$.Measure,K$.LabelName,X$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:eB(null==te?void 0:te[U$.FontStyle],bt),fontStyle:tB(null==te?void 0:te[U$.FontStyle]),textDecoration:nB(null==te?void 0:te[U$.FontStyle]),color:null!==(N=null!==(q=J$(e,null==te?void 0:te[U$.FontColor]))&&void 0!==q?q:oe(Y$.Total,K$.LabelValue,X$.Color))&&void 0!==N?N:EL.TEXT,background:null!==(F=null!==(z=J$(e,null==te?void 0:te[U$.Background]))&&void 0!==z?z:oe(Y$.Total,K$.LabelValue,X$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:eB(null==ne?void 0:ne[U$.FontStyle],"normal"),fontStyle:tB(null==ne?void 0:ne[U$.FontStyle]),textDecoration:nB(null==ne?void 0:ne[U$.FontStyle]),color:null!==(j=null!==($=J$(e,null==ne?void 0:ne[U$.FontColor]))&&void 0!==$?$:oe(Y$.Null,K$.LabelValue,X$.Color))&&void 0!==j?j:EL.TEXT,background:null!==(B=null!==(H=J$(e,null==ne?void 0:ne[U$.Background]))&&void 0!==H?H:oe(Y$.Null,K$.LabelValue,X$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=J$(e,null==re?void 0:re[U$.Border]))&&void 0!==G?G:oe(Y$.Grid,K$.Grid,X$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=J$(e,null==re?void 0:re[U$.Divider]))&&void 0!==U?U:oe(Y$.Grid,K$.Divider,X$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=J$(e,null==re?void 0:re[U$.Background]))&&void 0!==K?K:oe(Y$.Grid,K$.Grid,X$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(Z$(se.header.fontSize,ae),Z$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(Z$(se.measureValues.fontSize,ie),Z$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=Z$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([aB(t.header),aB(t.dimensionValues),aB({...t.dimensionValues,...t.measureLabels}),aB({...t.dimensionValues,...t.nullValues}),aB({...t.dimensionValues,...t.totalValues}),aB(t.measureValues),aB({...t.measureValues,...t.nullValues}),aB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&rI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&W$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},gB={version:"3.8.3",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},vB=e=>({...gB,qHyperCubeDef:{...gB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:vB(e)},data:Pe(e)},ext:Kt(e),component(){hB(e)}}}}));
|
|
193
|
+
`),AF.rippleVisible,zF,550,(({theme:e})=>e.transitions.easing.easeInOut),AF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),AF.child,AF.childLeaving,jF,550,(({theme:e})=>e.transitions.easing.easeInOut),AF.childPulsate,$F,(({theme:e})=>e.transitions.easing.easeInOut)),WF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Sr(n,DF),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=Ls(),f=ao.useRef(null),m=ao.useRef(null),h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(HF,{classes:{ripple:Ys(o.ripple,AF.ripple),rippleVisible:Ys(o.rippleVisible,AF.rippleVisible),ripplePulsate:Ys(o.ripplePulsate,AF.ripplePulsate),child:Ys(o.child,AF.child),childLeaving:Ys(o.childLeaving,AF.childLeaving),childPulsate:Ys(o.childPulsate,AF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.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 ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(BF,mr({className:Ys(AF.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var GF=WF;function VF(e){return Bs("MuiButtonBase",e)}var UF=Hs("MuiButtonBase",["root","disabled","focusVisible"]);const YF=["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"],KF=fA("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"},[`&.${UF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),XF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Sr(n,YF),A=ao.useRef(null),D=ao.useRef(null),T=Es(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Os(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Ss((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Ss((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Ss((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Ss((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Es(t,F,A),se=mr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},VF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(KF,mr({as:ie,className:Ys(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(GF,mr({ref:T,center:o},I)):null]}))}));var QF=XF;var JF=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));const ZF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ez={entering:{opacity:1},entered:{opacity:1}},tz=ao.forwardRef((function(e,t){const n=NP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=Sr(e,ZF),y=ao.useRef(null),x=Es(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{LF(e);const r=kF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=kF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,mr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,mr({style:mr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ez[e],h,a.props.style),ref:x},t))}))}));var nz=tz;function rz(e){return Bs("MuiBackdrop",e)}Hs("MuiBackdrop",["root","invisible"]);const oz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],iz=fA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>mr({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"}))),az=ao.forwardRef((function(e,t){var n,r,o;const i=RF({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=nz,transitionDuration:g}=i,v=Sr(i,oz),b=mr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},rz,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,mr({in:p,timeout:g},v,{children:fc.jsx(iz,mr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ys(y.root,l,null==x?void 0:x.className),ownerState:mr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var lz=az;var sz=Hs("MuiBox",["root"]);const uz=TP(),cz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(c_);return ao.forwardRef((function(e,a){const l=v_(n),s=x_(e),{className:u,component:c="div"}=s,d=Sr(s,E_);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:uM,defaultTheme:uz,defaultClassName:sz.root,generateClassName:js.generate});var dz=cz;function pz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fz(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function mz(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&&pz(e,o)}))}function hz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function gz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${fz(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(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 vz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bz(e){const t=[],n=[];return Array.from(e.querySelectorAll(vz)).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 yz(){return!0}function xz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=bz,isEnabled:a=yz,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Sz=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&&pz(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);mz(t,e.mount,e.modalRef,r,!0);const o=hz(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=hz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=gz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=hz(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&&pz(e.modalRef,t),mz(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&&pz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ez(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&pz(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ks(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=mr({},n,t);return mr({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>mr({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function Cz(e){return Bs("MuiModal",e)}Hs("MuiModal",["root","hidden","backdrop"]);const wz=["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"],Rz=fA("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})=>mr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Lz=fA(lz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kz=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=RF({name:"MuiModal",props:e}),{BackdropComponent:u=Lz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Sr(s,wz),P=mr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Ez(mr({},P,{rootRef:t})),z=mr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:Rz,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=Js({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Ys(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Js({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(mr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ys(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(JF,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,mr({},V,{children:[!w&&u?fc.jsx(H,mr({},U)):null,fc.jsx(xz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var Iz=kz;var Mz=Hs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const _z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pz(e){return`scale(${e}, ${e**2})`}const Az={entering:{opacity:1,transform:Pz(1)},entered:{opacity:1,transform:"none"}},Dz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tz=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=Sr(e,_z),v=Ls(),b=ao.useRef(),y=NP(),x=ao.useRef(null),S=Es(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{LF(e);const{duration:n,delay:r,easing:o}=kF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Dz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=kF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Dz?o:.666*o,delay:Dz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Pz(.75),c&&c(e)})),I=E(d);return fc.jsx(h,mr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,mr({style:mr({opacity:0,transform:Pz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Az[e],f,o.props.style),ref:S},t))}))}));Tz.muiSupportAuto=!0;var Oz=Tz;var Nz=ao.createContext({});function qz(e){return Bs("MuiList",e)}Hs("MuiList",["root","padding","dense","subheader"]);const Fz=["children","className","component","dense","disablePadding","subheader"],zz=fA("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})=>mr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var jz=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Sr(n,Fz),c=ao.useMemo((()=>({dense:a})),[a]),d=mr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qz,t)})(d);return fc.jsx(Nz.Provider,{value:c,children:fc.jsxs(zz,mr({as:i,className:Ys(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var $z=Hs("MuiListItemIcon",["root","alignItemsFlexStart"]);var Bz=Hs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Hz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Wz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Gz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vz(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 Uz(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")&&Vz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Yz=ao.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=Sr(e,Hz),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xs((()=>{r&&p.current.focus()}),[r]),ao.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ns(vs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Es(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(jz,mr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uz(t,r,s,l,Wz);else if("ArrowUp"===n)e.preventDefault(),Uz(t,r,s,l,Gz);else if("Home"===n)e.preventDefault(),Uz(t,null,s,l,Wz);else if("End"===n)e.preventDefault(),Uz(t,null,s,l,Gz);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&&Vz(r,o);o.previousKeyMatched&&(s||Uz(t,r,!1,l,Wz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Kz(e){return Bs("MuiPopover",e)}Hs("MuiPopover",["root","paper"]);const Xz=["onEntering"],Qz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jz=["slotProps"];function Zz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ej(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function tj(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function nj(e){return"function"==typeof e?e():e}const rj=fA(Iz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oj=fA(PF,{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 ij=ao.forwardRef((function(e,t){var n,r,o;const i=RF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Oz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Sr(i.TransitionProps,Xz),L=Sr(i,Qz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Es(I,k.ref),_=mr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},Kz,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=nj(l),t=(e&&1===e.nodeType?e:vs(I.current).body).getBoundingClientRect();return{top:t.top+Zz(t,s.vertical),left:t.left+ej(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:Zz(e,x.vertical),horizontal:ej(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:tj(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bs(nj(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:tj(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.useEffect((()=>{if(!g)return;const e=gs((()=>{q()})),t=bs(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?vs(nj(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:rj,$=null!=(o=null==b?void 0:b.paper)?o:oj,B=Js({elementType:$,externalSlotProps:mr({},k,{style:O?k.style:mr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Ys(P.paper,null==k?void 0:k.className)}),H=Js({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Ys(P.root,p)}),{slotProps:W}=H,G=Sr(H,Jz);return fc.jsx(j,mr({},G,!Vs(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,mr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,mr({},B,{children:d}))}))}))}));function aj(e){return Bs("MuiMenu",e)}Hs("MuiMenu",["root","paper","list"]);const lj=["onEntering"],sj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uj={vertical:"top",horizontal:"right"},cj={vertical:"top",horizontal:"left"},dj=fA(ij,{shouldForwardProp:e=>pA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pj=fA(oj,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fj=fA(Yz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var mj=ao.forwardRef((function(e,t){var n,r;const o=RF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Sr(o.TransitionProps,lj),x=Sr(o,sj),S=(()=>{const e=ao.useContext(__);return null!=e&&e})(),E=mr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},aj,t)})(E),w=i&&!s&&d,R=ao.useRef(null);let L=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:pj,I=null!=(r=b.paper)?r:p,M=Js({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Js({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return fc.jsx(dj,mr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?uj:cj,slots:{paper:k,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:mr({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:fc.jsx(fj,mr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Ys(C.list,u.className),children:a}))}))}));function hj(e){return Bs("MuiMenuItem",e)}var gj=Hs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const vj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bj=fA(QF,{shouldForwardProp:e=>pA(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})=>mr({},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"}},[`&.${gj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:W_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:W_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:W_(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})`:W_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mz.inset}`]:{marginLeft:52},[`& .${Bz.root}`]:{marginTop:0,marginBottom:0},[`& .${Bz.inset}`]:{paddingLeft:36},[`& .${$z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&mr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$z.root} svg`]:{fontSize:"1.25rem"}}))));var yj=ao.forwardRef((function(e,t){const n=RF({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=Sr(n,vj),f=ao.useContext(Nz),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);xs((()=>{r&&h.current&&h.current.focus()}),[r]);const g=mr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return mr({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hj,a))})(n),b=Es(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(Nz.Provider,{value:m,children:fc.jsx(bj,mr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Ys(v.focusVisible,s),className:Ys(v.root,d)},p,{ownerState:g,classes:v}))})}));const xj=fA(dz,{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}}))),Sj=fA("div")({position:"absolute",left:0,bottom:0}),Ej=fA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Xn,justifyContent:null!=e?e:Xn.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Cj=fA("div")((()=>({...Xn}))),wj=fA("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}))),Rj=fA(mj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Lj=fA(yj,{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}}}))),kj=fA("span")({textOverflow:"ellipsis",overflow:"hidden"}),Ij=fA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:vT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Mj={[xD.SORTING]:!0,[xD.SELECTIONS]:!0,[xD.SEARCHING]:!0},_j=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=ao.useRef(null),g=mT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=uT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:I,hoverBackground:M,activeBackground:_}=g.header,P=ao.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=EF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h,sortCriteria:d.searchSortFromDimension&&t.isDim?d.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=tF($,"flex-start",S);return fc.jsxs(xj,{className:Je,title:t.label,interactions:y,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Jn,...rr(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[fc.jsxs(Ej,{children:[A&&fc.jsx(Cj,{children:fc.jsx(xF,{height:12})}),fc.jsx(wj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:fc.jsx("span",{style:Zn,children:t.label})})]}),t.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(ED,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Mj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),fc.jsx(Sj,{ref:h}),fc.jsx(Sj,{ref:P})]}),fc.jsx(wF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},Pj=({rowSpan:e,columnSpan:t})=>{const n=mT();return e>0&&t>0?fc.jsx("div",{style:{...Qn,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 Aj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Aj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Tj=ao.forwardRef(Dj);function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),lo.createElement("use",{fillRule:"evenodd"})),qj=ao.forwardRef(Nj),Fj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=mT(),{interactions:i}=uT(),{isActive:a}=Oq(),{setIsAdjustingWidth:l}=SF([e]);if(!(!!i.active&&!a))return null;const s=CF(o,{isLeftColumn:!0});return fc.jsx(yA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*xT))},confirmWidthCallback:o=>{var i;if(o.type===rt.FitToContent)return void e.applyIndentModeColumnWidth({type:rt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*xT);r(a),e.applyIndentModeColumnWidth({type:rt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jj=(e,t)=>lo.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){zj(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),lo.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"})),$j=ao.forwardRef(jj),Bj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=ao.useRef(null),i=ao.useRef(null),{app:a,model:l,interactions:s,embed:u}=uT(),{open:c,setOpen:d,handleOpenMenu:p}=EF({interactions:s,dataModel:n});return fc.jsxs(Lj,{component:"div",onClick:p,isActive:c,children:[fc.jsx(kj,{children:e.label}),fc.jsxs(Ij,{className:"indent-mode-dropdown-more",visible:c,children:[fc.jsx($j,{}),e.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(ED,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Mj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),fc.jsx(Sj,{ref:i}),fc.jsx(Sj,{ref:o})]})]})]})},Hj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===wT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===wT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==wT&&e<n.length-1)},Wj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=mT(),{interactions:u}=uT(),[c,d]=ao.useState(!1),p=ao.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=SF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return fc.jsxs(xj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Jn,color:m},onClick:e=>u.active&&!Pq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[fc.jsxs(Ej,{justifyContent:"flex-start",children:[fc.jsx(wj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:fc.jsx("span",{style:Zn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?fc.jsx(qj,{}):fc.jsx(Tj,{}),fc.jsx(Sj,{ref:p})]}),fc.jsx(Rj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==wT&&fc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:fc.jsx(Bj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),Hj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&fc.jsx(kA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),fc.jsx(Fj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},Gj={display:"grid",width:"fit-content"},Vj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>fc.jsxs("div",{style:{...Gj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&fc.jsx(Pj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(fc.jsx(Wj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(fc.jsx(_j,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Uj=ao.memo(Vj);const Yj=(e,t,n,r,o)=>{ao.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])},Kj=(e,t)=>{rM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Xj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===qe.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 tF(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return tF(u,i,r)},Qj=()=>{},Jj=({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=mT(),{interactions:f,env:{flags:m}}=uT(),{select:h,isLocked:g}=Oq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return fc.jsx("div",{className:Je,title:f.passive?t:void 0,style:{...n,...nr(a,l,p.grid.border,b),...or({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Jn,padding:"0px 4px",cursor:Gq(x),background:jq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Xj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Qj,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})},Zj=e=>e.stopPropagation(),e$=({href:e,text:t,interactions:n,color:r})=>lo.createElement(aL,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Zj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),t$=({children:e,textStyle:t})=>fc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),n$=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Oq(),{interactions:i}=uT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Zn,...er(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:$q({cell:e,styleService:t,isCellSelected:n}),fontWeight:Bq({cell:e,styleService:t}),fontStyle:Hq({cell:e,styleService:t}),textDecoration:Wq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==qe.Image||e.isTotal?(e.representation.type!==qe.Link||o||e.isTotal||(a=fc.jsx(e$,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),fc.jsx(t$,{textStyle:l,children:a})):fc.jsx(eF,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},r$=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==qe.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},o$=({index:e,style:t,data:n})=>{const r=mT(),{isSelected:o}=Oq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=SF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=aq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return fc.jsx(Sq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return fc.jsxs(Jj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[fc.jsxs(Eq,{verticalAlign:r$(m),width:Cq(m.representation),right:m.isLeftColumn?void 0:4,children:[fc.jsx(Yq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),fc.jsx(n$,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),fc.jsx(wF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ve.Measures:Ve.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var i$=lo.memo(o$,iq);const a$=({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()},l$=(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}},s$=(e,t)=>n=>{e.current&&(e.current[t]=n)},u$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Qn},c$={overflow:"hidden",willChange:"auto",flexShrink:0},d$=({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}}=mT();Kj(t,a),Yj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return fc.jsx("div",{style:{...u$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=GT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=l$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return fc.jsx(tq,{ref:s$(t,p),style:{...c$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:fF,estimatedItemSize:v,children:i$},h)}))})};var p$=ao.memo(d$);const f$={overflow:"hidden",willChange:"auto"},m$={...Qn,borderWidth:"0px 0px 0px 1px"},h$=({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}=mT(),p={...m$,borderColor:c,height:o};Kj(t,a),Yj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?fc.jsx("div",{style:{width:r,height:o,...m$}}):fc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=l$(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?GT(g):`empty ${c}`;return fc.jsx(tq,{ref:s$(t,c),style:f$,height:n(),width:r,itemCount:p,itemSize:a$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:fF,estimatedItemSize:m,children:i$},v)}))})};var g$=ao.memo(h$);const v$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=mT(),u=((e,t,n)=>ao.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 ao.useMemo((()=>{var e,n,a,l;const s=gN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=gN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(hN(i,o,0)),visibleTopDimensionInfo:u.map(hN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=ao.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=uN(o,r,i,c,d),y=fN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:M,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=uT(),f=ao.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=ao.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=ao.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=ao.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=ao.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=ao.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=ao.useRef(0),x=ao.useRef(0),S=ao.useRef(Ke.None),E=ao.useRef(Ke.None),[C,w]=ao.useState(0),[R,L]=ao.useState(0),k=e=>{E.current=mN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=mN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};ao.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),ao.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),ao.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=ao.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return ao.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),ao.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ye.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ye.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=mT(),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-Un,l),dataGridHeight:Math.min(r.height-c-Un,l),allRowsVisible:c+Un+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:M}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=mT(),{measureText:s}=eM(l.header),u=NT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=qT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+Un,p=d<t,f=ao.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+yT;return r&&d+bT<=a&&(c=!0,d+=bT),d+vT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return ao.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Un,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+Un-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:M}),X=ao.useCallback((()=>l),[l]),Q=ao.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=uT();ao.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),fc.jsx(xN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ye.CONTAINER_GRID,children:fc.jsx(vN,{...U.fullSize,children:fc.jsxs(SN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&fc.jsx(xN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.LEFT_GRID,children:fc.jsx(vN,{isLeftGrid:!0,...Y.containers.fullSize,children:fc.jsxs(SN,{isLeftGrid:!0,...Y.containers.sticky,children:[fc.jsx(Uj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),fc.jsx(p$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),fc.jsx(xN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.DATA_GRID,children:fc.jsx(vN,{...K.containers.fullSize,children:fc.jsxs(SN,{...K.containers.sticky,children:[fc.jsx(g$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),fc.jsx(vF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},b$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=uT(),{layout:u,hasData:c}=t;return fc.jsxs(fc.Fragment,{children:[c&&fc.jsx(v$,{...e}),fc.jsx(dT,{translator:n,layoutService:t}),fc.jsx(aT,{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})]})},y$={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)"},x$=12,S$=14,E$=16,C$=24,w$=3,R$=300,L$=400,k$=600,I$=700,M$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(y$.GREYSCALE_0,.05),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5);var _$;function P$(){return P$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P$.apply(null,arguments)}xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5);var A$,D$=function(e){return ao.createElement("svg",P$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),_$||(_$=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function T$(){return T$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T$.apply(null,arguments)}var O$=function(e){return ao.createElement("svg",T$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),A$||(A$=ao.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 N$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.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 q$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.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"}))),F$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),z$=(e={})=>lo.createElement(N$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),j$=(e={})=>lo.createElement(N$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.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"}))),$$=({className:e})=>lo.createElement(N$,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.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"}),lo.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"})))))),B$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:y$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const H$={MuiAccordion:{styleOverrides:{root:{backgroundColor:y$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:y$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(D$,{"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 ${y$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,borderRadius:w$,backgroundColor:y$.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 ${y$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:y$.WHITE,color:y$.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:w$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:y$.GREYSCALE_0_15,backgroundColor:y$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:y$.GREEN_PALE},"&:active":{backgroundColor:y$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:y$.BLUE_PALE},"&:active":{backgroundColor:y$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.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:w$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:y$.GREYSCALE_0_15,backgroundColor:y$.GREYSCALE_100_60,"&:active":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:y$.PURPLE,"&.Mui-focusVisible":{borderColor:y$.PURPLE,boxShadow:`0 0 0 3px ${w_(y$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:y$.GREEN,"&.Mui-focusVisible":{borderColor:y$.GREEN,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:y$.BLUE,"&.Mui-focusVisible":{borderColor:y$.BLUE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:y$.ORANGE,"&.Mui-focusVisible":{borderColor:y$.ORANGE,boxShadow:`0 0 0 3px ${w_(y$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:y$.RED,"&.Mui-focusVisible":{borderColor:y$.RED,boxShadow:`0 0 0 3px ${w_(y$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:y$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:y$.PURPLE_PALE},"&:active":{backgroundColor:y$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:y$.PURPLE_PALE,boxShadow:`0 0 0 3px ${w_(y$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:y$.GREEN_PALE},"&:active":{backgroundColor:y$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:y$.BLUE_PALE},"&:active":{backgroundColor:y$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:y$.ORANGE_PALE},"&:active":{backgroundColor:y$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:y$.ORANGE_PALE,boxShadow:`0 0 0 3px ${w_(y$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:y$.RED_PALE},"&:active":{backgroundColor:y$.RED_DARK},"&.Mui-focusVisible":{borderColor:y$.RED_PALE,boxShadow:`0 0 0 3px ${w_(y$.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:y$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:y$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:w$,boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(O$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:x$,borderRadius:w$,color:y$.TEXT_PRIMARY,backgroundColor:y$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:y$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:y$.GREYSCALE_0_05,color:y$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:y$.GREEN,borderColor:y$.GREEN},"&.MuiChip-outlinedInfo":{color:y$.BLUE,borderColor:y$.BLUE},"&.MuiChip-outlinedWarning":{color:y$.ORANGE,borderColor:y$.ORANGE},"&.MuiChip-outlinedError":{color:y$.RED,borderColor:y$.RED}},outlined:{border:`solid 1px ${y$.GREYSCALE_0_15}`,backgroundColor:y$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:w$,boxShadow:"none",backgroundColor:y$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:y$.GREEN,borderColor:y$.GREEN},outlinedSecondary:{color:y$.BLUE,borderColor:y$.BLUE},label:{fontFamily:M$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(O$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(D$,{"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:w$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:w$,fontSize:S$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:y$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${y$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:y$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:y$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:y$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:w$,border:`solid 1px ${y$.GREYSCALE_0_15}`,color:y$.GREYSCALE_0_60,marginRight:0,width:C$,height:C$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${y$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:w$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:y$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:S$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:x$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:y$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:y$.GREYSCALE_25,fontSize:x$,fontFamily:M$.FONT_FAMILY,fontWeight:k$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:y$.TEXT_PRIMARY},"&.Mui-error":{color:y$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:y$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:L$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:y$.TEXT_SECONDARY,content:"'(required)'",fontWeight:L$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:S$,lineHeight:"16px",backgroundColor:y$.WHITE,borderRadius:w$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.GREYSCALE_0_05}`,borderColor:y$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.RED}`,boxShadow:`0px 0px 0px 1px ${y$.RED}, inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.GREYSCALE_0_10}`,borderColor:y$.GREYSCALE_0_10,backgroundColor:y$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:y$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:y$.GREYSCALE_0_15,borderRadius:w$,boxShadow:`inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(D$,{...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:y$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:y$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&:active":{backgroundColor:y$.GREYSCALE_0_10},"&:focus":{backgroundColor:y$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${y$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:y$.GREYSCALE_0_30,"&:hover":{backgroundColor:y$.GREYSCALE_0_0,borderColor:y$.GREYSCALE_0_15},"& ~svg":{color:y$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${y$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:w$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:y$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:S$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:x$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:x$,fontWeight:k$,color:y$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:k$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${y$.GREYSCALE_0_15}, 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement(z$,null),checkedIcon:lo.createElement(j$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:y$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:y$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:y$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(B$,null),checkedIcon:lo.createElement(q$,null),indeterminateIcon:lo.createElement(F$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:w$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:y$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:y$.GREYSCALE_0_55,color:y$.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:y$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:y$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:y$.GREYSCALE_0_55,"&:hover":{color:y$.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:y$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:y$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:S$,color:y$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:k$},secondary:{fontSize:x$,color:y$.GREYSCALE_45,fontWeight:L$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:S$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&:active":{backgroundColor:y$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:S$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:y$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:x$,borderBottom:`solid 1px ${y$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:S$,color:y$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:y$.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:y$.RED}}},"&.Mui-focusVisible":{backgroundColor:y$.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:y$.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:y$.GREEN,height:"24px","&.Mui-disabled":{color:y$.GREYSCALE_0_15}},rail:{backgroundColor:y$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${y$.GREYSCALE_0_05}`,borderRadius:w$,boxShadow:`inset 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${y$.GREYSCALE_0_05}`,borderRadius:w$},thumb:{height:"16px",width:"16px",borderRadius:w$,backgroundColor:y$.WHITE,boxShadow:`0px 1px 2px 0px ${y$.GREYSCALE_0_15}, 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`,"&:hover":{borderRadius:w$,boxShadow:`0 2px 4px 0 ${y$.GREYSCALE_0_30}, 0 0 0 1px ${y$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${y$.GREYSCALE_0_15}, 0 0 0 1px ${y$.GREYSCALE_0_06}, 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${y$.GREYSCALE_0_15}, 0 0 0 1px ${y$.GREYSCALE_0_06}, 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:y$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:y$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:y$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:y$.GREYSCALE_0_15},markLabel:{color:y$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:y$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:y$.WHITE,color:y$.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:y$.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:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:y$.GREYSCALE_0_15,borderRadius:w$},thumb:{height:"16px",width:"16px",borderRadius:w$,backgroundColor:y$.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:S$,fontWeight:k$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${y$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,backgroundColor:y$.GREYSCALE_0_03,borderRadius:w$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:y$.GREYSCALE_25,"&.Mui-selected":{color:y$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:S$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:w$,"&:hover":{backgroundColor:`${y$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${y$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${y$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:w$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:y$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${y$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${y$.GREYSCALE_85}`,borderRight:`1px solid ${y$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:k$,backgroundColor:y$.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:y$.GREYSCALE_98,borderBottom:`1px solid ${y$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${y$.GREYSCALE_85}`,borderTop:`1px solid ${y$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:y$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:y$.GREYSCALE_0_05,"&:hover":{backgroundColor:y$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:y$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement($$,{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 ${y$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:S$,borderRadius:w$,padding:"7px 16px",border:`1px solid ${y$.GREYSCALE_0_15}`,backgroundColor:y$.GREYSCALE_100_60,color:y$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:y$.GREYSCALE_0_10,border:`1px solid ${y$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:y$.GREYSCALE_0_03,border:`1px solid ${y$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:y$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`,border:`1px solid ${y$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:y$.GREYSCALE_25,backgroundColor:y$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:y$.GREYSCALE_0_10,border:`1px solid ${y$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:x$,height:24,width:24,padding:7},sizeLarge:{fontSize:E$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:S$,borderRadius:w$}}},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:y$.GREYSCALE_20},tooltip:{backgroundColor:y$.GREYSCALE_20,fontSize:x$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var W$=e=>H$;const G$={mode:"light",primary:{ultraLight:y$.GREEN_ULTRA_LIGHT,light:y$.GREEN_PALE,main:y$.GREEN,dark:y$.GREEN_DARK,extraDark:y$.GREEN_EXTRA_DARK,contrastText:y$.WHITE},secondary:{ultraLight:y$.BLUE_ULTRA_LIGHT,light:y$.BLUE_PALE,main:y$.BLUE,dark:y$.BLUE_DARK,extraDark:y$.BLUE_EXTRA_DARK,contrastText:y$.WHITE},error:{ultraLight:y$.RED_ULTRA_LIGHT,light:y$.RED_PALE,main:y$.RED,dark:y$.RED_DARK,extraDark:y$.RED_EXTRA_DARK,contrastText:y$.WHITE},warning:{ultraLight:y$.ORANGE_ULTRA_LIGHT,light:y$.ORANGE_PALE,main:y$.ORANGE,dark:y$.ORANGE_DARK,extraDark:y$.ORANGE_EXTRA_DARK,contrastText:y$.WHITE},success:{ultraLight:y$.GREEN_ULTRA_LIGHT,light:y$.GREEN_PALE,main:y$.GREEN,dark:y$.GREEN_DARK,extraDark:y$.GREEN_EXTRA_DARK,contrastText:y$.WHITE},info:{ultraLight:y$.BLUE_ULTRA_LIGHT,light:y$.BLUE_PALE,main:y$.BLUE,dark:y$.BLUE_DARK,extraDark:y$.BLUE_EXTRA_DARK,contrastText:y$.WHITE},text:{primary:y$.TEXT_PRIMARY,secondary:y$.TEXT_SECONDARY,disabled:y$.GREYSCALE_0_30},action:{hover:y$.GREYSCALE_0_03,hoverOpacity:.03,selected:y$.GREYSCALE_0_05,selectedOpacity:.05,focus:y$.MISC_FOCUS_BORDER},amethyst:{ultraLight:y$.WHITE,main:y$.PURPLE,light:y$.PURPLE_PALE,dark:y$.PURPLE_DARK,extraDark:y$.GREYSCALE_0_0,contrastText:y$.WHITE},background:{paper:y$.WHITE,default:y$.GREYSCALE_95},divider:y$.GREYSCALE_0_15},V$=e=>G$,U$=(e="light")=>({components:W$(),palette:V$(),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:S$,fontWeightLight:R$,fontWeightRegular:L$,fontWeightMedium:k$,fontWeightBold:I$,htmlFontSize:S$,fontFamily:M$.FONT_FAMILY,button:{fontWeight:k$,fontSize:S$,textTransform:"none"},body1:{fontSize:E$,lineHeight:"24px"},body2:{fontSize:S$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:C$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:E$,fontWeight:k$,lineHeight:"16px"},h6:{fontSize:S$,fontWeight:k$,lineHeight:"16px"},caption:{color:y$.TEXT_SECONDARY},subtitle1:{fontSize:S$,color:y$.TEXT_SECONDARY},subtitle2:{fontSize:x$,color:y$.TEXT_SECONDARY}},shape:{borderRadius:w$}});const Y$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=U$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),TP({...n,direction:e})}("ltr");e.render(fc.jsx(lo.StrictMode,{children:fc.jsx(hA,{theme:p,children:fc.jsx(cT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:fc.jsx(Nq,{selections:n,updatePageInfo:t.updatePageInfo,children:fc.jsx(hT,{styleService:r,children:fc.jsx(b$,{...t})})})})})}))};var K$,X$,Q$,J$;!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"}(K$||(K$={})),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"}(X$||(X$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(Q$||(Q$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(J$||(J$={}));const Z$=e=>e?`${parseInt(e,10)}px`:void 0,eB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Yn.Transparent:n}},tB=(e,t)=>+(parseInt(e,10)*Vn*t+8).toFixed(2),nB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Wn:"normal",rB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",oB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function iB(t,n){return e.useMemo((()=>t),n)}const aB={},lB=t=>{const n=e.useMemo((()=>({current:aB})),[]);return n.current=n.current===aB?t:n.current,n},sB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,uB=(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,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=e.useMemo((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:m,qMeasureInfo:h,qDimensionInfo:g}=c,v=!!p,b=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Gn),y:Math.min(e.qHyperCube.qSize.qcy,b)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(CT),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:CT,e]}))),w=h.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:h.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===CT?CT:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:v,hasLimitedData:!v&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:rt.Auto,pixels:nt.PixelsDefault,percentage:nt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[t,a,l,s,n,u])},cB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=lB(e);return t.current=e,t})(dN(o));return XI((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(Gn,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(ET,pN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},dB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),pB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:dB({rowsPerPage:n,totalRowCount:e,page:t})}),fB=15,mB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-fB,0),u=Math.max(l+o-fB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=dN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=pN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(ET,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var hB={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 gB=()=>{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(hB).forEach((t=>{e.add(hB[t])}))}}(t)),[t]),{translator:t,language:n}},vB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>tM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=lB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>wq()),[]),l=iB((e=>{r.current.add(e)}),[r]),s=iB(xe((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>XI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=uB(i,n,p),h=e.useSelections(),g=KI(i,r),{translator:v,language:b}=gB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...pB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...pB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=dB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:dB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=mB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=cB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,M,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[K$.LineClamp])&&void 0!==i?i:oe(X$.Grid,Q$.Grid,J$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[K$.ColumnLineClamp])&&void 0!==l?l:oe(X$.Grid,Q$.Grid,J$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=eB(e,null==Q?void 0:Q[K$.Background]))&&void 0!==u?u:oe(X$.Dimension,Q$.LabelName,J$.BackgroundColor))&&void 0!==s?s:Yn.Transparent,se={header:{fontSize:null!==(c=null!==(d=Z$(null==Q?void 0:Q[K$.FontSize]))&&void 0!==d?d:oe(X$.Dimension,Q$.LabelName,J$.FontSize))&&void 0!==c?c:Bn,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[K$.FontFamily])&&void 0!==f?f:oe(X$.Dimension,Q$.LabelName,J$.FontFamily))&&void 0!==p?p:Hn,fontWeight:nB(null==Q?void 0:Q[K$.FontStyle],Wn),fontStyle:rB(null==Q?void 0:Q[K$.FontStyle]),textDecoration:oB(null==Q?void 0:Q[K$.FontStyle]),color:null!==(m=null!==(h=eB(e,null==Q?void 0:Q[K$.FontColor]))&&void 0!==h?h:oe(X$.Dimension,Q$.LabelName,J$.Color))&&void 0!==m?m:zk.TEXT,background:le,hoverBackground:zI(le,ot),activeBackground:zI(le,it)},dimensionValues:{fontSize:null!==(g=null!==(v=Z$(null==J?void 0:J[K$.FontSize]))&&void 0!==v?v:oe(X$.Dimension,Q$.LabelValue,J$.FontSize))&&void 0!==g?g:Bn,fontFamily:null!==(b=null!==(y=null==J?void 0:J[K$.FontFamily])&&void 0!==y?y:oe(X$.Dimension,Q$.LabelValue,J$.FontFamily))&&void 0!==b?b:Hn,fontWeight:nB(null==J?void 0:J[K$.FontStyle],void 0),fontStyle:rB(null==J?void 0:J[K$.FontStyle]),textDecoration:oB(null==J?void 0:J[K$.FontStyle]),color:null!==(x=null!==(S=eB(e,null==J?void 0:J[K$.FontColor]))&&void 0!==S?S:oe(X$.Dimension,Q$.LabelValue,J$.Color))&&void 0!==x?x:zk.TEXT,background:null!==(E=null!==(C=eB(e,null==J?void 0:J[K$.Background]))&&void 0!==C?C:oe(X$.Dimension,Q$.LabelValue,J$.BackgroundColor))&&void 0!==E?E:Yn.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Z$(null==Z?void 0:Z[K$.FontSize]))&&void 0!==R?R:oe(X$.Measure,Q$.LabelValue,J$.FontSize))&&void 0!==w?w:Bn,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[K$.FontFamily])&&void 0!==k?k:oe(X$.Measure,Q$.LabelValue,J$.FontFamily))&&void 0!==L?L:Hn,fontWeight:nB(null==Z?void 0:Z[K$.FontStyle],"normal"),fontStyle:rB(null==Z?void 0:Z[K$.FontStyle]),textDecoration:oB(null==Z?void 0:Z[K$.FontStyle]),color:null!==(I=null!==(M=eB(e,null==Z?void 0:Z[K$.FontColor]))&&void 0!==M?M:oe(X$.Measure,Q$.LabelValue,J$.Color))&&void 0!==I?I:Yn.FontSecondary,background:null!==(_=null!==(P=eB(e,null==Z?void 0:Z[K$.Background]))&&void 0!==P?P:oe(X$.Measure,Q$.LabelValue,J$.BackgroundColor))&&void 0!==_?_:Yn.Transparent},measureLabels:{fontWeight:nB(null==ee?void 0:ee[K$.FontStyle],"normal"),fontStyle:rB(null==ee?void 0:ee[K$.FontStyle]),textDecoration:oB(null==ee?void 0:ee[K$.FontStyle]),color:null!==(A=null!==(D=eB(e,null==ee?void 0:ee[K$.FontColor]))&&void 0!==D?D:oe(X$.Measure,Q$.LabelName,J$.Color))&&void 0!==A?A:Yn.FontSecondary,background:null!==(T=null!==(O=eB(e,null==ee?void 0:ee[K$.Background]))&&void 0!==O?O:oe(X$.Measure,Q$.LabelName,J$.BackgroundColor))&&void 0!==T?T:Yn.Transparent},totalValues:{fontWeight:nB(null==te?void 0:te[K$.FontStyle],Wn),fontStyle:rB(null==te?void 0:te[K$.FontStyle]),textDecoration:oB(null==te?void 0:te[K$.FontStyle]),color:null!==(N=null!==(q=eB(e,null==te?void 0:te[K$.FontColor]))&&void 0!==q?q:oe(X$.Total,Q$.LabelValue,J$.Color))&&void 0!==N?N:zk.TEXT,background:null!==(F=null!==(z=eB(e,null==te?void 0:te[K$.Background]))&&void 0!==z?z:oe(X$.Total,Q$.LabelValue,J$.BackgroundColor))&&void 0!==F?F:Yn.Transparent},nullValues:{fontWeight:nB(null==ne?void 0:ne[K$.FontStyle],"normal"),fontStyle:rB(null==ne?void 0:ne[K$.FontStyle]),textDecoration:oB(null==ne?void 0:ne[K$.FontStyle]),color:null!==(j=null!==($=eB(e,null==ne?void 0:ne[K$.FontColor]))&&void 0!==$?$:oe(X$.Null,Q$.LabelValue,J$.Color))&&void 0!==j?j:zk.TEXT,background:null!==(B=null!==(H=eB(e,null==ne?void 0:ne[K$.Background]))&&void 0!==H?H:oe(X$.Null,Q$.LabelValue,J$.BackgroundColor))&&void 0!==B?B:Yn.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=eB(e,null==re?void 0:re[K$.Border]))&&void 0!==G?G:oe(X$.Grid,Q$.Grid,J$.BorderColor))&&void 0!==W?W:Yn.DividerLight,divider:null!==(V=null!==(U=eB(e,null==re?void 0:re[K$.Divider]))&&void 0!==U?U:oe(X$.Grid,Q$.Divider,J$.BorderColor))&&void 0!==V?V:Yn.DividerDark,background:null!==(Y=null!==(K=eB(e,null==re?void 0:re[K$.Background]))&&void 0!==K?K:oe(X$.Grid,Q$.Grid,J$.BackgroundColor))&&void 0!==Y?Y:Yn.Transparent}};return se.headerCellHeight=Math.max(tB(se.header.fontSize,ae),tB(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(tB(se.measureValues.fontSize,ie),tB(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=tB(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([sB(t.header),sB(t.dimensionValues),sB({...t.dimensionValues,...t.measureLabels}),sB({...t.dimensionValues,...t.nullValues}),sB({...t.dimensionValues,...t.totalValues}),sB(t.measureValues),sB({...t.measureValues,...t.nullValues}),sB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&sM(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&Y$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},bB={version:"3.9.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:[]},yB=e=>({...bB,qHyperCubeDef:{...bB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:yB(e)},data:Ie(e)},ext:fr(e),component(){vB(e)}}}}));
|