@nebula.js/sn-table 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +166 -173
- package/core/esm/index.js +10 -10
- package/core/package.json +1 -1
- package/dist/sn-table.js +28 -28
- package/dist/sn-table.systemjs.js +10 -10
- package/package.json +2 -2
- package/sn-table-ext/dist/sn-table.js +28 -28
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v2.
|
|
2
|
+
* @nebula.js/sn-table v2.9.0
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{onContextMenu as e,useMemo as t,useTheme as r,useOptions as n,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as s,useImperativeHandle as l,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useState as S,useMemo as E,useEffect as C,useContext as w,createElement as R,useRef as D,Children as A,isValidElement as I,cloneElement as q,useReducer as P,createContext as T,useCallback as L,forwardRef as M,memo as O,useLayoutEffect as k,PureComponent as _,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";var j=function(){return j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)};function H(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function B(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function $(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function V(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function W(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function G(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function U(e){return e>0?0:1}function Y(e){return e.translator.get("Visualizations.Descriptions.Column")}function K(e){return{measures:{min:U,max:1e3,description:()=>Y(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;W(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;G(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:U,max:1e3,description:()=>Y(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return W(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;G(o,n)}}}}function Z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var X,J={};X=J,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{default:()=>Te});var e=r(229),t=r.n(e);const o=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),D={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function q(e){return void 0===e}function P(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=q(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){L(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}D.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||P(t,o)||(q(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(D.generate(a,i,s)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&q(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!q(t[0])&&q(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(D.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){q(t[o])&&!P(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},D.apply=function(e,t){t.forEach((function(t){var r,n,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!P(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=T(e,t.from);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},D.clone=function(e){return R({},e)},D.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):R(e,t)};const M=D,O=function(e,r,n){if(!e)return Promise.resolve();var o=M.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var k="accumulation";function _(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===k)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===k)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(k))return!1;var i=_(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var Z="difference";function X(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}function J(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,De)&&o(e,Re,i(e,De)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function qe(e){return qe="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},qe(e)}var Pe={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Te={modifiers:Pe,apply:Me,applyModifiers:Oe,cleanUpMeasure:ke,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:_e,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Je({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Le={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Le[r.id]=Le[r.id]||{isFirstTime:!0};var u=Le[r.id].isFirstTime;if(Le[r.id].isFirstTime=!1,n&&"object"===qe(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[r.id].lastReloadTime;if(Le[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(r++,"object"!==qe(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===qe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return ke(e)})),Xe({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!_e({measures:r,properties:n}))return r.forEach((function(e){return ke(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(s++,"object"!==qe(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Pe[n.type].updateModifier&&Pe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Pe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):ke(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Xe({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function ke(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&!Pe[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function _e(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Pe[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===qe(t)&&(t.disabled||!Pe[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==qe(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Je({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),X.default=n.default,Object.defineProperty(X,"__esModule",{value:!0})})();var Q,ee,te,re,ne,oe,ie=Z(J);!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(Q||(Q={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(ee||(ee={})),function(e){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"}(te||(te={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(re||(re={})),function(e){e.A="ascending",e.D="descending"}(ne||(ne={})),function(e){e.PIXELS="pixels",e.PERCENTAGE="percentage",e.FIT_TO_CONTENT="fitToContent",e.AUTO="auto"}(oe||(oe={}));var ae=120,se=24,le=[0,0],ue=[1,0];const ce={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},de=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!ie.hasActiveModifiers({measures:[e],properties:t.properties})||ie.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},pe={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:oe.AUTO,translation:"Common.Auto"},{value:oe.FIT_TO_CONTENT,translation:"Object.Table.Column.FitToContent"},{value:oe.PIXELS,translation:"Object.Table.Column.Pixels"},{value:oe.PERCENTAGE,translation:"Object.Table.Column.Percentage"}],defaultValue:oe.AUTO},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===oe.PIXELS},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(7680,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===oe.PERCENTAGE},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(100,e.qDef.columnWidth.percentage))}}},fe={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"}]},...ce,...pe},me={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},he=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:de(e)}),ge=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:me},presentation:{type:"items",translation:"properties.presentation",items:fe}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:he(e)},presentation:{type:"items",translation:"properties.presentation",items:fe}}}}}:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",grouped:!0,items:{...me,...fe}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...he(e),...fe}}}},be={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},ve=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},ye=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},xe=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[be,ve(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...ye(e)}}),Se={uses:"sorting"},Ee={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Ce=e=>({type:"items",component:"accordion",items:{data:ge(e),sorting:Se,addOns:Ee,settings:xe(e)}});var we=Object.prototype.hasOwnProperty,Re=Object.prototype.toString,De=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Ie=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Re.call(e)},qe=function(e){if(!e||"[object Object]"!==Re.call(e))return!1;var t,r=we.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&we.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||we.call(e,t)},Pe=function(e,t){De&&"__proto__"===t.name?De(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Te=function(e,t){if("__proto__"===t){if(!we.call(e,t))return;if(Ae)return Ae(e,t).value}return e[t]};function Le(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Me(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Oe(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=Te(s,r),s!==(o=Te(t,r))&&(c&&o&&(qe(o)||(i=Ie(o)))?(i?(i=!1,a=n&&Ie(n)?n:[]):a=n&&qe(n)?n:{},Pe(s,{name:r,newValue:e(c,a,o)})):void 0!==o&&Pe(s,{name:r,newValue:o}));return s}));var ke=1/.7,_e="\\s*([+-]?\\d+)\\s*",Ne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ze=/^#([0-9a-f]{3,8})$/,je=new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`),He=new RegExp(`^rgb\\(${Fe},${Fe},${Fe}\\)$`),Be=new RegExp(`^rgba\\(${_e},${_e},${_e},${Ne}\\)$`),$e=new RegExp(`^rgba\\(${Fe},${Fe},${Fe},${Ne}\\)$`),Ve=new RegExp(`^hsl\\(${Ne},${Fe},${Fe}\\)$`),We=new RegExp(`^hsla\\(${Ne},${Fe},${Fe},${Ne}\\)$`),Ge={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 Ue(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function Ke(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ze.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ze(t):3===r?new et(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Xe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Xe(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=je.exec(e))?new et(t[1],t[2],t[3],1):(t=He.exec(e))?new et(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Be.exec(e))?Xe(t[1],t[2],t[3],t[4]):(t=$e.exec(e))?Xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ve.exec(e))?at(t[1],t[2]/100,t[3]/100,1):(t=We.exec(e))?at(t[1],t[2]/100,t[3]/100,t[4]):Ge.hasOwnProperty(e)?Ze(Ge[e]):"transparent"===e?new et(NaN,NaN,NaN,0):null}function Ze(e){return new et(e>>16&255,e>>8&255,255&e,1)}function Xe(e,t,r,n){return n<=0&&(e=t=r=NaN),new et(e,t,r,n)}function Je(e){return e instanceof Oe||(e=Ke(e)),e?new et((e=e.rgb()).r,e.g,e.b,e.opacity):new et}function Qe(e,t,r,n){return 1===arguments.length?Je(e):new et(e,t,r,null==n?1:n)}function et(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function tt(){return`#${it(this.r)}${it(this.g)}${it(this.b)}`}function rt(){const e=nt(this.opacity);return`${1===e?"rgb(":"rgba("}${ot(this.r)}, ${ot(this.g)}, ${ot(this.b)}${1===e?")":`, ${e})`}`}function nt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ot(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function it(e){return((e=ot(e))<16?"0":"")+e.toString(16)}function at(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,r,n)}function st(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof Oe||(e=Ke(e)),!e)return new lt;if(e instanceof lt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new lt(a,s,l,e.opacity)}function lt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ut(e){return(e=(e||0)%360)<0?e+360:e}function ct(e){return Math.max(0,Math.min(1,e||0))}function dt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Le(Oe,Ke,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ue,formatHex:Ue,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return st(this).formatHsl()},formatRgb:Ye,toString:Ye}),Le(et,Qe,Me(Oe,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new et(ot(this.r),ot(this.g),ot(this.b),nt(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:tt,formatHex:tt,formatHex8:function(){return`#${it(this.r)}${it(this.g)}${it(this.b)}${it(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rt,toString:rt})),Le(lt,(function(e,t,r,n){return 1===arguments.length?st(e):new lt(e,t,r,null==n?1:n)}),Me(Oe,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new et(dt(e>=240?e-240:e+120,o,n),dt(e,o,n),dt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new lt(ut(this.h),ct(this.s),ct(this.l),nt(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=nt(this.opacity);return`${1===e?"hsl(":"hsla("}${ut(this.h)}, ${100*ct(this.s)}%, ${100*ct(this.l)}%${1===e?")":`, ${e})`}`}}));const pt=Math.PI/180,ft=180/Math.PI,mt=4/29,ht=6/29,gt=3*ht*ht;function bt(e){if(e instanceof vt)return new vt(e.l,e.a,e.b,e.opacity);if(e instanceof Ct)return wt(e);e instanceof et||(e=Je(e));var t,r,n=Et(e.r),o=Et(e.g),i=Et(e.b),a=yt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=yt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=yt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new vt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function vt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function yt(e){return e>.008856451679035631?Math.pow(e,1/3):e/gt+mt}function xt(e){return e>ht?e*e*e:gt*(e-mt)}function St(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Et(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ct(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function wt(e){if(isNaN(e.h))return new vt(e.l,0,0,e.opacity);var t=e.h*pt;return new vt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Le(vt,(function(e,t,r,n){return 1===arguments.length?bt(e):new vt(e,t,r,null==n?1:n)}),Me(Oe,{brighter(e){return new vt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new et(St(3.1338561*(t=.96422*xt(t))-1.6168667*(e=1*xt(e))-.4906146*(r=.82521*xt(r))),St(-.9787684*t+1.9161415*e+.033454*r),St(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Le(Ct,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ct)return new Ct(e.h,e.c,e.l,e.opacity);if(e instanceof vt||(e=bt(e)),0===e.a&&0===e.b)return new Ct(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ft;return new Ct(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ct(e,t,r,null==n?1:n)}),Me(Oe,{brighter(e){return new Ct(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ct(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wt(this).rgb()}}));var Rt=e=>()=>e;function Dt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Rt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Dt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Rt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Qe(e)).r,(t=Qe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Dt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var At,It=["__proto__","constructor"];function qt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!It.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Tt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Lt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ot)):void 0===t&&(t=Mt);for(var r,n,o,i,a,s=new Nt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Nt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(_t)}function Mt(e){return e.children}function Ot(e){return Array.isArray(e)?e[1]:null}function kt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _t(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Nt(e){this.data=e,this.depth=this.height=0,this.parent=null}Nt.prototype=Lt.prototype={constructor:Nt,count:function(){return this.eachAfter(Tt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Lt(this).eachBefore(kt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},At=function(e){
|
|
7
|
+
import{useTheme as e,useMemo as t,onContextMenu as n,useOptions as r,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useState as S,useMemo as E,useEffect as C,useContext as w,createElement as R,useRef as A,Children as D,isValidElement as P,cloneElement as I,useReducer as T,createContext as L,useCallback as M,forwardRef as q,memo as k,useLayoutEffect as O,PureComponent as N,useImperativeHandle as _}from"react";import*as F from"react-dom";import z from"react-dom";var j=function(){return j=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},j.apply(this,arguments)};function H(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function B(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function $(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function W(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 V(e,t){const[n,r]=S(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}"function"==typeof SuppressedError&&SuppressedError;var U={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 G=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(U).forEach((t=>{e.add(U[t])}))}}(e)),[e]),e);function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K,Z=z;function X(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Q(){}K=Z.createRoot,Z.hydrateRoot;var ee=.7,te=1/ee,ne="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ie=/^#([0-9a-f]{3,8})$/,ae=new RegExp(`^rgb\\(${ne},${ne},${ne}\\)$`),le=new RegExp(`^rgb\\(${oe},${oe},${oe}\\)$`),se=new RegExp(`^rgba\\(${ne},${ne},${ne},${re}\\)$`),ue=new RegExp(`^rgba\\(${oe},${oe},${oe},${re}\\)$`),ce=new RegExp(`^hsl\\(${re},${oe},${oe}\\)$`),de=new RegExp(`^hsla\\(${re},${oe},${oe},${re}\\)$`),pe={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 fe(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function he(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ge(t):3===n?new xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?be(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=ae.exec(e))?new xe(t[1],t[2],t[3],1):(t=le.exec(e))?new xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=se.exec(e))?be(t[1],t[2],t[3],t[4]):(t=ue.exec(e))?be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ce.exec(e))?Ae(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?Ae(t[1],t[2]/100,t[3]/100,t[4]):pe.hasOwnProperty(e)?ge(pe[e]):"transparent"===e?new xe(NaN,NaN,NaN,0):null}function ge(e){return new xe(e>>16&255,e>>8&255,255&e,1)}function be(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function ve(e){return e instanceof Q||(e=he(e)),e?new xe((e=e.rgb()).r,e.g,e.b,e.opacity):new xe}function ye(e,t,n,r){return 1===arguments.length?ve(e):new xe(e,t,n,null==r?1:r)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Se(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function Ee(){const e=Ce(this.opacity);return`${1===e?"rgb(":"rgba("}${we(this.r)}, ${we(this.g)}, ${we(this.b)}${1===e?")":`, ${e})`}`}function Ce(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function we(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Re(e){return((e=we(e))<16?"0":"")+e.toString(16)}function Ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,n,r)}function De(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof Q||(e=he(e)),!e)return new Pe;if(e instanceof Pe)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 Pe(a,l,s,e.opacity)}function Pe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ie(e){return(e=(e||0)%360)<0?e+360:e}function Te(e){return Math.max(0,Math.min(1,e||0))}function Le(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(Q,he,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return De(this).formatHsl()},formatRgb:me,toString:me}),X(xe,ye,J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xe(we(this.r),we(this.g),we(this.b),Ce(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:Se,formatHex:Se,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ee,toString:Ee})),X(Pe,(function(e,t,n,r){return 1===arguments.length?De(e):new Pe(e,t,n,null==r?1:r)}),J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new Pe(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 xe(Le(e>=240?e-240:e+120,o,r),Le(e,o,r),Le(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pe(Ie(this.h),Te(this.s),Te(this.l),Ce(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=Ce(this.opacity);return`${1===e?"hsl(":"hsla("}${Ie(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===e?")":`, ${e})`}`}}));const Me=e=>{if(e){const t=ye(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},qe=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===ye(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Me(d?l:c),isTransparent:d}};var ke=Object.prototype.hasOwnProperty,Oe=Object.prototype.toString,Ne=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Oe.call(e)},ze=function(e){if(!e||"[object Object]"!==Oe.call(e))return!1;var t,n=ke.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ke.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ke.call(e,t)},je=function(e,t){Ne&&"__proto__"===t.name?Ne(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},He=function(e,t){if("__proto__"===t){if(!ke.call(e,t))return;if(_e)return _e(e,t).value}return e[t]};function Be(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $e(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function We(){}!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=He(l,n),l!==(o=He(t,n))&&(c&&o&&(ze(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&ze(r)?r:{},je(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&je(l,{name:n,newValue:o}));return l}));var Ve=1/.7,Ue="\\s*([+-]?\\d+)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ke=/^#([0-9a-f]{3,8})$/,Ze=new RegExp(`^rgb\\(${Ue},${Ue},${Ue}\\)$`),Xe=new RegExp(`^rgb\\(${Ye},${Ye},${Ye}\\)$`),Je=new RegExp(`^rgba\\(${Ue},${Ue},${Ue},${Ge}\\)$`),Qe=new RegExp(`^rgba\\(${Ye},${Ye},${Ye},${Ge}\\)$`),et=new RegExp(`^hsl\\(${Ge},${Ye},${Ye}\\)$`),tt=new RegExp(`^hsla\\(${Ge},${Ye},${Ye},${Ge}\\)$`),nt={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 rt(){return this.rgb().formatHex()}function ot(){return this.rgb().formatRgb()}function it(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ke.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?at(t):3===n?new ct(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lt(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=Ze.exec(e))?new ct(t[1],t[2],t[3],1):(t=Xe.exec(e))?new ct(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Je.exec(e))?lt(t[1],t[2],t[3],t[4]):(t=Qe.exec(e))?lt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=et.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=tt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):nt.hasOwnProperty(e)?at(nt[e]):"transparent"===e?new ct(NaN,NaN,NaN,0):null}function at(e){return new ct(e>>16&255,e>>8&255,255&e,1)}function lt(e,t,n,r){return r<=0&&(e=t=n=NaN),new ct(e,t,n,r)}function st(e){return e instanceof We||(e=it(e)),e?new ct((e=e.rgb()).r,e.g,e.b,e.opacity):new ct}function ut(e,t,n,r){return 1===arguments.length?st(e):new ct(e,t,n,null==r?1:r)}function ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dt(){return`#${ht(this.r)}${ht(this.g)}${ht(this.b)}`}function pt(){const e=ft(this.opacity);return`${1===e?"rgb(":"rgba("}${mt(this.r)}, ${mt(this.g)}, ${mt(this.b)}${1===e?")":`, ${e})`}`}function ft(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ht(e){return((e=mt(e))<16?"0":"")+e.toString(16)}function gt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vt(e,t,n,r)}function bt(e){if(e instanceof vt)return new vt(e.h,e.s,e.l,e.opacity);if(e instanceof We||(e=it(e)),!e)return new vt;if(e instanceof vt)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 vt(a,l,s,e.opacity)}function vt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function yt(e){return(e=(e||0)%360)<0?e+360:e}function xt(e){return Math.max(0,Math.min(1,e||0))}function St(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Be(We,it,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rt,formatHex:rt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bt(this).formatHsl()},formatRgb:ot,toString:ot}),Be(ct,ut,$e(We,{brighter(e){return e=null==e?Ve:Math.pow(Ve,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(mt(this.r),mt(this.g),mt(this.b),ft(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:dt,formatHex:dt,formatHex8:function(){return`#${ht(this.r)}${ht(this.g)}${ht(this.b)}${ht(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pt,toString:pt})),Be(vt,(function(e,t,n,r){return 1===arguments.length?bt(e):new vt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return e=null==e?Ve:Math.pow(Ve,e),new vt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new vt(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 ct(St(e>=240?e-240:e+120,o,r),St(e,o,r),St(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vt(yt(this.h),xt(this.s),xt(this.l),ft(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=ft(this.opacity);return`${1===e?"hsl(":"hsla("}${yt(this.h)}, ${100*xt(this.s)}%, ${100*xt(this.l)}%${1===e?")":`, ${e})`}`}}));const Et=Math.PI/180,Ct=180/Math.PI,wt=4/29,Rt=6/29,At=3*Rt*Rt;function Dt(e){if(e instanceof Pt)return new Pt(e.l,e.a,e.b,e.opacity);if(e instanceof qt)return kt(e);e instanceof ct||(e=st(e));var t,n,r=Mt(e.r),o=Mt(e.g),i=Mt(e.b),a=It((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=It((.4360747*r+.3850649*o+.1430804*i)/.96422),n=It((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Pt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Pt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function It(e){return e>.008856451679035631?Math.pow(e,1/3):e/At+wt}function Tt(e){return e>Rt?e*e*e:At*(e-wt)}function Lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kt(e){if(isNaN(e.h))return new Pt(e.l,0,0,e.opacity);var t=e.h*Et;return new Pt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Be(Pt,(function(e,t,n,r){return 1===arguments.length?Dt(e):new Pt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return new Pt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Pt(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 ct(Lt(3.1338561*(t=.96422*Tt(t))-1.6168667*(e=1*Tt(e))-.4906146*(n=.82521*Tt(n))),Lt(-.9787684*t+1.9161415*e+.033454*n),Lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Be(qt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qt)return new qt(e.h,e.c,e.l,e.opacity);if(e instanceof Pt||(e=Dt(e)),0===e.a&&0===e.b)return new qt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ct;return new qt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qt(e,t,n,null==r?1:r)}),$e(We,{brighter(e){return new qt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kt(this).rgb()}}));var Ot=e=>()=>e;function Nt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ot(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Nt: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):Ot(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ut(e)).r,(t=ut(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Nt(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 _t,Ft=["__proto__","constructor"];function zt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Ft.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 jt(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 Ht(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 Bt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Wt)):void 0===t&&(t=$t);for(var n,r,o,i,a,l=new Gt(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 Gt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ut)}function $t(e){return e.children}function Wt(e){return Array.isArray(e)?e[1]:null}function Vt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ut(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Gt(e){this.data=e,this.depth=this.height=0,this.parent=null}Gt.prototype=Bt.prototype={constructor:Gt,count:function(){return this.eachAfter(Ht)},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 Bt(this).eachBefore(Vt)},[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)}},_t=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+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],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},At({exports:{}});var Ft={exports:{}};window,Ft.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/conversion/",r(r.s=2)}([function(e,t,r){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,o,i,a,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=c(d,r),d!==(o=c(t,r))&&(m&&o&&(l(o)||(i=s(o)))?(i?(i=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(d,{name:r,newValue:e(m,a,o)})):void 0!==o&&u(d,{name:r,newValue:o}));return d}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/qlik-modifiers/",r(r.s=1)}([function(e,t,r){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,o,i,a,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=c(d,r),d!==(o=c(t,r))&&(m&&o&&(l(o)||(i=s(o)))?(i?(i=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(d,{name:r,newValue:e(m,a,o)})):void 0!==o&&u(d,{name:r,newValue:o}));return d}},function(e,t,r){r.r(t);var n=r(0),o=r.n(n),i=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},a=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e).trim();return"="===t.substring(0,1)?t.substring(1).trim():t}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=MinString(").concat(t,"))' and Only({1}").concat(t,")<='$(=MaxString(").concat(t,"))'\"}")}function v(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[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(l,")")}return"".concat(a,"({1}").concat(l,")")}function y(e){return"".concat(e,"(")}function x(e){var t=e.properties,r=e.layout;return a(t,"qHyperCubeDef.qDimensions",a(r,"qHyperCube.qDimensionInfo",[])).length}var S={isFullRange:d,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=v({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:y,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return y(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:v,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===x({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=x({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C=o.a.bind(null,!0),w={},R=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function A(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=A(e[r||t])?i:e[t],e=e[r||t]}})),e}function P(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){P(e[n],t[n])||(r=!1)})),r);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!P(e[n],t[n]))return!1;return!0}return e===t}w.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?C({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);P(i,a)||I(t,o)||(A(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(w.generate(a,i,s)):R(i)&&R(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&A(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(P(t,o))return n;if(!A(t[0])&&A(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(w.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){A(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},w.apply=function(e,t){t.forEach((function(t){var r,n=q(e,t.path),o=t.path.split("/").splice(-1)[0],i=o&&Number.isNaN(+o)?n[o]:n[+o]||n,a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(R(n))"-"===o&&(o=n.length),n.splice(+o,"add"===t.op?0:1,t.value);else if(R(i)&&R(t.value)){var s,l=t.value.slice();i.length=0,(s=i).push.apply(s,function(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(l))}else if(D(i)&&D(t.value))r=i,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(r,e)&&delete r[e]})),C(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[o]=t.value}else if("move"===t.op){var u=q(e,t.from);R(n)?n.splice(+o,0,u.splice(+a,1)[0]):(n[o]=u[a],delete u[a])}else"remove"===t.op&&(R(n)?n.splice(+o,1):delete n[o])}))},w.clone=function(e){return C({},e)},w.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},w.updateObject=function(e,t){Object.keys(e).length?w.apply(e,w.generate(e,t)):C(e,t)};var T=w,L=function(e,t,r){if(!e)return Promise.resolve();var n=T.generate(t,r);return o()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()},M="accumulation";function O(e,t){var r=a(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===M)return r[n]}function k(e,t){var r=function(e,t){var r=a(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===M)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},N={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return S.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=S.getNumDimensions({properties:n,layout:o}));var u=a(n,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=S.getNumStepComp(r,l),p=S.getAboveComp(r,l,c,d),f=S.getRangeComp("RangeSum",p);if(S.needDimension({modifier:r,properties:n,layout:o})){var m=S.getDimComp(u,1),h=S.getDimComp(u,0),g=S.getAggrComp(f,m,h);f=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(k(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(k(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(k(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(k(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=O(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=O(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(k(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(M))return!1;var i=O(t,e);return i&&!i.disabled}};return r}},F="movingAverage";function z(e,t){var r=a(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function j(e,t){var r=function(e,t){var r=a(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},B={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return S.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=S.getNumDimensions({properties:o,layout:i}));var c=a(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=S.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=S.getNumStepComp(n,u),m=S.getAboveComp(n,u,p,f);if(n.nullSuppression)t=S.getRangeComp("RangeAvg",m);else{var h=S.getRangeComp("RangeSum",m),g=function(e,t){var r=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(S.needDimension({modifier:n,properties:o,layout:i})){var v=S.getDimComp(c,1),y=S.getDimComp(c,0),x=S.getAggrComp(b,v,y);b=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!S.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.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(j(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(j(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(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=z(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=z(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(j(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=z(t,e);return i&&!i.disabled}};return r}},$="difference";function V(e,t){var r=a(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=a(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var G={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},U={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return S.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=S.getNumDimensions({properties:n,layout:o}));var u=a(n,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=S.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(S.needDimension({modifier:r,properties:n,layout:o})){var f=S.getDimComp(u,1),m=S.getDimComp(u,0),h=S.getAggrComp(p,f,m);p=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(G).forEach((function(t){void 0===e[t]&&(e[t]=G[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(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(W(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=V(t,e);return i&&!i.disabled}};return r}},Y={CURRENT_SELECTION:0,SELECT_FIELD_VALUE:1,DISREGARD_SELECTION:2},K={ONE_DIMENSION:0,ALL_DIMENSIOANS:1,DISREGARD_ALL_DIMENSIONS:2},Z="normalization";function X(e,t){var r=a(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}function J(e,t){var r=function(e,t){var r=a(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function Q(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}function ee(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:K.ONE_DIMENSION,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:K.ALL_DIMENSIOANS,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:K.DISREGARD_ALL_DIMENSIONS,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=Q(t,0);t.splice(n,1)}return t}(o,i),function(e,t,r){if(0===e){var n=Q(t,1);t.splice(n,1)}return t}(X(e,n).selectionScope,i)}function te(e,t,r){var n=[{value:Y.CURRENT_SELECTION,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:Y.SELECT_FIELD_VALUE,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:Y.DISREGARD_SELECTION,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return function(e,t,r){if(1===e){var n=Q(t,0);t.splice(n,1)}return t}(X(e,r).dimensionalScope,n)}var re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:K.DISREGARD_ALL_DIMENSIONS,selectionScope:Y.DISREGARD_SELECTION};function ne(e){return 2===e?"{1}":""}function oe(e,t,r){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ie(e,t){return 0===e&&t>1||2===e?"Total":""}function ae(e,t,r){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(r),">"):""}var se={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return S.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=S.getNumDimensions({properties:n,layout:o}));var u=a(n,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ne(t),l=oe(t,r,n),u=""===s&&""===l?"":s||l,c=ie(o,i),d=ae(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=S.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(re).forEach((function(t){void 0===e[t]&&(e[t]=re[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(J(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:Y.DISREGARD_SELECTION,options:function(r){return te(r,t,e)}},field:{refFn:function(t){return"".concat(J(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return X(t,e).selectionScope===Y.SELECT_FIELD_VALUE}},value:{refFn:function(t){return"".concat(J(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return X(t,e).selectionScope===Y.SELECT_FIELD_VALUE}},dimensionalScope:{refFn:function(t){return"".concat(J(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:K.DISREGARD_ALL_DIMENSIONS,supportTooltip:!0,options:function(r,n){return ee(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return(X(t,e).dimensionalScope||0)===K.ONE_DIMENSION&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ne,getFieldSelectionComp:oe,getTotalComp:ie,getSelectedDimComp:ae},le={getExpression:function(e){return a(e,"qDef.base.qDef")||a(e,"qDef.qDef")},getExpressionRef:function(e){return a(e,"qDef.base.qDef")?"qDef.base.qDef":"qDef.qDef"},getLibraryIdRef:function(e){return a(e,"qDef.base.qLibraryId")?"qDef.base.qLibraryId":"qLibraryId"},getLibraryId:function(e){return a(e,"qDef.base.qLibraryId")||a(e,"qLibraryId")},getLabelRef:function(e){return a(e,"qDef.base")?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return a(e,"qDef.base")?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}},ue={initBase:function(e,t){(t||ue.isValid(e))&&(i(e,"qDef.base.qDef",a(e,"qDef.qDef")),i(e,"qDef.base.qLibraryId",a(e,"qLibraryId")),i(e,"qDef.base.qLabel",a(e,"qDef.qLabel")),i(e,"qDef.base.qLabelExpression",a(e,"qDef.qLabelExpression")))},restoreBase:function(e){ue.isValid(e)&&(i(e,"qDef.qDef",a(e,"qDef.base.qDef")),i(e,"qLibraryId",a(e,"qDef.base.qLibraryId")),i(e,"qDef.qLabel",a(e,"qDef.base.qLabel")),i(e,"qDef.qLabelExpression",a(e,"qDef.base.qLabelExpression")),a(e,"qDef.qAggrFunc")&&a(e,"qDef.base.qAggrFunc")&&i(e,"qDef.qAggrFunc",a(e,"qDef.base.qAggrFunc")),delete e.qDef.base)},isValid:function(e){var t=a(e,"qDef.base.qDef"),r=a(e,"qDef.base.qLibraryId");return void 0!==t||void 0!==r}},ce=ue;function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pe={accumulation:N,movingAverage:B,difference:U,normalization:se},fe=(t.default={modifiers:pe,apply:me,applyModifiers:he,cleanUpMeasure:ge,destroy:function(e){e&&fe[e.id]&&fe[e.id].masterItemSubscriber&&(fe[e.id].masterItemSubscriber&&fe[e.id].masterItemSubscriber.unsubscribe(),delete fe[e.id])},hasActiveModifiers:be,getActiveModifier:ve,initBase:ce.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return pe[e]&&pe[e].isApplicable({properties:r,layout:n})}))},measureBase:le,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Se(e);Ie({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Me({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:ye},{});function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,i=void 0!==n&&n,s=e.masterItem;fe[t.id]=fe[t.id]||{isFirstTime:!0};var l=fe[t.id].isFirstTime;if(fe[t.id].isFirstTime=!1,r&&"object"===de(r))return he({model:t,properties:r});var u=t?t.layout:void 0,c=a(u,"qSelectionInfo.qInSelections");if(i||c)return Promise.resolve(!1);var d=a(u,"qHyperCube.qMeasureInfo"),p=fe[t.id].lastReloadTime;if(fe[t.id].lastReloadTime=a(t,"app.layout.qLastReloadTime"),be({measures:d,layout:u})){var f=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return a(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ae({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:d,layout:u,model:t,lastReloadTime:p});return f||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ie({modifiers:Se(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:d,layout:u,masterItem:s,isFirstTime:l})?t.getEffectiveProperties().then((function(e){var r=o()(!0,{},e);Ce(r);var n=Oe(r);return qe({model:t}).then((function(o){return Pe({libraryIds:n,model:t}).then((function(n){return f&&function(e){var t=e.properties;xe(t).forEach((function(e){return function(e){var t=e.measure;if(Ae({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===de(e)&&!e.disabled){if(r++,"object"!==de(pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Re(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),he({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:n,dimensionAndFieldList:o})}))}))})):Promise.resolve(!1)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===de(e.base)}))}(d)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Oe(r);return ke({model:t,libraryIds:n}).then((function(){var e=o()(!0,{},r);return xe(r).forEach((function(e){return ge(e)})),Le({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(!1)}function he(e){var t=e.model,r=e.oldProperties,n=e.properties,i=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?o()(!0,{},n):n),Ce(n);var p=Oe(n);return ke({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,i=e.libraryItemsProps,s=e.dimensionAndFieldList;if(t||(t=xe(r)),!t.length)return Promise.resolve();if(!be({measures:t,properties:r}))return t.forEach((function(e){return ge(e)})),Promise.resolve();var l=i?void 0:Oe(r);return qe({model:n,dimensionAndFieldList:s}).then((function(e){return Pe({libraryIds:l,model:n,libraryItemsProps:i}).then((function(n){t.forEach((function(t){Ie({modifiers:t.qDef.modifiers,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,i=e.dimensionAndFieldList,s=0;ce.isValid(t)||ce.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===de(e)&&!e.disabled){if(s++,"object"!==de(pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");pe[e.type].initModifier(e);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:i});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=o()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:i}):function(e){var t=e.measure,r=e.modifier,n=e.properties,i=e.dimensionAndFieldList;"function"==typeof pe[r.type].updateModifier&&pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=le.getExpression(t),s=pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:i});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=o()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:i}),function(e){var t=a(e,"qDef.qAggrFunc");"Expr"!==t||ye(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ye(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),we(t)):ge(t)}))}))}))}({measures:i,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Le({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))}))}function ge(e){!function(e){var t=Se(e);return Array.isArray(t)&&t.some((function(e){return"object"===de(e)&&!e.disabled&&!pe[e.type]}))}(e)?ce.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,we(e)}function be(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ie({modifiers:Se(e),properties:r,layout:n})}))}function ve(e){var t=Se(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(pe[n.type]&&!n.disabled)return n}}function ye(e){var t=ve(e);return!t||pe[t.type].enableTotalsFunction(e)}function xe(e){return a(e,"qHyperCubeDef.qMeasures",[]).concat(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Se(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ee(e){return a(e,"outputExpression.qValueExpression.qExpr")||a(e,"outputExpression")}function Ce(e){xe(e).forEach((function(e){return function(e){var t=ve(e);t&&(void 0!==t.outputExpression&&Ee(t)!==e.qDef.qDef?delete e.qDef.base:!ce.isValid(e)&&t.base&&(e.qDef.base=o()(!0,{},t.base)))}(e)}))}function we(e){var t=Se(e);Array.isArray(t)&&t.forEach((function(t){"object"===de(t)&&(t.disabled||!pe[t.type]&&Ee(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Re(e){return e.base||e.qDef&&e.qDef.base}function De(e){var t=Re(e);return e.qLibraryId||t&&t.qLibraryId}function Ae(e){var t=e.measure,r=e.properties,n=e.layout;return!De(t)&&Ie({modifiers:Se(t),properties:r,layout:n})}function Ie(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==de(e)||e.disabled||!pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function qe(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Pe(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Te(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Le(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(a(t,"qHyperCubeDef.qMeasures"),Te)!==JSON.stringify(a(r,"qHyperCubeDef.qMeasures"),Te)||JSON.stringify(a(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Te)!==JSON.stringify(a(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Te);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&a(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Me(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===de(e)&&!e.disabled&&pe[e.type]&&pe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Oe(e){var t=xe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Se(t);if(Ie({modifiers:n,properties:e})){var i=De(t);i&&r.push(i),o=o||Me({modifiers:n,properties:e})}})),a(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ke(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(fe[t.id].masterItemSubscriber=fe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=a(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=a(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),fe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}}])},function(e,t,r){function n(e){var t=function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}(e%62),r=Math.floor(e/62);return r>0?n(r)+t:t}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})(e)}r.r(t);var i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return n(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(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 s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}var d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c},p=r(1),f=r.n(p),m={addDimensions:function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},addMeasures:function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},setInterColumnSortOrder:function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},copyProperties:function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},updateLayoutExclude:function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},storeMeasuresModifiers:function(e){e.forEach((function(e){f.a.cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))}};function h(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var g=r(0),b=r.n(g);function v(e,t){var r=b()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function y(e,t){return b()(!0,{},t,e)}function x(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var S=Math.pow(2,53)-1;function E(e){return function(e){if(Array.isArray(e))return C(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 C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return function(e){if(Array.isArray(e))return R(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 R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(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 R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var D={importCommonProperties:function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},copyPropertyIfExist:function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},copyPropertyOrSetDefault:function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},addDimensions:function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=v(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=v(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},addMeasures:function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=y(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=y(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},getMaxMinDimensionMeasure:function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=x(a.max,o.dimensions.length,S),l=x(a.min,o.dimensions.length,0);return{maxDimensions:x(i.max,s,S),minDimensions:x(i.min,l,0),maxMeasures:s,minMeasures:l}},setInterColumnSortOrder:function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},createNewProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=b()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=b()(!0,{},r,o)).components&&(o.components=[]),o},shouldInitLayoutExclude:function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},initLayoutExclude:function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},updateDimensionsOnAdded:function(e){var t=e.newProperties,r=e.dataDefinition,n=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var o=i.getValue(t,n||"").qHyperCubeDef,a=E(o.qDimensions);o.qDimensions=[],a.forEach((function(e){o.qDimensions.push(e),r.dimensions.added(e,t)}))}},updateMeasuresOnAdded:function(e){var t=e.newProperties,r=e.dataDefinition,n=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var o=i.getValue(t,n||"").qHyperCubeDef,a=w(o.qMeasures);o.qMeasures=[],a.forEach((function(e){o.qMeasures.push(e),r.measures.added(e,t)}))}},restoreMeasuresModifiers:function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f.a.isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))}};function A(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}var I={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m.addDimensions({exportFormat:o,qHyperCubeDef:l}),m.addMeasures({exportFormat:o,qHyperCubeDef:l}),m.setInterColumnSortOrder({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,m.copyProperties({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),m.updateLayoutExclude({exportFormat:o,properties:a}),n||m.storeMeasuresModifiers(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(h(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(h(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(h(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,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=D.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=D.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?D.getDefaultDimension():w,I=l.defaultMeasure,q=void 0===I?D.getDefaultMeasure():I;v.qDimensions.length=0,v.qMeasures.length=0,D.shouldInitLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&D.initLayoutExclude({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),D.addDimensions({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),D.addMeasures({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:q}),D.updateDimensionsOnAdded({newProperties:g,dataDefinition:a,hypercubePath:u}),D.updateMeasuresOnAdded({newProperties:g,dataDefinition:a,hypercubePath:u}),D.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:v}),D.copyPropertyIfExist("qMaxStackedCells",b,v),D.copyPropertyIfExist("qNoOfLeftDims",b,v),D.copyPropertyOrSetDefault("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D.copyPropertyOrSetDefault("qMode",b,v,"S"),D.copyPropertyOrSetDefault("qReductionMode",b,v,"N"),D.copyPropertyOrSetDefault("qSortbyYValue",b,v),D.copyPropertyOrSetDefault("qIndentMode",b,v),D.copyPropertyOrSetDefault("qShowTotalsAbove",b,v),D.importCommonProperties(g,t,n),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return D.restoreMeasuresModifiers({measures:v.qMeasures,modifierTypes:P}),p&&A(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&A(h.qProperty,"dynamicScript"),h}},q={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function P(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function T(e,t){return e.length!==t}var L={create:function(e,t){if(!e||!q[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(P(a,t,n,o),T(t,s))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"}},M={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}},O={colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>0&&M.getNumMeasures(e)<=1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)>0},expression:function(e){return M.getNumMeasures(e)>=1}}},k={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return M.getNumMeasures(e)>=1}}},_={scatterplot:k,"sn-scatter-plot":k,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return M.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)<=1},expression:function(e){return M.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return M.getNumDimensions(e)>=1},multiColor:function(e){return M.getNumMeasures(e)>1},measure:function(e){return M.getNumDimensions(e)>=1},expression:function(e){return M.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 M.getNumDimensions(e)>=1}}}};function N(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function F(e,t){var r=L.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){N(e,"qAttributeDimensions",r),N(e,"qAttributeExpressions",r)})),t.forEach((function(e){N(e,"qAttributeDimensions",r),N(e,"qAttributeExpressions",r)}))}function z(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function j(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;F(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=L.create(L.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;o||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),i&&(t.qNumFormat=i,t.isCustomFormatted=a)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function H(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":(o=function(e,t){return t?e.qLibraryId:f.a.measureBase.getLibraryId(e)}(r,t))?(s.type="measure",s.name=o,s.id=o,(i=function(e,t){return f.a.hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n))&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}var B={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function $(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,s=M.getItemLabel(t);switch(z(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||M.wrapFieldName(t.name),key:M.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||s,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&B.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function V(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=L.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return $(e,H("dimension",!!a,a||n)),!!a}function W(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&z(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=H("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,$(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&V(e,t))return;j({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}function G(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&z(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=H("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,$(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=L.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return $(e,H("measure",!!s,s||n[0])),!!s}(e,t))return;j({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}var U={changeProperty:function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},getCanColorBy:function(e,t){var r={primary:!0};if(e){var n=(_[t]||O).colorModeOptions||O.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},shouldUpdateColorBy:function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},updateColorBy:function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"color.auto"),o=i.getValue(e,"".concat(t,"qDimensions"),[]),a=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);n?F(o,s):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions;return!t&&"byDimension"===r&&n.length>0}({auto:n,colorMode:r,dimensions:o})?W(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:n,colorMode:r,dimensions:o,measures:a,properties:e})?G(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),F(n,a)}(e,t)},deleteTotalMode:function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},shouldAddColorByExpression:function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},addColorByExpression:function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},switchToAutoColor:function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},shouldSwitchToColorPersistent:function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r}},Y={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=I.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=L.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return L.moveByIdFromGroup(a,[],"qAttributeDimensions",u),L.moveByIdFromGroup(a,[],"qAttributeExpressions",u),L.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=I.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,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=U.getCanColorBy(d,p),b=U.shouldUpdateColorBy({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?U.shouldAddColorByExpression({shouldUpdateColorBy:b,properties:d})&&U.addColorByExpression(d):U.switchToAutoColor(d),b&&U.updateColorBy(d,"qHyperCubeDef."),U.shouldSwitchToColorPersistent(d)&&U.changeProperty(d,"color.persistent",!0),U.deleteTotalMode(f),c}},K=["bar","marker","line"],Z={handleAutoMinMax:function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?A(r,"unsupportedAutoMinMax")||b()(r.measureAxis,t.measureAxis):A(r,"supportedAutoMinMax")||b()(r.measureAxis,t.measureAxis)},handleMeasuresAxis:function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.exportFormat,r=e.initialProperties;return!(!t.properties.measureAxes||r.measureAxes||!r.measureAxis||void 0===r.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),K.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&b()(s,r.properties.measureAxes[t[0].axis])):b()(s,r.properties.measureAxes[0])}},setInterColumnSortOrder:function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}}},X={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=Y.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(h(s,"measureAxis.min","supportedAutoMinMax"),h(s,"measureAxis.max","supportedAutoMinMax")):(h(s,"measureAxis.min","unsupportedAutoMinMax"),h(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=Y.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return Z.handleAutoMinMax({initialProperties:r,properties:d}),Z.handleMeasuresAxis({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Z.setInterColumnSortOrder(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function J(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Q(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=J(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=J(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var te={quarantine:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalColoring",arrayName:"measures",itemPath:"qDef.conditionalColoring"})},unquarantine:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qMeasures",itemPath:"qDef.conditionalColoring",arrayName:"measures",quarantineName:"conditionalColoring"})}},re={quarantine:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"measures",itemPath:"qCalcCondition"}),Q({properties:e,arrayPath:"qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"dimensions",itemPath:"qCalcCondition"})},unquarantine:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"measures",itemPath:"qCalcCondition"}),ee({properties:e,arrayPath:"qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"dimensions",itemPath:"qCalcCondition"})},quarantineAlternative:function(e){Q({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"alternativeMeasures",itemPath:"qCalcCondition"}),Q({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"alternativeDimensions",itemPath:"qCalcCondition"})},unquarantineAlternative:function(e){ee({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",quarantineName:"conditionalShowHide",arrayName:"alternativeMeasures",itemPath:"qCalcCondition"}),ee({properties:e,arrayPath:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",quarantineName:"conditionalShowHide",arrayName:"alternativeDimensions",itemPath:"qCalcCondition"})}};t.default={hypercube:I,colorChart:Y,axisChart:X,quarantineProperty:h,unquarantineProperty:A,quarantineArrayProp:Q,unquarantineArrayProp:ee,conditionalColoring:te,conditionalShow:re}}]);var zt=Z(Ft.exports),jt=function(e,t){var r=zt.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),n=r.properties.qHyperCubeDef,o=n.qColumnOrder,i=function(e,t,r){var n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((function(r){return function(e,t,r){var n,o=t.length,i=(e<o?t[e]:r[e-o]).qDef.columnWidth;return"pixels"===(null==i?void 0:i.type)?null!==(n=i.pixels)&&void 0!==n?n:200:-1}(r,e,t)}));return o}(n.qDimensions,n.qMeasures,o);return qt(r,"properties.qHyperCubeDef",j(j({},r.properties.qHyperCubeDef),{columnWidths:i})),zt.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),zt.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),zt.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},Ht=function(e,t,r,n){var o=t;n&&(o=t-n);var i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){var a=r[t];i.qDef.columnWidth=-1===a?{type:oe.FIT_TO_CONTENT}:{type:oe.PIXELS,pixels:a}}return i},Bt=function(e,t,r,n){var o=zt.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:{defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},hypercubePath:n,extension:r});zt.unquarantineProperty(o.qProperty,"straightTableColumnOrder");var i=o.qProperty.qHyperCubeDef,a=i.qDimensions,s=i.qMeasures,l=i.qColumnOrder,u=i.columnWidths,c=function(e,t,r,n){var o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((function(e){return e<o})).map((function(t){return Ht(e,t,n)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Ht(t,e,n,o)}))}}(a,s,l,u),d=c.dimensions,p=c.measures;return Array.isArray(u)&&u.length>0&&(qt(o,"qProperty.qHyperCubeDef.qDimensions",d),qt(o,"qProperty.qHyperCubeDef.qMeasures",p)),zt.conditionalShow.unquarantine(o.qProperty),o};const $t=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function Vt(e){return{definition:Ce(e),...$t(e),data:K(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties:Bt,exportProperties:jt}}var Wt=function(e){return B(void 0,void 0,void 0,(function(){var t,r,n,o;return $(this,(function(i){switch(i.label){case 0:(t=e.target).classList.contains("sn-table-cell")||(t=t.closest(".sn-table-cell")),r=null===(o=t.querySelector(".sn-table-cell-text"))||void 0===o?void 0:o.textContent,i.label=1;case 1:return i.trys.push([1,4,,5]),r?[4,navigator.clipboard.writeText(String(r))]:[3,3];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:return n=i.sent(),console.log(n),[3,5];case 5:return[2]}}))}))};var Gt=function(e,r){return t((function(){return function(e,t){return function(r,n){var o=n.isDim,i=n.colIdx,a=o?i:i-e.qDimensionInfo.length,s="/qHyperCubeDef/".concat(o?"qDimensions":"qMeasures","/").concat(a,"/qDef/columnWidth"),l=e[o?"qDimensionInfo":"qMeasureInfo"][a].columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify(j(j({},l),r))}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)}}(e,r)}),[e,r])},Ut={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Yt=function(e){return parseInt(e.repeat(2/e.length),16)},Kt=function(e){var t=Math.floor((e.length-1)/3),r=function(e,t){return e.match(new RegExp(".{".concat(t,"}"),"g"))}(e.slice(1),t),n=r.map(Yt),o=n[0],i=n[1],a=n[2],s=n[3];return void 0!==s?"rgba(".concat(o,",").concat(i,",").concat(a,",").concat(s/255,")"):"rgb(".concat(o,",").concat(i,",").concat(a,")")};function Zt(e){var t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return"rgb(".concat(t[1],",").concat(t[2],",").concat(t[3],")");if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e))return"rgba(".concat(t[1],",").concat(t[2],",").concat(t[3],",").concat(t[4],")");if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e)){var r=Math.round(+t[1]/2.55)/100;return"rgba(".concat(t[2],",").concat(t[3],",").concat(t[4],",").concat(r,")")}if(t=/^#(?:(?:[\da-f]{3}){1,2}|(?:[\da-f]{4}){1,2})$/i.exec(e))return Kt(e);var n=e&&Ut[e.toLowerCase()];return n?void 0!==n.a?"rgba(".concat(n.r,",").concat(n.g,",").concat(n.b,",").concat(n.a,")"):"rgb(".concat(n.r,",").concat(n.g,",").concat(n.b,")"):"none"}function Xt(e){if(null==e)return!1;var t=Zt(e),r=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t)||/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),n=null==r?void 0:r[1],o=null==r?void 0:r[2],i=null==r?void 0:r[3];return!!(void 0!==n&&void 0!==o&&void 0!==i)&&.299*+n+.587*+o+.114*+i<125}var Jt=function(e,t){var r=null==t?void 0:t.closest(".qv-object .qv-inner-object"),n=r&&window.getComputedStyle(r).backgroundColor,o=null==t?void 0:t.closest(".qv-panel-sheet"),i=o&&window.getComputedStyle(o).backgroundColor,a=e.getStyle("","","object.straightTableV2.backgroundColor"),s=e.getStyle("object","straightTableV2","backgroundColor"),l=a||n||s,u=function(e){if(void 0===e)return!1;var t=Zt(e),r=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),n=null==r?void 0:r[4];return void 0!==n&&0==+n}(l);return{tableColorFromTheme:a||"inherit",color:l,isDark:Xt(u?i:l),isTransparent:u}},Qt=function(e){return!Number.isNaN(+e)},er=function(e){return!(!e.qNum&&0!==e.qNum||!Qt(e.qNum))},tr=1e4;function rr(e,t){return V([],t,!0).reverse().find((function(t){return t*e<=tr}))||Math.floor(tr/e)}function nr(e,t){var r,n;if(null===(r=t.viewState)||void 0===r?void 0:r.skipTotals)return{atTop:!1,atBottom:!1};var o=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position],i=o[0],a=o[3],s=o[4];if(o[2]&&(i&&o[1]||!a&&!i)){if(a||"top"===s)return{atTop:!0,atBottom:!1};if(!a&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function or(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(i=null===(o=e.qHyperCube.qGrandTotalRow[n])||void 0===o?void 0:o.qText)&&void 0!==i?i:""}var ir=function(e,t){return"auto"!==t?t:er(e)?"right":"left"};var ar=function(e){var t=e.qHyperCube,r=t.qColumnOrder,n=t.qDimensionInfo,o=t.qMeasureInfo,i=n.length+o.length,a=function(e,t,r){var n=t.length,o=[],i=0,a=0;return{visibleColumnsOrder:e.filter((function(e){var s=e<n,l=(s?t[e]:r[e-n]).qError,u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}}((null==r?void 0:r.length)===i?r:Array.from(Array(i).keys()),n,o),s=a.visibleColumnsOrder,l=a.visibleColumnIndexes;return s.map((function(t,r){return function(e,t,r,n){var o,i=e.qHyperCube,a=i.qDimensionInfo,s=i.qMeasureInfo,l=a.length,u=t<l,c=u?a[t]:s[t-l],d=0,p="",f=!1,m=-1;if(u){var h=c;d=h.qGroupPos,p=h.qGroupFieldDefs[d],f=h.qLocked,m=n,o=h.qDimensionType}var g=c.qFallbackTitle,b=c.textAlign,v=c.qAttrExprInfo,y=c.qSortIndicator,x=c.qReverseSort,S=c.qApprMaxGlyphCount,E=c.columnWidth,C=c.qLibraryId;return j({isDim:u,isLocked:f,fieldId:p,colIdx:t,qLibraryId:C,pageColIdx:r,qApprMaxGlyphCount:S,qReverseSort:x,columnWidth:E,selectionColIdx:m,id:"col-".concat(r),label:g,stylingIDs:v.map((function(e){return e.id})),sortDirection:y&&"N"!==y?y:"A",totalInfo:or(e,u,r,n)},function(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}(b,o,u))}(e,t,r,l[t])}))};function sr(e,t,r,n,o){var i,a;return B(this,void 0,void 0,(function(){var s,l,u,c,d,p,f,m,h,g,b,v,y,x,S;return $(this,(function(E){switch(E.label){case 0:return s=r.page,l=r.rowsPerPage,u=r.rowsPerPageOptions,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/l),f=null!==(i=o.visibleTop)&&void 0!==i?i:s*l,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(l,d-f),s>0&&f>=d?(n(j(j({},r),{page:0})),[2,null]):m*c>tr?(n(j(j({},r),{rowsPerPage:rr(c,u),page:0})),[2,null]):(h=d>10,g=nr(t,o),b=ar(t),(v=!!t.snapshotData)?(x=t.qHyperCube.qDataPages,[3,3]):[3,1]);case 1:return[4,e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}])];case 2:x=E.sent(),E.label=3;case 3:return y=x,o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page),S=(null==y?void 0:y[0].qMatrix.map((function(e,t){var r={id:"row-".concat(t)};return b.forEach((function(n,o){r[n.id]=j(j({},e[o]),{align:ir(e[o],n.bodyTextAlign),rowIdx:t+f,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===m-1})})),r})))||[],[2,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:S}]}}))}))}var lr=function(e,t){var r;return!(!e.snapshotData&&!(null===(r=t.viewState)||void 0===r?void 0:r.visibleHeight))},ur=function(e,t){var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||lr(e,t)};function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function dr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function pr(e){if(!dr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=pr(e[r])})),t}function fr(e,t,r={clone:!0}){const n=r.clone?cr({},e):e;return dr(e)&&dr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(dr(t[o])&&o in e&&dr(e[o])?n[o]=fr(e[o],t[o],r):r.clone?n[o]=dr(t[o])?pr(t[o]):t[o]:n[o]=t[o])})),n}var mr={exports:{}};function hr(){}function gr(){}gr.resetWarningCache=hr;mr.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gr,resetWarningCache:hr};return r.PropTypes=r,r}();var br=Z(mr.exports);function vr(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."}function yr(e){if("string"!=typeof e)throw new Error(vr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xr(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Sr(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Er(e){return e&&e.ownerDocument||document}function Cr(e){return Er(e).defaultView||window}function wr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Rr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Dr({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function Ar(e){const t=y.useRef(e);return Rr((()=>{t.current=e})),y.useCallback(((...e)=>(0,t.current)(...e)),[])}function Ir(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{wr(e,t)}))}),e)}let qr,Pr=!0,Tr=!1;const Lr={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 Mr(e){e.metaKey||e.altKey||e.ctrlKey||(Pr=!0)}function Or(){Pr=!1}function kr(){"hidden"===this.visibilityState&&Tr&&(Pr=!0)}function _r(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Pr||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Lr[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Nr(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Mr,!0),t.addEventListener("mousedown",Or,!0),t.addEventListener("pointerdown",Or,!0),t.addEventListener("touchstart",Or,!0),t.addEventListener("visibilitychange",kr,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!_r(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Tr=!0,window.clearTimeout(qr),qr=window.setTimeout((()=>{Tr=!1}),100),t.current=!1,!0)},ref:e}}function Fr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zr(e,t){const r=cr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=cr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=cr({},i),Object.keys(o).forEach((e=>{r[n][e]=zr(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function jr(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Hr=e=>e;var Br=(()=>{let e=Hr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Hr}}})();const $r={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 Vr(e,t,r="Mui"){const n=$r[t];return n?`${r}-${n}`:`${Br.generate(e)}-${t}`}function Wr(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Vr(e,t,r)})),n}var Gr="$$material";function Ur(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var Yr={exports:{}},Kr={},Zr=60103,Xr=60106,Jr=60107,Qr=60108,en=60114,tn=60109,rn=60110,nn=60112,on=60113,an=60120,sn=60115,ln=60116,un=60121,cn=60122,dn=60117,pn=60129,fn=60131;if("function"==typeof Symbol&&Symbol.for){var mn=Symbol.for;Zr=mn("react.element"),Xr=mn("react.portal"),Jr=mn("react.fragment"),Qr=mn("react.strict_mode"),en=mn("react.profiler"),tn=mn("react.provider"),rn=mn("react.context"),nn=mn("react.forward_ref"),on=mn("react.suspense"),an=mn("react.suspense_list"),sn=mn("react.memo"),ln=mn("react.lazy"),un=mn("react.block"),cn=mn("react.server.block"),dn=mn("react.fundamental"),pn=mn("react.debug_trace_mode"),fn=mn("react.legacy_hidden")}function hn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zr:switch(e=e.type){case Jr:case en:case Qr:case on:case an:return e;default:switch(e=e&&e.$$typeof){case rn:case nn:case ln:case sn:case tn:return e;default:return t}}case Xr:return t}}}var gn=tn,bn=Zr,vn=nn,yn=Jr,xn=ln,Sn=sn,En=Xr,Cn=en,wn=Qr,Rn=on;Kr.ContextConsumer=rn,Kr.ContextProvider=gn,Kr.Element=bn,Kr.ForwardRef=vn,Kr.Fragment=yn,Kr.Lazy=xn,Kr.Memo=Sn,Kr.Portal=En,Kr.Profiler=Cn,Kr.StrictMode=wn,Kr.Suspense=Rn,Kr.isAsyncMode=function(){return!1},Kr.isConcurrentMode=function(){return!1},Kr.isContextConsumer=function(e){return hn(e)===rn},Kr.isContextProvider=function(e){return hn(e)===tn},Kr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zr},Kr.isForwardRef=function(e){return hn(e)===nn},Kr.isFragment=function(e){return hn(e)===Jr},Kr.isLazy=function(e){return hn(e)===ln},Kr.isMemo=function(e){return hn(e)===sn},Kr.isPortal=function(e){return hn(e)===Xr},Kr.isProfiler=function(e){return hn(e)===en},Kr.isStrictMode=function(e){return hn(e)===Qr},Kr.isSuspense=function(e){return hn(e)===on},Kr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Jr||e===en||e===pn||e===Qr||e===on||e===an||e===fn||"object"==typeof e&&null!==e&&(e.$$typeof===ln||e.$$typeof===sn||e.$$typeof===tn||e.$$typeof===rn||e.$$typeof===nn||e.$$typeof===dn||e.$$typeof===un||e[0]===cn)},Kr.typeOf=hn,Yr.exports=Kr;var Dn=Yr.exports,An=Z((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}));function In(e){function t(e,n,l,u,p){for(var f,m,h,g,x,E=0,C=0,w=0,R=0,D=0,L=0,O=h=f=0,_=0,N=0,F=0,z=0,j=l.length,H=j-1,B="",$="",V="",W="";_<j;){if(m=l.charCodeAt(_),_===H&&0!==C+R+w+E&&(0!==C&&(m=47===C?10:47),R=w=E=0,j++,H++),0===C+R+w+E){if(_===H&&(0<N&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(_)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),h=1,z=++_;_<j;){switch(m=l.charCodeAt(_)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(_+1)){case 42:case 47:e:{for(O=_+1;O<H;++O)switch(l.charCodeAt(O)){case 47:if(42===m&&42===l.charCodeAt(O-1)&&_+2!==O){_=O+1;break e}break;case 10:if(47===m){_=O+1;break e}}_=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;_++<H&&l.charCodeAt(_)!==m;);}if(0===h)break;_++}if(h=l.substring(z,_),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<N&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:N=n;break;default:N=T}if(z=(h=t(n,N,h,m,p+1)).length,0<M&&(x=s(3,h,N=r(T,B,F),n,I,A,z,m,p,u),B=N.join(""),void 0!==x&&0===(z=(h=x.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(b,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(n,r(n,B,F),h,u,p+1);V+=h,h=F=N=O=f=0,B="",m=l.charCodeAt(++_);break;case 125:case 59:if(1<(z=(B=(0<N?B.replace(d,""):B).trim()).length))switch(0===O&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<M&&void 0!==(x=s(1,B,n,e,I,A,$.length,u,p,u))&&0===(z=(B=x.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),m=B.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){W+=B+l.charAt(_);break}default:58!==B.charCodeAt(z-1)&&($+=o(B,f,m,B.charCodeAt(2)))}F=N=O=f=0,B="",m=l.charCodeAt(++_)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==u&&0<B.length&&(N=1,B+="\0"),0<M*k&&s(0,B,n,e,I,A,$.length,u,p,u),A=1,I++;break;case 59:case 125:if(0===C+R+w+E){A++;break}default:switch(A++,g=l.charAt(_),m){case 9:case 32:if(0===R+E+C)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===R+C+E&&(N=F=1,g="\f"+g);break;case 108:if(0===R+C+E+q&&0<O)switch(_-O){case 2:112===D&&58===l.charCodeAt(_-3)&&(q=D);case 8:111===L&&(q=L)}break;case 58:0===R+C+E&&(O=_);break;case 44:0===C+w+R+E&&(N=1,g+="\r");break;case 34:case 39:0===C&&(R=R===m?0:0===R?m:R);break;case 91:0===R+C+w&&E++;break;case 93:0===R+C+w&&E--;break;case 41:0===R+C+E&&w--;break;case 40:if(0===R+C+E){if(0===f)if(2*D+3*L==533);else f=1;w++}break;case 64:0===C+w+R+E+O+h&&(h=1);break;case 42:case 47:if(!(0<R+E+w))switch(C){case 0:switch(2*m+3*l.charCodeAt(_+1)){case 235:C=47;break;case 220:z=_,C=42}break;case 42:47===m&&42===D&&z+2!==_&&(33===l.charCodeAt(z+2)&&($+=l.substring(z,_+1)),g="",C=0)}}0===C&&(B+=g)}L=D,D=m,_++}if(0<(z=$.length)){if(N=n,0<M&&(void 0!==(x=s(2,$,N,e,I,A,z,u,p,u))&&0===($=x).length))return W+$+V;if($=N.join(",")+"{"+$+"}",0!=P*q){switch(2!==P||i($,2)||(q=0),q){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}q=0}}return W+$+V}function r(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),O(2!==t?n:n.replace(w,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,c){for(var d,p=0,f=t;p<M;++p)switch(d=L[p].call(u,e,f,r,n,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?P=1:(P=2,O=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<M){var o=s(-1,r,n,n,I,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(T,n,r,0,0);return 0<M&&(void 0!==(o=s(-2,i,n,n,I,A,i.length,0,0,0))&&(i=o)),"",q=0,A=I=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,A=1,I=1,q=0,P=1,T=[],L=[],M=0,O=null,k=0;return u.use=function e(t){switch(t){case void 0:case null:M=L.length=0;break;default:if("function"==typeof t)L[M++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else k=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var qn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Pn(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Tn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ln=Pn((function(e){return Tn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Mn={exports:{}},On={},kn="function"==typeof Symbol&&Symbol.for,_n=kn?Symbol.for("react.element"):60103,Nn=kn?Symbol.for("react.portal"):60106,Fn=kn?Symbol.for("react.fragment"):60107,zn=kn?Symbol.for("react.strict_mode"):60108,jn=kn?Symbol.for("react.profiler"):60114,Hn=kn?Symbol.for("react.provider"):60109,Bn=kn?Symbol.for("react.context"):60110,$n=kn?Symbol.for("react.async_mode"):60111,Vn=kn?Symbol.for("react.concurrent_mode"):60111,Wn=kn?Symbol.for("react.forward_ref"):60112,Gn=kn?Symbol.for("react.suspense"):60113,Un=kn?Symbol.for("react.suspense_list"):60120,Yn=kn?Symbol.for("react.memo"):60115,Kn=kn?Symbol.for("react.lazy"):60116,Zn=kn?Symbol.for("react.block"):60121,Xn=kn?Symbol.for("react.fundamental"):60117,Jn=kn?Symbol.for("react.responder"):60118,Qn=kn?Symbol.for("react.scope"):60119;function eo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _n:switch(e=e.type){case $n:case Vn:case Fn:case jn:case zn:case Gn:return e;default:switch(e=e&&e.$$typeof){case Bn:case Wn:case Kn:case Yn:case Hn:return e;default:return t}}case Nn:return t}}}function to(e){return eo(e)===Vn}On.AsyncMode=$n,On.ConcurrentMode=Vn,On.ContextConsumer=Bn,On.ContextProvider=Hn,On.Element=_n,On.ForwardRef=Wn,On.Fragment=Fn,On.Lazy=Kn,On.Memo=Yn,On.Portal=Nn,On.Profiler=jn,On.StrictMode=zn,On.Suspense=Gn,On.isAsyncMode=function(e){return to(e)||eo(e)===$n},On.isConcurrentMode=to,On.isContextConsumer=function(e){return eo(e)===Bn},On.isContextProvider=function(e){return eo(e)===Hn},On.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_n},On.isForwardRef=function(e){return eo(e)===Wn},On.isFragment=function(e){return eo(e)===Fn},On.isLazy=function(e){return eo(e)===Kn},On.isMemo=function(e){return eo(e)===Yn},On.isPortal=function(e){return eo(e)===Nn},On.isProfiler=function(e){return eo(e)===jn},On.isStrictMode=function(e){return eo(e)===zn},On.isSuspense=function(e){return eo(e)===Gn},On.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fn||e===Vn||e===jn||e===zn||e===Gn||e===Un||"object"==typeof e&&null!==e&&(e.$$typeof===Kn||e.$$typeof===Yn||e.$$typeof===Hn||e.$$typeof===Bn||e.$$typeof===Wn||e.$$typeof===Xn||e.$$typeof===Jn||e.$$typeof===Qn||e.$$typeof===Zn)},On.typeOf=eo,Mn.exports=On;var ro=Mn.exports,no={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},io={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ao={};function so(e){return ro.isMemo(e)?io:ao[e.$$typeof]||no}ao[ro.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ao[ro.Memo]=io;var lo=Object.defineProperty,uo=Object.getOwnPropertyNames,co=Object.getOwnPropertySymbols,po=Object.getOwnPropertyDescriptor,fo=Object.getPrototypeOf,mo=Object.prototype;var ho=function e(t,r,n){if("string"!=typeof r){if(mo){var o=fo(r);o&&o!==mo&&e(t,o,n)}var i=uo(r);co&&(i=i.concat(co(r)));for(var a=so(t),s=so(r),l=0;l<i.length;++l){var u=i[l];if(!(oo[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=po(r,u);try{lo(t,u,c)}catch(e){}}}}return t},go=Z(ho);function bo(){return(bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var vo=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},yo=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Dn.typeOf(e)},xo=Object.freeze([]),So=Object.freeze({});function Eo(e){return"function"==typeof e}function Co(e){return e.displayName||e.name||"Component"}function wo(e){return e&&"string"==typeof e.styledComponentId}var Ro="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="undefined"!=typeof window&&"HTMLElement"in window,Ao=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:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),Io={};function qo(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Po=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&qo(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),To=new Map,Lo=new Map,Mo=1,Oo=function(e){if(To.has(e))return To.get(e);for(;Lo.has(Mo);)Mo++;var t=Mo++;return To.set(e,t),Lo.set(t,e),t},ko=function(e){return Lo.get(e)},_o=function(e,t){t>=Mo&&(Mo=t+1),To.set(e,t),Lo.set(t,e)},No="style["+Ro+'][data-styled-version="5.3.11"]',Fo=new RegExp("^"+Ro+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),zo=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},jo=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Fo);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(_o(u,l),zo(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ho=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Ro))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ro,"active"),n.setAttribute("data-styled-version","5.3.11");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Bo=function(){function e(e){var t=this.element=Ho(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}qo(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$o=function(){function e(e){var t=this.element=Ho(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Vo=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Wo=Do,Go={isServer:!Do,useCSSOMInjection:!Ao},Uo=function(){function e(e,t,r){void 0===e&&(e=So),void 0===t&&(t={}),this.options=bo({},Go,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Do&&Wo&&(Wo=!1,function(e){for(var t=document.querySelectorAll(No),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Ro)&&(jo(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Oo(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(bo({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Vo(o):n?new Bo(o):new $o(o),new Po(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Oo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Oo(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Oo(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=ko(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=Ro+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Yo=/(a)(d)/gi,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Zo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ko(t%52)+r;return(Ko(t%52)+r).replace(Yo,"$1-$2")}var Xo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Jo=function(e){return Xo(5381,e)};function Qo(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Eo(r)&&!wo(r))return!1}return!0}var ei=Jo("5.3.11"),ti=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Qo(e),this.componentId=t,this.baseHash=Xo(ei,t),this.baseStyle=r,Uo.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=yi(this.rules,e,t,r).join(""),a=Zo(Xo(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=Xo(this.baseHash,r.hash),c="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)c+=p;else if(p){var f=yi(p,e,t,r),m=Array.isArray(f)?f.join(""):f;u=Xo(u,m+d),c+=m}}if(c){var h=Zo(u>>>0);if(!t.hasNameForId(n,h)){var g=r(c,"."+h,void 0,n);t.insertRules(n,h,g)}o.push(h)}}return o.join(" ")},e}(),ri=/^\s*\/\/.*$/gm,ni=[":","[",".","#"];function oi(e){var t,r,n,o,i=void 0===e?So:e,a=i.options,s=void 0===a?So:a,l=i.plugins,u=void 0===l?xo:l,c=new In(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,n,i){return 0===n&&-1!==ni.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var l=e.replace(ri,""),u=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||qo(15),Xo(e,t.name)}),5381).toString():"",m}var ii=x.createContext();ii.Consumer;var ai=x.createContext(),si=(ai.Consumer,new Uo),li=oi();function ui(){return w(ii)||si}function ci(){return w(ai)||li}function di(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=ui(),i=E((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=E((function(){return oi({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return C((function(){An(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),x.createElement(ii.Provider,{value:i},x.createElement(ai.Provider,{value:a},e.children))}var pi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=li);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return qo(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=li),this.name+e.hash},e}(),fi=/([A-Z])/,mi=/([A-Z])/g,hi=/^ms-/,gi=function(e){return"-"+e.toLowerCase()};function bi(e){return fi.test(e)?e.replace(mi,gi).replace(hi,"-ms-"):e}var vi=function(e){return null==e||!1===e||""===e};function yi(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=yi(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return vi(e)?"":wo(e)?"."+e.styledComponentId:Eo(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:yi(e(t),t,r,n):e instanceof pi?r?(e.inject(r,n),e.getName(n)):e:yo(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!vi(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Eo(t[a])?i.push(bi(a)+":",t[a],";"):yo(t[a])?i.push.apply(i,e(t[a],a)):i.push(bi(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in qn||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var xi=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Si(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Eo(e)||yo(e)?xi(yi(vo(xo,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:xi(yi(vo(e,r)))}var Ei=function(e,t,r){return void 0===r&&(r=So),e.theme!==r.theme&&e.theme||t||r.theme},Ci=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wi=/(^-|-$)/g;function Ri(e){return e.replace(Ci,"-").replace(wi,"")}var Di=function(e){return Zo(Jo(e)>>>0)};function Ai(e){return"string"==typeof e&&!0}var Ii=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},qi=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pi(e,t,r){var n=e[r];Ii(t)&&Ii(n)?Ti(n,t):e[r]=t}function Ti(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Ii(a))for(var s in a)qi(s)&&Pi(e,a[s],s)}return e}var Li=x.createContext();Li.Consumer;var Mi={};function Oi(e,t,r){var n=wo(e),o=!Ai(e),i=t.attrs,a=void 0===i?xo:i,s=t.componentId,l=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ri(e);Mi[r]=(Mi[r]||0)+1;var n=r+"-"+Di("5.3.11"+r+Mi[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,u=t.displayName,c=void 0===u?function(e){return Ai(e)?"styled."+e:"Styled("+Co(e)+")"}(e):u,d=t.displayName&&t.componentId?Ri(t.displayName)+"-"+t.componentId:t.componentId||l,p=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;n&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var m,h=new ti(r,d,n?e.componentStyle:void 0),g=h.isStatic&&0===a.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,c=e.target,d=function(e,t,r){void 0===e&&(e=So);var n=bo({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Eo(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Ei(t,w(Li),a)||So,t,o),p=d[0],f=d[1],m=function(e,t,r,n){var o=ui(),i=ci();return t?e.generateAndInjectStyles(So,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,p),h=r,g=f.$as||t.$as||f.as||t.as||c,b=Ai(g),v=f!==t?bo({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(l?l(x,Ln,g):!b||Ln(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=bo({},t.style,{},f.style)),y.className=Array.prototype.concat(s,u,m!==u?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=h,R(g,y)}(m,e,t,g)};return b.displayName=c,(m=x.forwardRef(b)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):xo,m.styledComponentId=d,m.target=n?e.target:e,m.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Ai(e)?e:Ri(Co(e)));return Oi(e,bo({},o,{attrs:p,componentId:i}),r)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Ti({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&go(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var ki=function(e){return function e(t,r,n){if(void 0===n&&(n=So),!Dn.isValidElementType(r))return qo(1,String(r));var o=function(){return t(r,n,Si.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,bo({},n,{},o))},o.attrs=function(o){return e(t,r,bo({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Oi,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){ki[e]=ki(e)}));var _i=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qo(e),Uo.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(yi(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Uo.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ni(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Si.apply(void 0,[e].concat(r)).join(""),i=Di(o);return new pi(i,o)}var Fi=ki;const zi=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Si.apply(void 0,[e].concat(r)),i="sc-global-"+Di(JSON.stringify(o)),a=new _i(o,i);function s(e){var t=ui(),r=ci(),n=w(Li),o=D(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,n,r),null}function l(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Io,r,o);else{var i=bo({},t,{theme:Ei(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return x.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var ji=zi;
|
|
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\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},_t({exports:{}});function Yt(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 Kt({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="",bold:r=!1,maxNbrLinesOfText:o=3}){const{estimateWidth:i,measureText:a,estimateLineCount:l}=E((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=jt(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=jt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=Yt(i,t,l)}while(null!==i&&r<o);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,o]);return{estimateWidth:i,measureText:a,estimateLineCount:l}}function Zt(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Xt(e,t){let 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}function Jt(e){return e>0?0:1}function Qt(e){return e.translator.get("Visualizations.Descriptions.Column")}function en(e){return{measures:{min:Jt,max:1e3,description:()=>Qt(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Zt(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Xt(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Jt,max:1e3,description:()=>Qt(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Zt(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Xt(o,r)}}}}var tn,nn={};tn=nn,(()=>{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}}},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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{default:()=>Le});var e=n(229),t=n.n(e);const o=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 b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),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=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,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),A={},D=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(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 M(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(e[r],t[r])||(n=!1)})),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!M(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);M(i,a)||T(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(A.generate(a,i,l)):D(i)&&D(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(M(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(A.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])&&!T(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=L(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(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(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(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(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=L(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.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},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=q.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 _(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(_(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(_(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(_(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(_(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(_(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 H(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 $={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 b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},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=H(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=H(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=H(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)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(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(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=U(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(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)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===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),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(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=De;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 Te={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[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);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[n.id].isFirstTime=!1,r&&"object"===Ie(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Me[n.id].lastReloadTime;if(Me[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({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 Ge({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=Qe(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(Ue({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(Te[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=Te[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}),ke({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=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(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=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(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){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.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(Te[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)");Te[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:Te[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 Te[r.type].updateModifier&&Te[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Te[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}),$e(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({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&&!Te[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Te[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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&He(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function $e(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(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||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[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 Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);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):k(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&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),tn.default=r.default,Object.defineProperty(tn,"__esModule",{value:!0})})();var rn=Y(nn);const on="12px",an="nebula-table-utils-head-menu-button";var ln;!function(e){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"}(ln||(ln={}));const sn="nebula-table-utils-column-adjuster",un=`${sn}-border`;var cn,dn;!function(e){e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.AutoMin=80]="AutoMin"}(cn||(cn={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(dn||(dn={}));const pn={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},fn=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!rn.hasActiveModifiers({measures:[e],properties:t.properties})||rn.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},mn={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:dn.Auto,translation:"Common.Auto"},{value:dn.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:dn.Pixels,translation:"Object.Table.Column.Pixels"},{value:dn.percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:dn.auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===dn.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(cn.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===dn.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(cn.PercentageMax,e.qDef.columnWidth.percentage))}}},hn={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"}]},...pn,...mn},gn={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},bn=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:fn(e)}),vn=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")?{type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:gn},presentation:{type:"items",translation:"properties.presentation",items:hn}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:bn(e)},presentation:{type:"items",translation:"properties.presentation",items:hn}}}}}:{type:"items",component:"columns",translation:"Common.Data",sortIndexRef:"qHyperCubeDef.qColumnOrder",allowMove:!0,allowAdd:!0,addTranslation:"Common.Columns",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",grouped:!0,items:{...gn,...hn}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",grouped:!0,items:{...bn(e),...hn}}}},yn={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},xn=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},Sn=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},En=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[yn,xn(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...Sn(e)}}),Cn={uses:"sorting"},wn={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Rn=e=>({type:"items",component:"accordion",items:{data:vn(e),sorting:Cn,addOns:wn,settings:En(e)}});var An={exports:{}};self,An.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:()=>Le});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 b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),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=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,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),A={},D=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(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 M(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){M(e[r],t[r])||(n=!1)})),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!M(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);M(i,a)||T(t,o)||(I(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(A.generate(a,i,l)):D(i)&&D(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(M(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(A.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])&&!T(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=L(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(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(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(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(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=L(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.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},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=q.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 _(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(_(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(_(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(_(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(_(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(_(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 H(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 $={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 b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},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=H(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=H(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=H(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)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(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(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=U(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(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var Z="difference";function X(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)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===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),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(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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(Z))return!1;var i=X(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=De;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 Te={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Te,apply:qe,applyModifiers:ke,cleanUpMeasure:Oe,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[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);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Me[n.id]=Me[n.id]||{isFirstTime:!0};var u=Me[n.id].isFirstTime;if(Me[n.id].isFirstTime=!1,r&&"object"===Ie(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Me[n.id].lastReloadTime;if(Me[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var 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 Ue({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 Ge({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=Qe(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(Ue({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(Te[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=Te[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}),ke({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=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Xe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(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=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Qe(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){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.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(Te[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)");Te[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:Te[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 Te[r.type].updateModifier&&Te[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Te[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}),$e(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Xe({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&&!Te[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function _e(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function Fe(e){var t=_e(e);return!t||Te[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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=_e(e);n&&(void 0!==n.outputExpression&&He(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function $e(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!Te[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(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||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[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 Ze(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Xe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Ze)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ze);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):k(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&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const 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())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function D(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 P(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},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},L=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},M=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=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,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},_=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=[]))},H=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 D(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 D(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)?D(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 P(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 P(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)?P(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)}))}},$=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 V={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,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=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?M():w,A=s.defaultMeasure,D=void 0===A?q():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",b,v),T("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),I(g,t,r),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:P}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(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||!U[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(G(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"}},Z={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}},X={colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>0&&Z.getNumMeasures(e)<=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>0},expression:function(e){return Z.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 Z.getNumMeasures(e)>=1}}};var Q={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 Z.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)<=1},expression:function(e){return Z.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return Z.getNumDimensions(e)>=1},multiColor:function(e){return Z.getNumMeasures(e)>1},measure:function(e){return Z.getNumDimensions(e)>=1},expression:function(e){return Z.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 Z.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=Z.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||Z.wrapFieldName(t.name),key:Z.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||X).colorModeOptions||X.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},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=V.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=V.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),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,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}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",De="conditionalColoring",Pe="measures",Ie="qDef.conditionalColoring";const Te={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Pe,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Pe,quarantineName:De})}};var Le="qHyperCubeDef.qMeasures",Me="measures",qe="qHyperCubeDef.qDimensions",ke="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:je,arrayName:Me,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:je,arrayName:Me,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Te,conditionalShow:He}})(),r.default})();var Dn=Y(An.exports),Pn=function(e,t,n){var r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((function(n){return function(e,t,n){var r,o=t.length,i=(e<o?t[e]:n[e-o]).qDef.columnWidth;return"pixels"===(null==i?void 0:i.type)?null!==(r=i.pixels)&&void 0!==r?r:cn.PixelsDefault:-1}(n,e,t)}));return o},In=function(e){var t=e.propertyTree,n=e.hyperCubePath,r=Dn.hypercube.exportProperties({propertyTree:t,hyperCubePath:n}),o=r.properties.qHyperCubeDef,i=o.qColumnOrder,a=o.qDimensions,l=o.qMeasures,s=Pn(a,l,i);return zt(r,"properties.qHyperCubeDef",j(j({},r.properties.qHyperCubeDef),{columnWidths:s})),Dn.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Dn.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Dn.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),r},Tn=function(e,t,n,r){var o=t;r&&(o=t-r);var i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){var a=n[t];i.qDef.columnWidth=-1===a?{type:dn.FitToContent}:{type:dn.Pixels,pixels:a}}return i},Ln=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.extension,o=e.hypercubePath,i=e.defaultPropertyValues,a=e.viewDataMode,l=Dn.hypercube.importProperties({exportFormat:t,initialProperties:n,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:i,hypercubePath:o,extension:r});Dn.unquarantineProperty(l.qProperty,"straightTableColumnOrder");var s=l.qProperty.qHyperCubeDef,u=s.qDimensions,c=s.qMeasures,d=s.qColumnOrder,p=s.columnWidths,f=function(e,t,n,r){var o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((function(e){return e<o})).map((function(t){return Tn(e,t,r)})),measures:a.filter((function(e){return e>=o})).map((function(e){return Tn(t,e,r,o)}))}}(u,c,d,p),m=f.dimensions,h=f.measures;return Array.isArray(p)&&p.length>0&&(zt(l,"qProperty.qHyperCubeDef.qDimensions",m),zt(l,"qProperty.qHyperCubeDef.qMeasures",h)),a&&(zt(l,"qProperty.totals.show",!1),zt(l,"qProperty.usePagination",!0)),Dn.conditionalShow.unquarantine(l.qProperty),l};const Mn=e=>e.flags.isEnabled("PS_18291_TABLE_EXPLORATION")&&{exploration:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}}};function qn(e){return{definition:Rn(e),...Mn(e),data:en(e),support:{export:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),exportData:!0,snapshot:e.flags.isEnabled("PS_20907_TABLE_DOWNLOAD"),viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Ln({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>In({propertyTree:e,hyperCubePath:t})}}var kn=function(e){return B(void 0,void 0,void 0,(function(){var t,n,r,o;return $(this,(function(i){switch(i.label){case 0:(t=e.target).classList.contains("sn-table-cell")||(t=t.closest(".sn-table-cell")),n=null===(o=t.querySelector(".sn-table-cell-text"))||void 0===o?void 0:o.textContent,i.label=1;case 1:return i.trys.push([1,4,,5]),n?[4,navigator.clipboard.writeText(String(n))]:[3,3];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:return r=i.sent(),console.log(r),[3,5];case 5:return[2]}}))}))};var On=function(e,n){return t((function(){return function(e,t){return function(n,r){var o=r.isDim,i=r.colIdx,a=o?i:i-e.qDimensionInfo.length,l="/qHyperCubeDef/".concat(o?"qDimensions":"qMeasures","/").concat(a,"/qDef/columnWidth"),s=e[o?"qDimensionInfo":"qMeasureInfo"][a].columnWidth,u=s?{qPath:l,qOp:"Replace",qValue:JSON.stringify(j(j({},s),n))}:{qPath:l,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([u],!0)}}(e,n)}),[e,n])},Nn=function(e){return!Number.isNaN(+e)},_n=function(e){return!(!e.qNum&&0!==e.qNum||!Nn(e.qNum))},Fn=1e4;function zn(e,t){return W([],t,!0).reverse().find((function(t){return t*e<=Fn}))||Math.floor(Fn/e)}function jn(e,t){var n,r;if(null===(n=t.viewState)||void 0===n?void 0:n.skipTotals)return{atTop:!1,atBottom:!1};var o=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position],i=o[0],a=o[3],l=o[4];if(o[2]&&(i&&o[1]||!a&&!i)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if(!a&&"bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Hn(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(i=null===(o=e.qHyperCube.qGrandTotalRow[r])||void 0===o?void 0:o.qText)&&void 0!==i?i:""}var Bn=function(e,t){return"auto"!==t?t:_n(e)?"right":"left"};var $n=function(e){var t=e.qHyperCube,n=t.qColumnOrder,r=t.qDimensionInfo,o=t.qMeasureInfo,i=r.length+o.length,a=function(e,t,n){var r=t.length,o=[],i=0,a=0;return{visibleColumnsOrder:e.filter((function(e){var l=e<r,s=(l?t[e]:n[e-r]).qError,u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}}((null==n?void 0:n.length)===i?n:Array.from(Array(i).keys()),r,o),l=a.visibleColumnsOrder,s=a.visibleColumnIndexes;return l.map((function(t,n){return function(e,t,n,r){var o,i=e.qHyperCube,a=i.qDimensionInfo,l=i.qMeasureInfo,s=i.qEffectiveInterColumnSortOrder,u=a.length,c=t<u,d=c?a[t]:l[t-u],p=t===s[0],f=0,m="",h=!1,g=-1;if(c){var b=d;f=b.qGroupPos,m=b.qGroupFieldDefs[f],h=b.qLocked,g=r,o=b.qDimensionType}var v=d.qFallbackTitle,y=d.textAlign,x=d.qAttrExprInfo,S=d.qSortIndicator,E=d.qReverseSort,C=d.qApprMaxGlyphCount,w=d.columnWidth,R=d.qLibraryId;return j({isDim:c,isLocked:h,fieldId:m,colIdx:t,qLibraryId:R,pageColIdx:n,qApprMaxGlyphCount:C,qReverseSort:E,columnWidth:w,selectionColIdx:g,isActivelySorted:p,id:"col-".concat(n),label:v,stylingIDs:x.map((function(e){return e.id})),sortDirection:S&&"N"!==S?S:"A",totalInfo:Hn(e,c,n,r)},function(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}(y,o,c))}(e,t,n,s[t])}))};function Wn(e,t,n,r,o){var i,a;return B(this,void 0,void 0,(function(){var l,s,u,c,d,p,f,m,h,g,b,v,y,x,S;return $(this,(function(E){switch(E.label){case 0:return l=n.page,s=n.rowsPerPage,u=n.rowsPerPageOptions,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f),l>0&&f>=d?(r(j(j({},n),{page:0})),[2,null]):m*c>Fn?(r(j(j({},n),{rowsPerPage:zn(c,u),page:0})),[2,null]):(h=d>10,g=jn(t,o),b=$n(t),(v=!!t.snapshotData)?(x=t.qHyperCube.qDataPages,[3,3]):[3,1]);case 1:return[4,e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}])];case 2:x=E.sent(),E.label=3;case 3:return y=x,o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page),S=(null==y?void 0:y[0].qMatrix.map((function(e,t){var n={id:"row-".concat(t)};return b.forEach((function(r,o){n[r.id]=j(j({},e[o]),{align:Bn(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1})})),n})))||[],[2,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:S}]}}))}))}var Vn=function(e,t){var n;return!(!e.snapshotData&&!(null===(n=t.viewState)||void 0===n?void 0:n.visibleHeight))},Un=function(e,t){var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Vn(e,t)};function Gn(){return Gn=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},Gn.apply(this,arguments)}function Yn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Kn(e){if(!Yn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Kn(e[n])})),t}function Zn(e,t,n={clone:!0}){const r=n.clone?Gn({},e):e;return Yn(e)&&Yn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Yn(t[o])&&o in e&&Yn(e[o])?r[o]=Zn(e[o],t[o],n):n.clone?r[o]=Yn(t[o])?Kn(t[o]):t[o]:r[o]=t[o])})),r}var Xn={exports:{}};function Jn(){}function Qn(){}Qn.resetWarningCache=Jn;Xn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qn,resetWarningCache:Jn};return n.PropTypes=n,n}();var er=Y(Xn.exports);function tr(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."}function nr(e){if("string"!=typeof e)throw new Error(tr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rr(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function or(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function ir(e){return e&&e.ownerDocument||document}function ar(e){return ir(e).defaultView||window}function lr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var sr="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let ur=0;const cr=y["useId".toString()];function dr(e){if(void 0!==cr){const t=cr();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(ur+=1,n(`mui-${ur}`))}),[t]),r}(e)}function pr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function fr(e){const t=y.useRef(e);return sr((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function mr(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{lr(e,t)}))}),e)}let hr,gr=!0,br=!1;const vr={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 yr(e){e.metaKey||e.altKey||e.ctrlKey||(gr=!0)}function xr(){gr=!1}function Sr(){"hidden"===this.visibilityState&&br&&(gr=!0)}function Er(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return gr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!vr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Cr(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",yr,!0),t.addEventListener("mousedown",xr,!0),t.addEventListener("pointerdown",xr,!0),t.addEventListener("touchstart",xr,!0),t.addEventListener("visibilitychange",Sr,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Er(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(br=!0,window.clearTimeout(hr),hr=window.setTimeout((()=>{br=!1}),100),t.current=!1,!0)},ref:e}}function wr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Rr(e,t){const n=Gn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Gn({},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]=Gn({},i),Object.keys(o).forEach((e=>{n[r][e]=Rr(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ar(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 Dr=e=>e;var Pr=(()=>{let e=Dr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Dr}}})();const Ir={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 Tr(e,t,n="Mui"){const r=Ir[t];return r?`${n}-${r}`:`${Pr.generate(e)}-${t}`}function Lr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Tr(e,t,n)})),r}var Mr="$$material";function qr(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 kr={exports:{}},Or={},Nr=60103,_r=60106,Fr=60107,zr=60108,jr=60114,Hr=60109,Br=60110,$r=60112,Wr=60113,Vr=60120,Ur=60115,Gr=60116,Yr=60121,Kr=60122,Zr=60117,Xr=60129,Jr=60131;if("function"==typeof Symbol&&Symbol.for){var Qr=Symbol.for;Nr=Qr("react.element"),_r=Qr("react.portal"),Fr=Qr("react.fragment"),zr=Qr("react.strict_mode"),jr=Qr("react.profiler"),Hr=Qr("react.provider"),Br=Qr("react.context"),$r=Qr("react.forward_ref"),Wr=Qr("react.suspense"),Vr=Qr("react.suspense_list"),Ur=Qr("react.memo"),Gr=Qr("react.lazy"),Yr=Qr("react.block"),Kr=Qr("react.server.block"),Zr=Qr("react.fundamental"),Xr=Qr("react.debug_trace_mode"),Jr=Qr("react.legacy_hidden")}function eo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nr:switch(e=e.type){case Fr:case jr:case zr:case Wr:case Vr:return e;default:switch(e=e&&e.$$typeof){case Br:case $r:case Gr:case Ur:case Hr:return e;default:return t}}case _r:return t}}}var to=Hr,no=Nr,ro=$r,oo=Fr,io=Gr,ao=Ur,lo=_r,so=jr,uo=zr,co=Wr;Or.ContextConsumer=Br,Or.ContextProvider=to,Or.Element=no,Or.ForwardRef=ro,Or.Fragment=oo,Or.Lazy=io,Or.Memo=ao,Or.Portal=lo,Or.Profiler=so,Or.StrictMode=uo,Or.Suspense=co,Or.isAsyncMode=function(){return!1},Or.isConcurrentMode=function(){return!1},Or.isContextConsumer=function(e){return eo(e)===Br},Or.isContextProvider=function(e){return eo(e)===Hr},Or.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nr},Or.isForwardRef=function(e){return eo(e)===$r},Or.isFragment=function(e){return eo(e)===Fr},Or.isLazy=function(e){return eo(e)===Gr},Or.isMemo=function(e){return eo(e)===Ur},Or.isPortal=function(e){return eo(e)===_r},Or.isProfiler=function(e){return eo(e)===jr},Or.isStrictMode=function(e){return eo(e)===zr},Or.isSuspense=function(e){return eo(e)===Wr},Or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fr||e===jr||e===Xr||e===zr||e===Wr||e===Vr||e===Jr||"object"==typeof e&&null!==e&&(e.$$typeof===Gr||e.$$typeof===Ur||e.$$typeof===Hr||e.$$typeof===Br||e.$$typeof===$r||e.$$typeof===Zr||e.$$typeof===Yr||e[0]===Kr)},Or.typeOf=eo,kr.exports=Or;var po=kr.exports,fo=Y((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}));function mo(e){function t(e,r,s,u,p){for(var f,m,h,g,x,E=0,C=0,w=0,R=0,A=0,M=0,k=h=f=0,N=0,_=0,F=0,z=0,j=s.length,H=j-1,B="",$="",W="",V="";N<j;){if(m=s.charCodeAt(N),N===H&&0!==C+R+w+E&&(0!==C&&(m=47===C?10:47),R=w=E=0,j++,H++),0===C+R+w+E){if(N===H&&(0<_&&(B=B.replace(d,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=s.charAt(N)}m=59}switch(m){case 123:for(f=(B=B.trim()).charCodeAt(0),h=1,z=++N;N<j;){switch(m=s.charCodeAt(N)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(N+1)){case 42:case 47:e:{for(k=N+1;k<H;++k)switch(s.charCodeAt(k)){case 47:if(42===m&&42===s.charCodeAt(k-1)&&N+2!==k){N=k+1;break e}break;case 10:if(47===m){N=k+1;break e}}N=k}}break;case 91:m++;case 40:m++;case 34:case 39:for(;N++<H&&s.charCodeAt(N)!==m;);}if(0===h)break;N++}if(h=s.substring(z,N),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<_&&(B=B.replace(d,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=L}if(z=(h=t(r,_,h,m,p+1)).length,0<q&&(x=l(3,h,_=n(L,B,F),r,P,D,z,m,p,u),B=_.join(""),void 0!==x&&0===(z=(h=x.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:B=B.replace(S,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(b,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&($+=h,h="")}else h=""}else h=t(r,n(r,B,F),h,u,p+1);W+=h,h=F=_=k=f=0,B="",m=s.charCodeAt(++N);break;case 125:case 59:if(1<(z=(B=(0<_?B.replace(d,""):B).trim()).length))switch(0===k&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<q&&void 0!==(x=l(1,B,r,e,P,D,$.length,u,p,u))&&0===(z=(B=x.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),m=B.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=B+s.charAt(N);break}default:58!==B.charCodeAt(z-1)&&($+=o(B,f,m,B.charCodeAt(2)))}F=_=k=f=0,B="",m=s.charCodeAt(++N)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==u&&0<B.length&&(_=1,B+="\0"),0<q*O&&l(0,B,r,e,P,D,$.length,u,p,u),D=1,P++;break;case 59:case 125:if(0===C+R+w+E){D++;break}default:switch(D++,g=s.charAt(N),m){case 9:case 32:if(0===R+E+C)switch(A){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===R+C+E&&(_=F=1,g="\f"+g);break;case 108:if(0===R+C+E+I&&0<k)switch(N-k){case 2:112===A&&58===s.charCodeAt(N-3)&&(I=A);case 8:111===M&&(I=M)}break;case 58:0===R+C+E&&(k=N);break;case 44:0===C+w+R+E&&(_=1,g+="\r");break;case 34:case 39:0===C&&(R=R===m?0:0===R?m:R);break;case 91:0===R+C+w&&E++;break;case 93:0===R+C+w&&E--;break;case 41:0===R+C+E&&w--;break;case 40:if(0===R+C+E){if(0===f)if(2*A+3*M==533);else f=1;w++}break;case 64:0===C+w+R+E+k+h&&(h=1);break;case 42:case 47:if(!(0<R+E+w))switch(C){case 0:switch(2*m+3*s.charCodeAt(N+1)){case 235:C=47;break;case 220:z=N,C=42}break;case 42:47===m&&42===A&&z+2!==N&&(33===s.charCodeAt(z+2)&&($+=s.substring(z,N+1)),g="",C=0)}}0===C&&(B+=g)}M=A,A=m,N++}if(0<(z=$.length)){if(_=r,0<q&&(void 0!==(x=l(2,$,_,e,P,D,z,u,p,u))&&0===($=x).length))return V+$+W;if($=_.join(",")+"{"+$+"}",0!=T*I){switch(2!==T||i($,2)||(I=0),I){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}I=0}}return V+$+W}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<a;++u)t[s++]=r(e[u]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===T||2===T&&i(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(A,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(x,"tb");break;case 232:s=a.replace(x,"tb-rl");break;case 220:s=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),k(2!==t?r:r.replace(w,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,c){for(var d,p=0,f=t;p<q;++p)switch(d=M[p].call(u,e,f,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(k=null,e?"function"!=typeof e?T=1:(T=2,k=e):T=0),s}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<q){var o=l(-1,n,r,r,P,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(L,r,n,0,0);return 0<q&&(void 0!==(o=l(-2,i,r,r,P,D,i.length,0,0,0))&&(i=o)),"",I=0,D=P=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,D=1,P=1,I=0,T=1,L=[],M=[],q=0,k=null,O=0;return u.use=function e(t){switch(t){case void 0:case null:q=M.length=0;break;default:if("function"==typeof t)M[q++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}var ho={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function go(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var bo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,vo=go((function(e){return bo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),yo={exports:{}},xo={},So="function"==typeof Symbol&&Symbol.for,Eo=So?Symbol.for("react.element"):60103,Co=So?Symbol.for("react.portal"):60106,wo=So?Symbol.for("react.fragment"):60107,Ro=So?Symbol.for("react.strict_mode"):60108,Ao=So?Symbol.for("react.profiler"):60114,Do=So?Symbol.for("react.provider"):60109,Po=So?Symbol.for("react.context"):60110,Io=So?Symbol.for("react.async_mode"):60111,To=So?Symbol.for("react.concurrent_mode"):60111,Lo=So?Symbol.for("react.forward_ref"):60112,Mo=So?Symbol.for("react.suspense"):60113,qo=So?Symbol.for("react.suspense_list"):60120,ko=So?Symbol.for("react.memo"):60115,Oo=So?Symbol.for("react.lazy"):60116,No=So?Symbol.for("react.block"):60121,_o=So?Symbol.for("react.fundamental"):60117,Fo=So?Symbol.for("react.responder"):60118,zo=So?Symbol.for("react.scope"):60119;function jo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Eo:switch(e=e.type){case Io:case To:case wo:case Ao:case Ro:case Mo:return e;default:switch(e=e&&e.$$typeof){case Po:case Lo:case Oo:case ko:case Do:return e;default:return t}}case Co:return t}}}function Ho(e){return jo(e)===To}xo.AsyncMode=Io,xo.ConcurrentMode=To,xo.ContextConsumer=Po,xo.ContextProvider=Do,xo.Element=Eo,xo.ForwardRef=Lo,xo.Fragment=wo,xo.Lazy=Oo,xo.Memo=ko,xo.Portal=Co,xo.Profiler=Ao,xo.StrictMode=Ro,xo.Suspense=Mo,xo.isAsyncMode=function(e){return Ho(e)||jo(e)===Io},xo.isConcurrentMode=Ho,xo.isContextConsumer=function(e){return jo(e)===Po},xo.isContextProvider=function(e){return jo(e)===Do},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Eo},xo.isForwardRef=function(e){return jo(e)===Lo},xo.isFragment=function(e){return jo(e)===wo},xo.isLazy=function(e){return jo(e)===Oo},xo.isMemo=function(e){return jo(e)===ko},xo.isPortal=function(e){return jo(e)===Co},xo.isProfiler=function(e){return jo(e)===Ao},xo.isStrictMode=function(e){return jo(e)===Ro},xo.isSuspense=function(e){return jo(e)===Mo},xo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wo||e===To||e===Ao||e===Ro||e===Mo||e===qo||"object"==typeof e&&null!==e&&(e.$$typeof===Oo||e.$$typeof===ko||e.$$typeof===Do||e.$$typeof===Po||e.$$typeof===Lo||e.$$typeof===_o||e.$$typeof===Fo||e.$$typeof===zo||e.$$typeof===No)},xo.typeOf=jo,yo.exports=xo;var Bo=yo.exports,$o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Wo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo={};function Go(e){return Bo.isMemo(e)?Vo:Uo[e.$$typeof]||$o}Uo[Bo.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[Bo.Memo]=Vo;var Yo=Object.defineProperty,Ko=Object.getOwnPropertyNames,Zo=Object.getOwnPropertySymbols,Xo=Object.getOwnPropertyDescriptor,Jo=Object.getPrototypeOf,Qo=Object.prototype;var ei=function e(t,n,r){if("string"!=typeof n){if(Qo){var o=Jo(n);o&&o!==Qo&&e(t,o,r)}var i=Ko(n);Zo&&(i=i.concat(Zo(n)));for(var a=Go(t),l=Go(n),s=0;s<i.length;++s){var u=i[s];if(!(Wo[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=Xo(n,u);try{Yo(t,u,c)}catch(e){}}}}return t},ti=Y(ei);function ni(){return(ni=Object.assign||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}).apply(this,arguments)}var ri=function(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},oi=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!po.typeOf(e)},ii=Object.freeze([]),ai=Object.freeze({});function li(e){return"function"==typeof e}function si(e){return e.displayName||e.name||"Component"}function ui(e){return e&&"string"==typeof e.styledComponentId}var ci="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",di="undefined"!=typeof window&&"HTMLElement"in window,pi=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:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),fi={};function mi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var hi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&mi(16,""+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=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.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)}},t.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+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),gi=new Map,bi=new Map,vi=1,yi=function(e){if(gi.has(e))return gi.get(e);for(;bi.has(vi);)vi++;var t=vi++;return gi.set(e,t),bi.set(t,e),t},xi=function(e){return bi.get(e)},Si=function(e,t){t>=vi&&(vi=t+1),gi.set(e,t),bi.set(t,e)},Ei="style["+ci+'][data-styled-version="5.3.11"]',Ci=new RegExp("^"+ci+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),wi=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)},Ri=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(Ci);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(Si(u,s),wi(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},Ai=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(ci))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ci,"active"),r.setAttribute("data-styled-version","5.3.11");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Di=function(){function e(e){var t=this.element=Ai(e);t.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}mi(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Pi=function(){function e(e){var t=this.element=Ai(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ii=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ti=di,Li={isServer:!di,useCSSOMInjection:!pi},Mi=function(){function e(e,t,n){void 0===e&&(e=ai),void 0===t&&(t={}),this.options=ni({},Li,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&di&&Ti&&(Ti=!1,function(e){for(var t=document.querySelectorAll(Ei),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(ci)&&(Ri(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return yi(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ni({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Ii(o):r?new Di(o):new Pi(o),new hi(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(yi(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(yi(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(yi(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=xi(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=ci+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),qi=/(a)(d)/gi,ki=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oi(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ki(t%52)+n;return(ki(t%52)+n).replace(qi,"$1-$2")}var Ni=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_i=function(e){return Ni(5381,e)};function Fi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(li(n)&&!ui(n))return!1}return!0}var zi=_i("5.3.11"),ji=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Fi(e),this.componentId=t,this.baseHash=Ni(zi,t),this.baseStyle=n,Mi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=oa(this.rules,e,t,n).join(""),a=Oi(Ni(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=Ni(this.baseHash,n.hash),c="",d=0;d<s;d++){var p=this.rules[d];if("string"==typeof p)c+=p;else if(p){var f=oa(p,e,t,n),m=Array.isArray(f)?f.join(""):f;u=Ni(u,m+d),c+=m}}if(c){var h=Oi(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),Hi=/^\s*\/\/.*$/gm,Bi=[":","[",".","#"];function $i(e){var t,n,r,o,i=void 0===e?ai:e,a=i.options,l=void 0===a?ai:a,s=i.plugins,u=void 0===s?ii:s,c=new mo(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==Bi.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Hi,""),u=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||mi(15),Ni(e,t.name)}),5381).toString():"",m}var Wi=x.createContext();Wi.Consumer;var Vi=x.createContext(),Ui=(Vi.Consumer,new Mi),Gi=$i();function Yi(){return w(Wi)||Ui}function Ki(){return w(Vi)||Gi}function Zi(e){var t=S(e.stylisPlugins),n=t[0],r=t[1],o=Yi(),i=E((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=E((function(){return $i({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return C((function(){fo(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),x.createElement(Wi.Provider,{value:i},x.createElement(Vi.Provider,{value:a},e.children))}var Xi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Gi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return mi(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Gi),this.name+e.hash},e}(),Ji=/([A-Z])/,Qi=/([A-Z])/g,ea=/^ms-/,ta=function(e){return"-"+e.toLowerCase()};function na(e){return Ji.test(e)?e.replace(Qi,ta).replace(ea,"-ms-"):e}var ra=function(e){return null==e||!1===e||""===e};function oa(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=oa(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ra(e)?"":ui(e)?"."+e.styledComponentId:li(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:oa(e(t),t,n,r):e instanceof Xi?n?(e.inject(n,r),e.getName(r)):e:oi(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ra(t[a])&&(Array.isArray(t[a])&&t[a].isCss||li(t[a])?i.push(na(a)+":",t[a],";"):oi(t[a])?i.push.apply(i,e(t[a],a)):i.push(na(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in ho||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var ia=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function aa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return li(e)||oi(e)?ia(oa(ri(ii,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ia(oa(ri(e,n)))}var la=function(e,t,n){return void 0===n&&(n=ai),e.theme!==n.theme&&e.theme||t||n.theme},sa=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ua=/(^-|-$)/g;function ca(e){return e.replace(sa,"-").replace(ua,"")}var da=function(e){return Oi(_i(e)>>>0)};function pa(e){return"string"==typeof e&&!0}var fa=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ma=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ha(e,t,n){var r=e[n];fa(t)&&fa(r)?ga(r,t):e[n]=t}function ga(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(fa(a))for(var l in a)ma(l)&&ha(e,a[l],l)}return e}var ba=x.createContext();ba.Consumer;var va={};function ya(e,t,n){var r=ui(e),o=!pa(e),i=t.attrs,a=void 0===i?ii:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ca(e);va[n]=(va[n]||0)+1;var r=n+"-"+da("5.3.11"+n+va[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,u=t.displayName,c=void 0===u?function(e){return pa(e)?"styled."+e:"Styled("+si(e)+")"}(e):u,d=t.displayName&&t.componentId?ca(t.displayName)+"-"+t.componentId:t.componentId||s,p=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var m,h=new ji(n,d,r?e.componentStyle:void 0),g=h.isStatic&&0===a.length,b=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,u=e.styledComponentId,c=e.target,d=function(e,t,n){void 0===e&&(e=ai);var r=ni({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in li(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(la(t,w(ba),a)||ai,t,o),p=d[0],f=d[1],m=function(e,t,n,r){var o=Yi(),i=Ki();return t?e.generateAndInjectStyles(ai,o,i):e.generateAndInjectStyles(n,o,i)}(i,r,p),h=n,g=f.$as||t.$as||f.as||t.as||c,b=pa(g),v=f!==t?ni({},t,{},f):t,y={};for(var x in v)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?y.as=v[x]:(s?s(x,vo,g):!b||vo(x))&&(y[x]=v[x]));return t.style&&f.style!==t.style&&(y.style=ni({},t.style,{},f.style)),y.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,f.className).filter(Boolean).join(" "),y.ref=h,R(g,y)}(m,e,t,g)};return b.displayName=c,(m=x.forwardRef(b)).attrs=p,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ii,m.styledComponentId=d,m.target=r?e.target:e,m.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(pa(e)?e:ca(si(e)));return ya(e,ni({},o,{attrs:p,componentId:i}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ga({},e.defaultProps,t):t}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),o&&ti(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var xa=function(e){return function e(t,n,r){if(void 0===r&&(r=ai),!po.isValidElementType(n))return mi(1,String(n));var o=function(){return t(n,r,aa.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,ni({},r,{},o))},o.attrs=function(o){return e(t,n,ni({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(ya,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){xa[e]=xa(e)}));var Sa=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fi(e),Mi.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(oa(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Mi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ea(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=aa.apply(void 0,[e].concat(n)).join(""),i=da(o);return new Xi(i,o)}var Ca=xa;const wa=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=aa.apply(void 0,[e].concat(n)),i="sc-global-"+da(JSON.stringify(o)),a=new Sa(o,i);function l(e){var t=Yi(),n=Ki(),r=w(ba),o=A(t.allocateGSInstance(i)).current;return t.server&&s(o,e,t,r,n),null}function s(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,fi,n,o);else{var i=ni({},t,{theme:la(t,r,l.defaultProps)});a.renderStyles(e,i,n,o)}}return x.memo(l)}((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 Ra=wa;
|
|
10
10
|
/** @license MUI v5.10.0
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Fi(e),r}zi.propTypes={defaultTheme:br.object,styles:br.oneOfType([br.string,br.object,br.func])};const Bi=["values","unit","step"],$i=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>cr({},e,{[t.key]:t.val})),{})};var Vi={borderRadius:4};function Wi(e,t){return t?fr(e,t,{clone:!1}):e}const Gi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ui={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gi[e]}px)`};function Yi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ui;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ui;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Gi).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ki(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Zi(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ki(e,r)||n,t&&(o=t(o,n,e)),o}function Xi(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ki(e.theme,n)||{};return Yi(e,i,(e=>{let n=Zi(a,o,e);return e===n&&"string"==typeof e&&(n=Zi(a,o,`${t}${"default"===e?"":yr(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ji={m:"margin",p:"padding"},Qi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ea={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ta=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ea[e])return[e];e=ea[e]}const[t,r]=e.split(""),n=Ji[t],o=Qi[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ra=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],na=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function oa(e,t,r,n){var o;const i=null!=(o=Ki(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function ia(e){return oa(e,"spacing",8)}function aa(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function sa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=aa(t,r),e)),{})}(ta(r),n);return Yi(e,e[r],o)}function la(e,t){const r=ia(e.theme);return Object.keys(e).map((n=>sa(e,t,n,r))).reduce(Wi,{})}function ua(e){return la(e,ra)}function ca(e){return la(e,na)}function da(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Wi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function pa(e){return"number"!=typeof e?e:`${e}px solid`}ua.propTypes={},ua.filterProps=ra,ca.propTypes={},ca.filterProps=na;const fa=Xi({prop:"border",themeKey:"borders",transform:pa}),ma=Xi({prop:"borderTop",themeKey:"borders",transform:pa}),ha=Xi({prop:"borderRight",themeKey:"borders",transform:pa}),ga=Xi({prop:"borderBottom",themeKey:"borders",transform:pa}),ba=Xi({prop:"borderLeft",themeKey:"borders",transform:pa}),va=Xi({prop:"borderColor",themeKey:"palette"}),ya=Xi({prop:"borderTopColor",themeKey:"palette"}),xa=Xi({prop:"borderRightColor",themeKey:"palette"}),Sa=Xi({prop:"borderBottomColor",themeKey:"palette"}),Ea=Xi({prop:"borderLeftColor",themeKey:"palette"}),Ca=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=oa(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:aa(t,e)});return Yi(e,e.borderRadius,r)}return null};Ca.propTypes={},Ca.filterProps=["borderRadius"],da(fa,ma,ha,ga,ba,va,ya,xa,Sa,Ea,Ca);const wa=e=>{if(void 0!==e.gap&&null!==e.gap){const t=oa(e.theme,"spacing",8),r=e=>({gap:aa(t,e)});return Yi(e,e.gap,r)}return null};wa.propTypes={},wa.filterProps=["gap"];const Ra=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=oa(e.theme,"spacing",8),r=e=>({columnGap:aa(t,e)});return Yi(e,e.columnGap,r)}return null};Ra.propTypes={},Ra.filterProps=["columnGap"];const Da=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=oa(e.theme,"spacing",8),r=e=>({rowGap:aa(t,e)});return Yi(e,e.rowGap,r)}return null};Da.propTypes={},Da.filterProps=["rowGap"];function Aa(e,t){return"grey"===t?t:e}da(wa,Ra,Da,Xi({prop:"gridColumn"}),Xi({prop:"gridRow"}),Xi({prop:"gridAutoFlow"}),Xi({prop:"gridAutoColumns"}),Xi({prop:"gridAutoRows"}),Xi({prop:"gridTemplateColumns"}),Xi({prop:"gridTemplateRows"}),Xi({prop:"gridTemplateAreas"}),Xi({prop:"gridArea"}));function Ia(e){return e<=1&&0!==e?100*e+"%":e}da(Xi({prop:"color",themeKey:"palette",transform:Aa}),Xi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Aa}),Xi({prop:"backgroundColor",themeKey:"palette",transform:Aa}));const qa=Xi({prop:"width",transform:Ia}),Pa=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r;return{maxWidth:(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Gi[t]||Ia(t)}};return Yi(e,e.maxWidth,t)}return null};Pa.filterProps=["maxWidth"];const Ta=Xi({prop:"minWidth",transform:Ia}),La=Xi({prop:"height",transform:Ia}),Ma=Xi({prop:"maxHeight",transform:Ia}),Oa=Xi({prop:"minHeight",transform:Ia});Xi({prop:"size",cssProperty:"width",transform:Ia}),Xi({prop:"size",cssProperty:"height",transform:Ia});da(qa,Pa,Ta,La,Ma,Oa,Xi({prop:"boxSizing"}));var ka={border:{themeKey:"borders",transform:pa},borderTop:{themeKey:"borders",transform:pa},borderRight:{themeKey:"borders",transform:pa},borderBottom:{themeKey:"borders",transform:pa},borderLeft:{themeKey:"borders",transform:pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ca},color:{themeKey:"palette",transform:Aa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Aa},backgroundColor:{themeKey:"palette",transform:Aa},p:{style:ca},pt:{style:ca},pr:{style:ca},pb:{style:ca},pl:{style:ca},px:{style:ca},py:{style:ca},padding:{style:ca},paddingTop:{style:ca},paddingRight:{style:ca},paddingBottom:{style:ca},paddingLeft:{style:ca},paddingX:{style:ca},paddingY:{style:ca},paddingInline:{style:ca},paddingInlineStart:{style:ca},paddingInlineEnd:{style:ca},paddingBlock:{style:ca},paddingBlockStart:{style:ca},paddingBlockEnd:{style:ca},m:{style:ua},mt:{style:ua},mr:{style:ua},mb:{style:ua},ml:{style:ua},mx:{style:ua},my:{style:ua},margin:{style:ua},marginTop:{style:ua},marginRight:{style:ua},marginBottom:{style:ua},marginLeft:{style:ua},marginX:{style:ua},marginY:{style:ua},marginInline:{style:ua},marginInlineStart:{style:ua},marginInlineEnd:{style:ua},marginBlock:{style:ua},marginBlockStart:{style:ua},marginBlockEnd:{style:ua},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:wa},rowGap:{style:Da},columnGap:{style:Ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ia},maxWidth:{style:Pa},minWidth:{transform:Ia},height:{transform:Ia},maxHeight:{transform:Ia},minHeight:{transform:Ia},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const _a=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Ki(r,s)||{};if(u)return u(o);return Yi(o,t,(t=>{let r=Zi(c,l,t);return t===r&&"string"==typeof t&&(r=Zi(c,l,`${e}${"default"===t?"":yr(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:ka;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Wi(l,e(r,o,i,a));else{const e=Yi({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Wi(l,e):l[r]=t({sx:o,theme:i})}else l=Wi(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();_a.filterProps=["sx"];var Na=_a;const Fa=["breakpoints","palette","spacing","shape"];function za(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ur(e,Fa),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ur(e,Bi),i=$i(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return cr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=ia({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=fr({breakpoints:s,direction:"ltr",components:{},palette:cr({mode:"light"},n),spacing:l,shape:cr({},Vi,i)},a);return u=t.reduce(((e,t)=>fr(e,t)),u),u.unstable_sxConfig=cr({},ka,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Na({sx:e,theme:this})},u}function ja(e=null){const t=y.useContext(Li);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ha=za();function Ba(e=Ha){return ja(e)}var $a={exports:{}},Va={},Wa=x,Ga=Symbol.for("react.element"),Ua=Symbol.for("react.fragment"),Ya=Object.prototype.hasOwnProperty,Ka=Wa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Za={key:!0,ref:!0,__self:!0,__source:!0};function Xa(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ya.call(t,n)&&!Za.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Ga,type:e,key:i,ref:a,props:o,_owner:Ka.current}}Va.Fragment=Ua,Va.jsx=Xa,Va.jsxs=Xa,$a.exports=Va;var Ja=$a.exports;function Qa({styles:e,themeId:t,defaultTheme:r={}}){const n=Ba(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ja.jsx(ji,{styles:o})}const es=["sx"],ts=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ka;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function rs(e){const{sx:t}=e,r=Ur(e,es),{systemProps:n,otherProps:o}=ts(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return dr(r)?cr({},n,r):n}:cr({},n,t),cr({},o,{sx:i})}function ns(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ns(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function os(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ns(e))&&(n&&(n+=" "),n+=t);return n}const is=["className","component"];const as=["variant"];function ss(e){return 0===e.length}function ls(e){const{variant:t}=e,r=Ur(e,as);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?ss(n)?e[t]:yr(e[t]):`${ss(n)?t:yr(t)}${yr(e[t].toString())}`})),n}const us=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ds=za(),ps=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function fs({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ms(e){return e?(t,r)=>r[e]:null}function hs({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ba(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?zr(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function gs(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function bs(e){if(e.type)return e;if("#"===e.charAt(0))return bs(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(vr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(vr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function vs(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ys(e){let t="hsl"===(e=bs(e)).type||"hsla"===e.type?bs(function(e){e=bs(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),vs({type:s,values:l})}(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 xs(e,t){return e=bs(e),t=gs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,vs(e)}function Ss(e,t){if(e=bs(e),t=gs(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vs(e)}function Es(e,t){if(e=bs(e),t=gs(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vs(e)}var Cs=y.createContext(null);function ws(){return y.useContext(Cs)}var Rs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ds(e){const{children:t,theme:r}=e,n=ws(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return cr({},e,t)}(n,r);return null!=e&&(e[Rs]=null!==n),e}),[r,n]);return Ja.jsx(Cs.Provider,{value:o,children:t})}const As={};function Is(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?cr({},t,{[e]:i}):i;return n?()=>a:a}return cr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function qs(e){const{children:t,theme:r,themeId:n}=e,o=ja(As),i=ws()||As,a=Is(n,o,r),s=Is(n,i,r,!0);return Ja.jsx(Ds,{theme:s,children:Ja.jsx(Li.Provider,{value:a,children:t})})}var Ps={black:"#000",white:"#fff"};var Ts={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 Ls={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 Ms={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 Os={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 ks={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 _s={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 Ns={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 Fs=["mode","contrastThreshold","tonalOffset"],zs={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:Ps.white,default:Ps.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}},js={text:{primary:Ps.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:Ps.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 Hs(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Es(e.main,o):"dark"===t&&(e.dark=Ss(e.main,i)))}function Bs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ur(e,Fs),i=e.primary||function(e="light"){return"dark"===e?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[700],light:ks[400],dark:ks[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ls[200],light:Ls[50],dark:Ls[400]}:{main:Ls[500],light:Ls[300],dark:Ls[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ms[500],light:Ms[300],dark:Ms[700]}:{main:Ms[700],light:Ms[400],dark:Ms[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:_s[400],light:_s[300],dark:_s[700]}:{main:_s[700],light:_s[500],dark:_s[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ns[400],light:Ns[300],dark:Ns[700]}:{main:Ns[800],light:Ns[500],dark:Ns[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Os[400],light:Os[300],dark:Os[700]}:{main:"#ed6c02",light:Os[500],dark:Os[900]}}(t);function d(e){const t=function(e,t){const r=ys(e),n=ys(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,js.text.primary)>=r?js.text.primary:zs.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=cr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(vr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(vr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Hs(e,"light",o,n),Hs(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:js,light:zs};return fr(cr({common:cr({},Ps),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Ts,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const $s=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Vs={textTransform:"uppercase"},Ws='"Roboto", "Helvetica", "Arial", sans-serif';function Gs(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ws,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Ur(r,$s),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return cr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ws?{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(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Vs),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Vs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fr(cr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Us(...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 Ys=["none",Us(0,2,1,-1,0,1,1,0,0,1,3,0),Us(0,3,1,-2,0,2,2,0,0,1,5,0),Us(0,3,3,-2,0,3,4,0,0,1,8,0),Us(0,2,4,-1,0,4,5,0,0,1,10,0),Us(0,3,5,-1,0,5,8,0,0,1,14,0),Us(0,3,5,-1,0,6,10,0,0,1,18,0),Us(0,4,5,-2,0,7,10,1,0,2,16,1),Us(0,5,5,-3,0,8,10,1,0,3,14,2),Us(0,5,6,-3,0,9,12,1,0,3,16,2),Us(0,6,6,-3,0,10,14,1,0,4,18,3),Us(0,6,7,-4,0,11,15,1,0,4,20,3),Us(0,7,8,-4,0,12,17,2,0,5,22,4),Us(0,7,8,-4,0,13,19,2,0,5,24,4),Us(0,7,9,-4,0,14,21,2,0,5,26,4),Us(0,8,9,-5,0,15,22,2,0,6,28,5),Us(0,8,10,-5,0,16,24,2,0,6,30,5),Us(0,8,11,-5,0,17,26,2,0,6,32,5),Us(0,9,11,-5,0,18,28,2,0,7,34,6),Us(0,9,12,-6,0,19,29,2,0,7,36,6),Us(0,10,13,-6,0,20,31,3,0,8,38,7),Us(0,10,13,-6,0,21,33,3,0,8,40,7),Us(0,10,14,-6,0,22,35,3,0,8,42,7),Us(0,11,14,-7,0,23,36,3,0,9,44,8),Us(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ks=["duration","easing","delay"],Zs={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)"},Xs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Js(e){return`${Math.round(e)}ms`}function Qs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function el(e){const t=cr({},Zs,e.easing),r=cr({},Xs,e.duration);return cr({getAutoHeightDuration:Qs,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Ur(n,Ks),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Js(o)} ${i} ${"string"==typeof a?a:Js(a)}`)).join(",")}},e,{easing:t,duration:r})}var tl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const rl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function nl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ur(e,rl);if(e.vars)throw new Error(vr(18));const s=Bs(n),l=za(e);let u=fr(l,{mixins:(c=l.breakpoints,d=r,cr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Ys.slice(),typography:Gs(s,i),transitions:el(o),zIndex:cr({},tl)});var c,d;return u=fr(u,a),u=t.reduce(((e,t)=>fr(e,t)),u),u.unstable_sxConfig=cr({},ka,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Na({sx:e,theme:this})},u}var ol=nl();function il(){const e=Ba(ol);return e[Gr]||e}function al({props:e,name:t}){return hs({props:e,name:t,defaultTheme:ol,themeId:Gr})}const sl=e=>cs(e)&&"classes"!==e,ll=cs,ul=function(e={}){const{themeId:t,defaultTheme:r=ds,rootShouldForwardProp:n=cs,slotShouldForwardProp:o=cs}=e,i=e=>Na(cr({},e,{theme:fs(cr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ms(ps(l))}=a,p=Ur(a,us),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=cs;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hi(e,cr({shouldForwardProp:h,label:undefined},p)),b=(n,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>e(cr({},n,{theme:fs(cr({},n,{defaultTheme:r,themeId:t}))})):e)):[];let l=n;s&&d&&a.push((e=>{const n=fs(cr({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(cr({},e,{theme:n})):o})),d(e,t)}return null})),s&&!f&&a.push((e=>{const n=fs(cr({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const{ownerState:i={}}=e,a=[],s=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return s&&s.forEach((r=>{let n=!0;Object.keys(r.props).forEach((t=>{i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)})),n&&a.push(t[ls(r.props)])})),a})(e,((e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach((e=>{const t=ls(e.props);n[t]=e.style})),n})(s,n),n,s)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n(cr({},e,{theme:fs(cr({},e,{defaultTheme:r,themeId:t}))})));const c=g(l,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Gr,defaultTheme:ol,rootShouldForwardProp:sl});var cl=ul;const dl=["theme"];function pl(e){let{theme:t}=e,r=Ur(e,dl);const n=t[Gr];return Ja.jsx(qs,cr({},r,{themeId:n?Gr:void 0,theme:n||t}))}var fl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ml={},hl={exports:{}};
|
|
15
|
+
function Aa(e,t){let n;return n=t?Ca(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ca(e),n}wa.propTypes={defaultTheme:er.object,styles:er.oneOfType([er.string,er.object,er.func])};const Da=["values","unit","step"],Pa=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)=>Gn({},e,{[t.key]:t.val})),{})};var Ia={borderRadius:4};function Ta(e,t){return t?Zn(e,t,{clone:!1}):e}const La={xs:0,sm:600,md:900,lg:1200,xl:1536},Ma={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${La[e]}px)`};function qa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ma;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ma;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||La).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ka(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 Oa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ka(e,n)||r,t&&(o=t(o,r,e)),o}function Na(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=ka(e.theme,r)||{};return qa(e,i,(e=>{let r=Oa(a,o,e);return e===r&&"string"==typeof e&&(r=Oa(a,o,`${t}${"default"===e?"":nr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const _a={m:"margin",p:"padding"},Fa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},za={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ja=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!za[e])return[e];e=za[e]}const[t,n]=e.split(""),r=_a[t],o=Fa[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ha=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ba=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function $a(e,t,n,r){var o;const i=null!=(o=ka(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 Wa(e){return $a(e,"spacing",8)}function Va(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 Ua(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Va(t,n),e)),{})}(ja(n),r);return qa(e,e[n],o)}function Ga(e,t){const n=Wa(e.theme);return Object.keys(e).map((r=>Ua(e,t,r,n))).reduce(Ta,{})}function Ya(e){return Ga(e,Ha)}function Ka(e){return Ga(e,Ba)}function Za(...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]?Ta(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xa(e){return"number"!=typeof e?e:`${e}px solid`}Ya.propTypes={},Ya.filterProps=Ha,Ka.propTypes={},Ka.filterProps=Ba;const Ja=Na({prop:"border",themeKey:"borders",transform:Xa}),Qa=Na({prop:"borderTop",themeKey:"borders",transform:Xa}),el=Na({prop:"borderRight",themeKey:"borders",transform:Xa}),tl=Na({prop:"borderBottom",themeKey:"borders",transform:Xa}),nl=Na({prop:"borderLeft",themeKey:"borders",transform:Xa}),rl=Na({prop:"borderColor",themeKey:"palette"}),ol=Na({prop:"borderTopColor",themeKey:"palette"}),il=Na({prop:"borderRightColor",themeKey:"palette"}),al=Na({prop:"borderBottomColor",themeKey:"palette"}),ll=Na({prop:"borderLeftColor",themeKey:"palette"}),sl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$a(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Va(t,e)});return qa(e,e.borderRadius,n)}return null};sl.propTypes={},sl.filterProps=["borderRadius"],Za(Ja,Qa,el,tl,nl,rl,ol,il,al,ll,sl);const ul=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$a(e.theme,"spacing",8),n=e=>({gap:Va(t,e)});return qa(e,e.gap,n)}return null};ul.propTypes={},ul.filterProps=["gap"];const cl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$a(e.theme,"spacing",8),n=e=>({columnGap:Va(t,e)});return qa(e,e.columnGap,n)}return null};cl.propTypes={},cl.filterProps=["columnGap"];const dl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$a(e.theme,"spacing",8),n=e=>({rowGap:Va(t,e)});return qa(e,e.rowGap,n)}return null};dl.propTypes={},dl.filterProps=["rowGap"];function pl(e,t){return"grey"===t?t:e}Za(ul,cl,dl,Na({prop:"gridColumn"}),Na({prop:"gridRow"}),Na({prop:"gridAutoFlow"}),Na({prop:"gridAutoColumns"}),Na({prop:"gridAutoRows"}),Na({prop:"gridTemplateColumns"}),Na({prop:"gridTemplateRows"}),Na({prop:"gridTemplateAreas"}),Na({prop:"gridArea"}));function fl(e){return e<=1&&0!==e?100*e+"%":e}Za(Na({prop:"color",themeKey:"palette",transform:pl}),Na({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pl}),Na({prop:"backgroundColor",themeKey:"palette",transform:pl}));const ml=Na({prop:"width",transform:fl}),hl=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])||La[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:fl(t)}};return qa(e,e.maxWidth,t)}return null};hl.filterProps=["maxWidth"];const gl=Na({prop:"minWidth",transform:fl}),bl=Na({prop:"height",transform:fl}),vl=Na({prop:"maxHeight",transform:fl}),yl=Na({prop:"minHeight",transform:fl});Na({prop:"size",cssProperty:"width",transform:fl}),Na({prop:"size",cssProperty:"height",transform:fl});Za(ml,hl,gl,bl,vl,yl,Na({prop:"boxSizing"}));var xl={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sl},color:{themeKey:"palette",transform:pl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pl},backgroundColor:{themeKey:"palette",transform:pl},p:{style:Ka},pt:{style:Ka},pr:{style:Ka},pb:{style:Ka},pl:{style:Ka},px:{style:Ka},py:{style:Ka},padding:{style:Ka},paddingTop:{style:Ka},paddingRight:{style:Ka},paddingBottom:{style:Ka},paddingLeft:{style:Ka},paddingX:{style:Ka},paddingY:{style:Ka},paddingInline:{style:Ka},paddingInlineStart:{style:Ka},paddingInlineEnd:{style:Ka},paddingBlock:{style:Ka},paddingBlockStart:{style:Ka},paddingBlockEnd:{style:Ka},m:{style:Ya},mt:{style:Ya},mr:{style:Ya},mb:{style:Ya},ml:{style:Ya},mx:{style:Ya},my:{style:Ya},margin:{style:Ya},marginTop:{style:Ya},marginRight:{style:Ya},marginBottom:{style:Ya},marginLeft:{style:Ya},marginX:{style:Ya},marginY:{style:Ya},marginInline:{style:Ya},marginInlineStart:{style:Ya},marginInlineEnd:{style:Ya},marginBlock:{style:Ya},marginBlockStart:{style:Ya},marginBlockEnd:{style:Ya},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:ul},rowGap:{style:dl},columnGap:{style:cl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fl},maxWidth:{style:hl},minWidth:{transform:fl},height:{transform:fl},maxHeight:{transform:fl},minHeight:{transform:fl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Sl=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=ka(n,l)||{};if(u)return u(o);return qa(o,t,(t=>{let n=Oa(c,s,t);return t===n&&"string"==typeof t&&(n=Oa(c,s,`${e}${"default"===t?"":nr(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:xl;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=Ta(s,e(n,o,i,a));else{const e=qa({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=Ta(s,e):s[n]=t({sx:o,theme:i})}else s=Ta(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)}}();Sl.filterProps=["sx"];var El=Sl;const Cl=["breakpoints","palette","spacing","shape"];function wl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=qr(e,Cl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=qr(e,Da),i=Pa(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 Gn({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=Wa({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=Zn({breakpoints:l,direction:"ltr",components:{},palette:Gn({mode:"light"},r),spacing:s,shape:Gn({},Ia,i)},a);return u=t.reduce(((e,t)=>Zn(e,t)),u),u.unstable_sxConfig=Gn({},xl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return El({sx:e,theme:this})},u}function Rl(e=null){const t=y.useContext(ba);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Al=wl();function Dl(e=Al){return Rl(e)}var Pl={exports:{}},Il={},Tl=x,Ll=Symbol.for("react.element"),Ml=Symbol.for("react.fragment"),ql=Object.prototype.hasOwnProperty,kl=Tl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ol={key:!0,ref:!0,__self:!0,__source:!0};function Nl(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)ql.call(t,r)&&!Ol.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:Ll,type:e,key:i,ref:a,props:o,_owner:kl.current}}Il.Fragment=Ml,Il.jsx=Nl,Il.jsxs=Nl,Pl.exports=Il;var _l=Pl.exports;function Fl({styles:e,themeId:t,defaultTheme:n={}}){const r=Dl(n),o="function"==typeof e?e(t&&r[t]||r):e;return _l.jsx(Ra,{styles:o})}const zl=["sx"],jl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Hl(e){const{sx:t}=e,n=qr(e,zl),{systemProps:r,otherProps:o}=jl(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Yn(n)?Gn({},r,n):r}:Gn({},r,t),Gn({},o,{sx:i})}function Bl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Bl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $l(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Bl(e))&&(r&&(r+=" "),r+=t);return r}const Wl=["className","component"];const Vl=["variant"];function Ul(e){return 0===e.length}function Gl(e){const{variant:t}=e,n=qr(e,Vl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Ul(r)?e[t]:nr(e[t]):`${Ul(r)?t:nr(t)}${nr(e[t].toString())}`})),r}const Yl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const Kl=e=>{const t={};return e&&e.forEach((e=>{const n=Gl(e.props);t[n]=e.style})),t},Zl=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach((n=>{let i=!0;Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(i=!1)})),i&&o.push(t[Gl(n.props)])})),o};function Xl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Jl=wl(),Ql=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function es({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ts(e){return e?(t,n)=>n[e]:null}const ns=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Gn({},t,{theme:es(Gn({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...Zl(t,Kl(i),i)]}return o};function rs({props:e,name:t,defaultTheme:n,themeId:r}){let o=Dl(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?Rr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function os(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function is(e){if(e.type)return e;if("#"===e.charAt(0))return is(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(tr(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(tr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function as(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 ls(e){let t="hsl"===(e=is(e)).type||"hsla"===e.type?is(function(e){e=is(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])),as({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 ss(e,t){return e=is(e),t=os(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,as(e)}function us(e,t){if(e=is(e),t=os(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return as(e)}function cs(e,t){if(e=is(e),t=os(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let 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 as(e)}var ds=y.createContext(null);function ps(){return y.useContext(ds)}var fs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ms(e){const{children:t,theme:n}=e,r=ps(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Gn({},e,t)}(r,n);return null!=e&&(e[fs]=null!==r),e}),[n,r]);return _l.jsx(ds.Provider,{value:o,children:t})}const hs={};function gs(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Gn({},t,{[e]:i}):i;return r?()=>a:a}return Gn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function bs(e){const{children:t,theme:n,themeId:r}=e,o=Rl(hs),i=ps()||hs,a=gs(r,o,n),l=gs(r,i,n,!0);return _l.jsx(ms,{theme:l,children:_l.jsx(ba.Provider,{value:a,children:t})})}var vs={black:"#000",white:"#fff"};var ys={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 xs={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 Ss={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 Es={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 Cs={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 ws={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 Rs={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 As=["mode","contrastThreshold","tonalOffset"],Ds={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:vs.white,default:vs.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}},Ps={text:{primary:vs.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:vs.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 Is(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=cs(e.main,o):"dark"===t&&(e.dark=us(e.main,i)))}function Ts(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=qr(e,As),i=e.primary||function(e="light"){return"dark"===e?{main:Cs[200],light:Cs[50],dark:Cs[400]}:{main:Cs[700],light:Cs[400],dark:Cs[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xs[200],light:xs[50],dark:xs[400]}:{main:xs[500],light:xs[300],dark:xs[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ss[500],light:Ss[300],dark:Ss[700]}:{main:Ss[700],light:Ss[400],dark:Ss[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ws[400],light:ws[300],dark:ws[700]}:{main:ws[700],light:ws[500],dark:ws[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:Rs[800],light:Rs[500],dark:Rs[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Es[400],light:Es[300],dark:Es[700]}:{main:"#ed6c02",light:Es[500],dark:Es[900]}}(t);function d(e){const t=function(e,t){const n=ls(e),r=ls(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ps.text.primary)>=n?Ps.text.primary:Ds.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Gn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(tr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(tr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Is(e,"light",o,r),Is(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ps,light:Ds};return Zn(Gn({common:Gn({},vs),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:ys,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ls=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ms={textTransform:"uppercase"},qs='"Roboto", "Helvetica", "Arial", sans-serif';function ks(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=qs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=qr(n,Ls),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Gn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===qs?{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,Ms),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ms),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zn(Gn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Os(...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 Ns=["none",Os(0,2,1,-1,0,1,1,0,0,1,3,0),Os(0,3,1,-2,0,2,2,0,0,1,5,0),Os(0,3,3,-2,0,3,4,0,0,1,8,0),Os(0,2,4,-1,0,4,5,0,0,1,10,0),Os(0,3,5,-1,0,5,8,0,0,1,14,0),Os(0,3,5,-1,0,6,10,0,0,1,18,0),Os(0,4,5,-2,0,7,10,1,0,2,16,1),Os(0,5,5,-3,0,8,10,1,0,3,14,2),Os(0,5,6,-3,0,9,12,1,0,3,16,2),Os(0,6,6,-3,0,10,14,1,0,4,18,3),Os(0,6,7,-4,0,11,15,1,0,4,20,3),Os(0,7,8,-4,0,12,17,2,0,5,22,4),Os(0,7,8,-4,0,13,19,2,0,5,24,4),Os(0,7,9,-4,0,14,21,2,0,5,26,4),Os(0,8,9,-5,0,15,22,2,0,6,28,5),Os(0,8,10,-5,0,16,24,2,0,6,30,5),Os(0,8,11,-5,0,17,26,2,0,6,32,5),Os(0,9,11,-5,0,18,28,2,0,7,34,6),Os(0,9,12,-6,0,19,29,2,0,7,36,6),Os(0,10,13,-6,0,20,31,3,0,8,38,7),Os(0,10,13,-6,0,21,33,3,0,8,40,7),Os(0,10,14,-6,0,22,35,3,0,8,42,7),Os(0,11,14,-7,0,23,36,3,0,9,44,8),Os(0,11,15,-7,0,24,38,3,0,9,46,8)];const _s=["duration","easing","delay"],Fs={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)"},zs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function js(e){return`${Math.round(e)}ms`}function Hs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Bs(e){const t=Gn({},Fs,e.easing),n=Gn({},zs,e.duration);return Gn({getAutoHeightDuration:Hs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return qr(r,_s),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:js(o)} ${i} ${"string"==typeof a?a:js(a)}`)).join(",")}},e,{easing:t,duration:n})}var $s={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ws=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=qr(e,Ws);if(e.vars)throw new Error(tr(18));const l=Ts(r),s=wl(e);let u=Zn(s,{mixins:(c=s.breakpoints,d=n,Gn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ns.slice(),typography:ks(l,i),transitions:Bs(o),zIndex:Gn({},$s)});var c,d;return u=Zn(u,a),u=t.reduce(((e,t)=>Zn(e,t)),u),u.unstable_sxConfig=Gn({},xl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return El({sx:e,theme:this})},u}var Us=Vs();function Gs(){const e=Dl(Us);return e[Mr]||e}function Ys({props:e,name:t}){return rs({props:e,name:t,defaultTheme:Us,themeId:Mr})}const Ks=e=>Xl(e)&&"classes"!==e,Zs=Xl,Xs=function(e={}){const{themeId:t,defaultTheme:n=Jl,rootShouldForwardProp:r=Xl,slotShouldForwardProp:o=Xl}=e,i=e=>El(Gn({},e,{theme:es(Gn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ts(Ql(s))}=a,p=qr(a,Yl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Xl;"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=Aa(e,Gn({shouldForwardProp:h,label:undefined},p)),b=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>ns({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Yn(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return Zl(n,Kl(t),t).forEach((e=>{r=Zn(r,e)})),r}),n}return e})):[];let s=r;if(Yn(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return Zl(t,Kl(e),e).forEach((e=>{n=Zn(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>ns({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=es(Gn({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Gn({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=es(Gn({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return Zl(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Kl(n)})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Mr,defaultTheme:Us,rootShouldForwardProp:Ks});var Js=Xs;const Qs=["theme"];function eu(e){let{theme:t}=e,n=qr(e,Qs);const r=t[Mr];return _l.jsx(bs,Gn({},n,{themeId:r?Mr:void 0,theme:r||t}))}var tu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},nu={},ru={exports:{}};
|
|
16
16
|
/*!
|
|
17
17
|
* Converts CSS stylesheets between left-to-right and right-to-left.
|
|
18
18
|
* https://github.com/cssjanus/cssjanus
|
|
@@ -20,7 +20,7 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
20
20
|
* Copyright 2008 Google Inc.
|
|
21
21
|
* Copyright 2010 Trevor Parscal
|
|
22
22
|
*/
|
|
23
|
-
!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="[^\\u0020-\\u007e]",r="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="direction\\s*:\\s*",i="['\"]?\\s*",a="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",l="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+t+"|"+l+")",c=r+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+t+"|"+l+")")+u+"*")+")?",d="((?:-?"+c+")|(?:inherit|auto))",p="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",f="(?:[!#$%&*-~]|"+t+"|"+l+")*?",m="(?![a-zA-Z])",h="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",g="(?!"+f+i+"\\))",b="(?="+f+i+"\\))",v="(\\s*(?:!important\\s*)?[;}])",y=new RegExp("`TMP`","g"),x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),S=new RegExp("("+s+h+"[^;}]+;?)","gi"),E=new RegExp("("+s+"[^\\}]*?})","gi"),C=new RegExp("("+o+")ltr","gi"),w=new RegExp("("+o+")rtl","gi"),R=new RegExp(a+"(left)"+m+g+h,"gi"),D=new RegExp(a+"(right)"+m+g+h,"gi"),A=new RegExp(a+"(left)"+b,"gi"),I=new RegExp(a+"(right)"+b,"gi"),q=new RegExp(a+"(ltr)"+b,"gi"),P=new RegExp(a+"(rtl)"+b,"gi"),T=new RegExp(a+"([ns]?)e-resize","gi"),L=new RegExp(a+"([ns]?)w-resize","gi"),M=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+v,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+v,"gi"),k=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+c+")","gi"),_=new RegExp("(background-position-x\\s*:\\s*)(-?"+r+"%)","gi"),N=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+v,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),$=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function W(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?W(n)+" / "+W(o):W(n))+i}function U(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Y(e,t,r){return t+U(r)}function K(e,t,r,n,o){return t+r+U(n)+o}function Z(e,t,r,n,o){return t+r+n+U(o)}return{transform:function(t,r){var o=new n(S,"`NOFLIP_SINGLE`"),i=new n(E,"`NOFLIP_CLASS`"),a=new n(x,"`COMMENT`");return t=a.tokenize(i.tokenize(o.tokenize(t.replace("`","%60")))),r.transformDirInUrl&&(t=t.replace(q,"$1"+e).replace(P,"$1ltr").replace(y,"rtl")),r.transformEdgeInUrl&&(t=t.replace(A,"$1"+e).replace(I,"$1left").replace(y,"right")),t=t.replace(C,"$1"+e).replace(w,"$1ltr").replace(y,"rtl").replace(R,"$1"+e).replace(D,"$1left").replace(y,"right").replace(T,"$1$2"+e).replace(L,"$1$2e-resize").replace(y,"w-resize").replace(N,G).replace(F,Y).replace(z,Z).replace(j,Z).replace(H,Y).replace(B,K).replace($,K).replace(M,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(k,V).replace(_,V),t=o.detokenize(i.detokenize(a.detokenize(t)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(hl,hl.exports);var gl=hl.exports;Object.defineProperty(ml,"__esModule",{value:!0}),ml.STYLIS_PROPERTY_CONTEXT=void 0;var bl,vl=(bl=gl)&&bl.__esModule?bl:{default:bl};var yl=ml.STYLIS_PROPERTY_CONTEXT=-1;function xl(e,t){if(e===yl)return vl.default.transform(t)}Object.defineProperty(xl,"name",{value:"stylisRTLPlugin"});var Sl=ml.default=xl;function El(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}function Cl(e){if(e.type)return e;if("#"===e.charAt(0))return Cl(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function wl(e,t){return e=Cl(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rl(e,t)}function Dl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rl(e,t)}function Al(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Il={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"},ql={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",...Il,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)"},Pl=12,Tl=14,Ll=16,Ml=24,Ol=3,kl=300,_l=400,Nl=600,Fl=700,zl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wl(ql.GREYSCALE_0,.05),wl(ql.GREEN_PALE,.5),wl(ql.BLUE_PALE,.5),wl(ql.GREEN_PALE,.5),wl(ql.BLUE_PALE,.5),wl(ql.GREEN_PALE,.5),wl(ql.BLUE_PALE,.5);var jl;function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(this,arguments)}wl(ql.GREEN_PALE,.5),wl(ql.BLUE_PALE,.5),wl(ql.GREEN_PALE,.5),wl(ql.BLUE_PALE,.5);var Bl,$l=function(e){return y.createElement("svg",Hl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),jl||(jl=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vl.apply(this,arguments)}var Wl=function(e){return y.createElement("svg",Vl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Bl||(Bl=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})))};function Gl({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Ul=(e={})=>x.createElement(Gl,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Yl=(e={})=>x.createElement(Gl,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Kl=(e={})=>x.createElement(Gl,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Zl=(e={})=>x.createElement(Gl,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("defs",null,x.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},x.createElement("use",{href:"#radio-checked-path-1"})),x.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),x.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Xl=({className:e})=>x.createElement(Gl,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));function Jl(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Jl(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ql(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Jl(e))&&(n&&(n+=" "),n+=t);return n}function eu(e){return Vr("MuiSvgIcon",e)}Wr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ru=cl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${yr(r.color)}`],t[`fontSize${yr(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,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]}})),nu=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Ur(r,tu),f=y.isValidElement(n)&&"svg"===n.type,m=cr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return jr({root:["root","inherit"!==t&&`color${yr(t)}`,`fontSize${yr(r)}`]},eu,n)})(m);return Ja.jsxs(ru,cr({as:a,className:Ql(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?Ja.jsx("title",{children:c}):null]}))}));nu.muiName="SvgIcon";var ou=nu;var iu,au={},su=Symbol.for("react.element"),lu=Symbol.for("react.portal"),uu=Symbol.for("react.fragment"),cu=Symbol.for("react.strict_mode"),du=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),fu=Symbol.for("react.context"),mu=Symbol.for("react.server_context"),hu=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),yu=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen");
|
|
23
|
+
!function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="direction\\s*:\\s*",i="['\"]?\\s*",a="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",s="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+t+"|"+s+")",c=n+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+t+"|"+s+")")+u+"*")+")?",d="((?:-?"+c+")|(?:inherit|auto))",p="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",f="(?:[!#$%&*-~]|"+t+"|"+s+")*?",m="(?![a-zA-Z])",h="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",g="(?!"+f+i+"\\))",b="(?="+f+i+"\\))",v="(\\s*(?:!important\\s*)?[;}])",y=new RegExp("`TMP`","g"),x=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),S=new RegExp("("+l+h+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),C=new RegExp("("+o+")ltr","gi"),w=new RegExp("("+o+")rtl","gi"),R=new RegExp(a+"(left)"+m+g+h,"gi"),A=new RegExp(a+"(right)"+m+g+h,"gi"),D=new RegExp(a+"(left)"+b,"gi"),P=new RegExp(a+"(right)"+b,"gi"),I=new RegExp(a+"(ltr)"+b,"gi"),T=new RegExp(a+"(rtl)"+b,"gi"),L=new RegExp(a+"([ns]?)e-resize","gi"),M=new RegExp(a+"([ns]?)w-resize","gi"),q=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+d+"(\\s+)"+d+"(\\s+)"+d+"(\\s+)"+d+v,"gi"),k=new RegExp("((?:-color|border-style)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+v,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+c+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+d+"(?:(?:\\s+"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?)?(?:(?:(?:\\s*\\/\\s*)"+d+")(?:\\s+"+d+")?(?:\\s+"+d+")?(?:\\s+"+d+")?)?"+v,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+d,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+d+"(\\s*)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+d,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+d,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+d+"(\\s*\\))","gi"),$=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+d+"((?:\\s*,\\s*"+d+"){0,2}\\s*\\))","gi");function W(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?V(r)+" / "+V(o):V(r))+i}function G(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function Y(e,t,n){return t+G(n)}function K(e,t,n,r,o){return t+n+G(r)+o}function Z(e,t,n,r,o){return t+n+r+G(o)}return{transform:function(t,n){var o=new r(S,"`NOFLIP_SINGLE`"),i=new r(E,"`NOFLIP_CLASS`"),a=new r(x,"`COMMENT`");return t=a.tokenize(i.tokenize(o.tokenize(t.replace("`","%60")))),n.transformDirInUrl&&(t=t.replace(I,"$1"+e).replace(T,"$1ltr").replace(y,"rtl")),n.transformEdgeInUrl&&(t=t.replace(D,"$1"+e).replace(P,"$1left").replace(y,"right")),t=t.replace(C,"$1"+e).replace(w,"$1ltr").replace(y,"rtl").replace(R,"$1"+e).replace(A,"$1left").replace(y,"right").replace(L,"$1$2"+e).replace(M,"$1$2e-resize").replace(y,"w-resize").replace(_,U).replace(F,Y).replace(z,Z).replace(j,Z).replace(H,Y).replace(B,K).replace($,K).replace(q,"$1$2$3$8$5$6$7$4$9").replace(k,"$1$2$3$8$5$6$7$4$9").replace(O,W).replace(N,W),t=o.detokenize(i.detokenize(a.detokenize(t)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(ru,ru.exports);var ou=ru.exports;Object.defineProperty(nu,"__esModule",{value:!0}),nu.STYLIS_PROPERTY_CONTEXT=void 0;var iu,au=(iu=ou)&&iu.__esModule?iu:{default:iu};var lu=nu.STYLIS_PROPERTY_CONTEXT=-1;function su(e,t){if(e===lu)return au.default.transform(t)}Object.defineProperty(su,"name",{value:"stylisRTLPlugin"});var uu,cu,du,pu,fu,mu=nu.default=su;!function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(uu||(uu={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(cu||(cu={})),function(e){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"}(du||(du={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(pu||(pu={})),function(e){e.A="ascending",e.D="descending"}(fu||(fu={}));var hu=24,gu=[0,0],bu=[1,0];function vu(e){if(e.type)return e;if("#"===e.charAt(0))return vu(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 yu(e,t){return e=vu(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 xu(e,t){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xu(e,t)}function Su(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xu(e,t)}function Eu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Cu={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"},wu={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",...Cu,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)"},Ru=12,Au=14,Du=16,Pu=24,Iu=3,Tu=300,Lu=400,Mu=600,qu=700,ku={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};yu(wu.GREYSCALE_0,.05),yu(wu.GREEN_PALE,.5),yu(wu.BLUE_PALE,.5),yu(wu.GREEN_PALE,.5),yu(wu.BLUE_PALE,.5),yu(wu.GREEN_PALE,.5),yu(wu.BLUE_PALE,.5);var Ou;function Nu(){return Nu=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},Nu.apply(this,arguments)}yu(wu.GREEN_PALE,.5),yu(wu.BLUE_PALE,.5),yu(wu.GREEN_PALE,.5),yu(wu.BLUE_PALE,.5);var _u,Fu=function(e){return y.createElement("svg",Nu({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Ou||(Ou=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})))};function zu(){return zu=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},zu.apply(this,arguments)}var ju=function(e){return y.createElement("svg",zu({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),_u||(_u=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})))};function Hu({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Bu=(e={})=>x.createElement(Hu,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),$u=(e={})=>x.createElement(Hu,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Wu=(e={})=>x.createElement(Hu,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Vu=(e={})=>x.createElement(Hu,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("defs",null,x.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},x.createElement("use",{href:"#radio-checked-path-1"})),x.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),x.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Uu=({className:e})=>x.createElement(Hu,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));function Gu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Gu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Yu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Gu(e))&&(r&&(r+=" "),r+=t);return r}function Ku(e){return Tr("MuiSvgIcon",e)}Lr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Xu=Js("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${nr(n.color)}`],t[`fontSize${nr(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]}})),Ju=y.forwardRef((function(e,t){const n=Ys({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=qr(n,Zu),f=y.isValidElement(r)&&"svg"===r.type,m=Gn({},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 Ar({root:["root","inherit"!==t&&`color${nr(t)}`,`fontSize${nr(n)}`]},Ku,r)})(m);return _l.jsxs(Xu,Gn({as:a,className:Yu(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?_l.jsx("title",{children:c}):null]}))}));Ju.muiName="SvgIcon";var Qu=Ju;var ec,tc={},nc=Symbol.for("react.element"),rc=Symbol.for("react.portal"),oc=Symbol.for("react.fragment"),ic=Symbol.for("react.strict_mode"),ac=Symbol.for("react.profiler"),lc=Symbol.for("react.provider"),sc=Symbol.for("react.context"),uc=Symbol.for("react.server_context"),cc=Symbol.for("react.forward_ref"),dc=Symbol.for("react.suspense"),pc=Symbol.for("react.suspense_list"),fc=Symbol.for("react.memo"),mc=Symbol.for("react.lazy"),hc=Symbol.for("react.offscreen");
|
|
24
24
|
/**
|
|
25
25
|
* @license React
|
|
26
26
|
* react-is.production.min.js
|
|
@@ -29,7 +29,7 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/function
|
|
32
|
+
*/function gc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case nc:switch(e=e.type){case oc:case ac:case ic:case dc:case pc:return e;default:switch(e=e&&e.$$typeof){case uc:case sc:case cc:case mc:case fc:case lc:return e;default:return t}}case rc:return t}}}ec=Symbol.for("react.module.reference"),tc.ContextConsumer=sc,tc.ContextProvider=lc,tc.Element=nc,tc.ForwardRef=cc,tc.Fragment=oc,tc.Lazy=mc,tc.Memo=fc,tc.Portal=rc,tc.Profiler=ac,tc.StrictMode=ic,tc.Suspense=dc,tc.SuspenseList=pc,tc.isAsyncMode=function(){return!1},tc.isConcurrentMode=function(){return!1},tc.isContextConsumer=function(e){return gc(e)===sc},tc.isContextProvider=function(e){return gc(e)===lc},tc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===nc},tc.isForwardRef=function(e){return gc(e)===cc},tc.isFragment=function(e){return gc(e)===oc},tc.isLazy=function(e){return gc(e)===mc},tc.isMemo=function(e){return gc(e)===fc},tc.isPortal=function(e){return gc(e)===rc},tc.isProfiler=function(e){return gc(e)===ac},tc.isStrictMode=function(e){return gc(e)===ic},tc.isSuspense=function(e){return gc(e)===dc},tc.isSuspenseList=function(e){return gc(e)===pc},tc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===oc||e===ac||e===ic||e===dc||e===pc||e===hc||"object"==typeof e&&null!==e&&(e.$$typeof===mc||e.$$typeof===fc||e.$$typeof===lc||e.$$typeof===sc||e.$$typeof===cc||e.$$typeof===ec||void 0!==e.getModuleId)},tc.typeOf=gc;var bc=!1,vc=x.createContext(null),yc="unmounted",xc="exited",Sc="entering",Ec="entered",Cc="exiting",wc=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=xc,r.appearStatus=Sc):o=Ec:o=t.unmountOnExit||t.mountOnEnter?yc:xc,r.state={status:o},r.nextCallback=null,r}Su(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yc?{status:xc}: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!==Sc&&n!==Ec&&(t=Sc):n!==Sc&&n!==Ec||(t=Cc)}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===Sc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xc&&this.setState({status:yc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[z.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||bc?this.safeSetState({status:Ec},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Sc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ec},(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:z.findDOMNode(this);t&&!bc?(this.props.onExit(r),this.safeSetState({status:Cc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xc},(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:z.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===yc)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=qr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(vc.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function Rc(){}wc.contextType=vc,wc.propTypes={},wc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rc,onEntering:Rc,onEntered:Rc,onExit:Rc,onExiting:Rc,onExited:Rc},wc.UNMOUNTED=yc,wc.EXITED=xc,wc.ENTERING=Sc,wc.ENTERED=Ec,wc.EXITING=Cc;var Ac=wc;function Dc(e,t){var n=Object.create(null);return e&&D.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),n}function Pc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ic(e,t,n){var r=Dc(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(P(a)){var l=i in t,s=i in r,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:n.bind(null,a),in:u.props.in,exit:Pc(a,"exit",e),enter:Pc(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:n.bind(null,a),in:!0,exit:Pc(a,"exit",e),enter:Pc(a,"enter",e)})}})),o}var Tc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Lc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Eu(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Su(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,Dc(n.children,(function(e){return I(e,{onExited:r.bind(null,e),in:!0,appear:Pc(e,"appear",n),enter:Pc(e,"enter",n),exit:Pc(e,"exit",n)})}))):Ic(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Dc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Gn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=qr(e,["component","childFactory"]),o=this.state.contextValue,i=Tc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(vc.Provider,{value:o},i):x.createElement(vc.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);Lc.propTypes={},Lc.defaultProps={component:"div",childFactory:function(e){return e}};var Mc=Lc;const qc=e=>e.scrollTop;function kc(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 Oc(e){return Tr("MuiPaper",e)}Lr("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 Nc=["className","component","elevation","square","variant"],_c=Js("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 Gn({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&&Gn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ss("#fff",tu(t.elevation))}, ${ss("#fff",tu(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Fc=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=qr(n,Nc),u=Gn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ar({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Oc,o)})(u);return _l.jsx(_c,Gn({as:o,ownerState:u,className:Yu(c.root,r),ref:t},s))}));var zc=Lr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jc=["center","classes","className"];let Hc,Bc,$c,Wc,Vc=e=>e;const Uc=Ea(Hc||(Hc=Vc`
|
|
33
33
|
0% {
|
|
34
34
|
transform: scale(0);
|
|
35
35
|
opacity: 0.1;
|
|
@@ -39,7 +39,7 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
39
39
|
transform: scale(1);
|
|
40
40
|
opacity: 0.3;
|
|
41
41
|
}
|
|
42
|
-
`)),
|
|
42
|
+
`)),Gc=Ea(Bc||(Bc=Vc`
|
|
43
43
|
0% {
|
|
44
44
|
opacity: 1;
|
|
45
45
|
}
|
|
@@ -47,7 +47,7 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
47
47
|
100% {
|
|
48
48
|
opacity: 0;
|
|
49
49
|
}
|
|
50
|
-
`)),
|
|
50
|
+
`)),Yc=Ea($c||($c=Vc`
|
|
51
51
|
0% {
|
|
52
52
|
transform: scale(1);
|
|
53
53
|
}
|
|
@@ -59,7 +59,7 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
59
59
|
100% {
|
|
60
60
|
transform: scale(1);
|
|
61
61
|
}
|
|
62
|
-
`)),
|
|
62
|
+
`)),Kc=Js("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Zc=Js((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Yu(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Yu(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),_l.jsx("span",{className:p,style:f,children:_l.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Wc||(Wc=Vc`
|
|
63
63
|
opacity: 0;
|
|
64
64
|
position: absolute;
|
|
65
65
|
|
|
@@ -102,4 +102,4 @@ function Hi(e,t){let r;return r=t?Fi(e).withConfig({displayName:t.label,shouldFo
|
|
|
102
102
|
animation-iteration-count: infinite;
|
|
103
103
|
animation-delay: 200ms;
|
|
104
104
|
}
|
|
105
|
-
`),Vu.rippleVisible,Xu,550,(({theme:e})=>e.transitions.easing.easeInOut),Vu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vu.child,Vu.childLeaving,Ju,550,(({theme:e})=>e.transitions.easing.easeInOut),Vu.childPulsate,Qu,(({theme:e})=>e.transitions.easing.easeInOut));var rc=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Ur(r,Wu),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Ja.jsx(tc,{classes:{ripple:Ql(o.ripple,Vu.ripple),rippleVisible:Ql(o.rippleVisible,Vu.rippleVisible),ripplePulsate:Ql(o.ripplePulsate,Vu.ripplePulsate),child:Ql(o.child,Vu.child),childLeaving:Ql(o.childLeaving,Vu.childLeaving),childPulsate:Ql(o.childPulsate,Vu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.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(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.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:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ja.jsx(ec,cr({className:Ql(Vu.root,o.root,i),ref:m},a,{children:Ja.jsx(Nu,{component:null,exit:!0,children:s})}))}));function nc(e){return Vr("MuiButtonBase",e)}var oc=Wr("MuiButtonBase",["root","disabled","focusVisible"]);const ic=["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"],ac=cl("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"},[`&.${oc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sc=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:D,onTouchStart:A,tabIndex:I=0,TouchRippleProps:q,touchRippleRef:P,type:T}=r,L=Ur(r,ic),M=y.useRef(null),O=y.useRef(null),k=Ir(O,P),{isFocusVisibleRef:_,onFocus:N,onBlur:F,ref:z}=Nr(),[j,H]=y.useState(!1);l&&j&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),M.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!l;function W(e,t,r=c){return Ar((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&O.current.pulsate()}),[u,d,j,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",w),Z=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),X=W("start",A),J=W("stop",R),Q=W("stop",D),ee=W("stop",(e=>{F(e),!1===_.current&&H(!1),f&&f(e)}),!1),te=Ar((e=>{M.current||(M.current=e.currentTarget),N(e),!0===_.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Ar((e=>{d&&!ne.current&&j&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Ar((e=>{d&&" "===e.key&&O.current&&j&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(L.href||L.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===T?"button":T,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Ir(t,z,M),ue=cr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=jr({root:["root",t&&"disabled",r&&"focusVisible"]},nc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ja.jsxs(ac,cr({as:ae,className:Ql(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:Z,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:l?-1:I,type:T},se,L,{children:[i,V?Ja.jsx(rc,cr({ref:k,center:o},q)):null]}))}));var lc=sc;function uc(e){return Vr("MuiTypography",e)}Wr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dc=cl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${yr(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>cr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),pc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mc=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTypography"}),n=(e=>fc[e]||e)(r.color),o=rs(cr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=pc}=o,f=Ur(o,cc),m=cr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||pc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return jr({root:["root",i,"inherit"!==e.align&&`align${yr(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},uc,a)})(m);return Ja.jsx(dc,cr({as:h,ref:t,ownerState:m,className:Ql(g.root,a)},f))}));var hc=mc;function gc(e){return"string"==typeof e}function bc(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function vc(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=vc(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function yc(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=vc(e))&&(n&&(n+=" "),n+=t);return n}function xc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Sc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ec(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ur(e,Sc),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=yc(null==o?void 0:o.className,null==n?void 0:n.className,i,null==r?void 0:r.className),t=cr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=cr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=bc(cr({},o,n)),s=xc(n),l=xc(o),u=t(a),c=yc(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=cr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=cr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(cr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||gc(e)?t:cr({},t,{ownerState:cr({},t.ownerState,r)})}(r,cr({},l,{ref:Ir(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Cc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Cc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Rc(){return!0}function Dc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=wc,isEnabled:a=Rc,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=Ir(t.ref,m),g=y.useRef(null);y.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!m.current)return;const e=Er(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&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!m.current)return;const e=Er(m.current),t=t=>{const{current:r}=m;if(null!==r)if(e.hasFocus()&&!n&&a()&&!l.current){if(!r.contains(e.activeElement)){if(t&&p.current!==t.target||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,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else r.focus()}}else l.current=!1},r=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ja.jsxs(y.Fragment,{children:[Ja.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Ja.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ac=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Ir(y.isValidElement(r)?r.ref:null,t);if(Rr((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Rr((()=>{if(i&&!o)return wr(t,i),()=>{wr(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return Ja.jsx(y.Fragment,{children:r})}return Ja.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})}));function Ic(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qc(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function Pc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Ic(e,o)}))}function Tc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Lc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Er(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Fr(Er(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${qc(n)+e}px`;const t=Er(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Er(n).body;else{const t=n.parentElement,r=Cr(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Mc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Ic(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Pc(t,e.mount,e.modalRef,n,!0);const o=Tc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Tc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Lc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Tc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ic(e.modalRef,t),Pc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ic(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Oc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Mc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=Ir(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Ar((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Er(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Ar((e=>{f.current=e,e&&(c&&w()?E():m.current&&Ic(m.current,x))})),D=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{D()}),[D]),y.useEffect((()=>{c?C():v&&i||D()}),[c,D,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=bc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=cr({},r,t);return cr({role:"presentation"},n,{onKeyDown:A(n),ref:h})},getBackdropProps:(e={})=>cr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:xr((()=>{b(!1),a&&a()}),l.props.onEnter),onExited:xr((()=>{b(!0),s&&s(),i&&D()}),l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const kc=["onChange","maxRows","minRows","style","value"];function _c(e){return parseInt(e,10)||0}const Nc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Fc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const zc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Ur(e,kc),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Ir(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=Cr(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,s=_c(r.paddingBottom)+_c(r.paddingTop),l=_c(r.borderBottomWidth)+_c(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=y.useCallback((()=>{const e=h();Fc(e)||m((t=>g(t,e)))}),[h]);y.useEffect((()=>{const e=Sr((()=>{p.current=0,u.current&&(()=>{const e=h();Fc(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const r=u.current,n=Cr(r);return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(r)),()=>{e.clear(),n.removeEventListener("resize",e),t&&t.disconnect()}})),Rr((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ja.jsxs(y.Fragment,{children:[Ja.jsx("textarea",cr({value:a,onChange:e=>{p.current=0,l||b(),r&&r(e)},ref:c,rows:o,style:cr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},s)),Ja.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:cr({},Nc,i,{paddingTop:0,paddingBottom:0})})]})}));function jc({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var Hc=y.createContext(void 0);function Bc(){return y.useContext(Hc)}function $c(e){return Ja.jsx(Qa,cr({},e,{defaultTheme:ol,themeId:Gr}))}function Vc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Wc(e,t=!1){return e&&(Vc(e.value)&&""!==e.value||t&&Vc(e.defaultValue)&&""!==e.defaultValue)}function Gc(e){return Vr("MuiInputBase",e)}var Uc=Wr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Yc=["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"],Kc=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${yr(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Zc=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Xc=cl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kc})((({theme:e,ownerState:t})=>cr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Uc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&cr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Jc=cl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=cr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return cr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Uc.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},[`&.${Uc.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"})})),Qc=Ja.jsx($c,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ed=y.forwardRef((function(e,t){var r;const n=al({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:D,onFocus:A,onKeyDown:I,onKeyUp:q,placeholder:P,readOnly:T,renderSuffix:L,rows:M,slotProps:O={},slots:k={},startAdornment:_,type:N="text",value:F}=n,z=Ur(n,Yc),j=null!=b.value?b.value:F,{current:H}=y.useRef(null!=j),B=y.useRef(),$=y.useCallback((e=>{}),[]),V=Ir(B,v,b.ref,$),[W,G]=y.useState(!1),U=Bc(),Y=jc({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:W,y.useEffect((()=>{!U&&d&&W&&(G(!1),w&&w())}),[U,d,W,w]);const K=U&&U.onFilled,Z=U&&U.onEmpty,X=y.useCallback((e=>{Wc(e)?K&&K():Z&&Z()}),[K,Z]);Rr((()=>{H&&X({value:j})}),[j,X,H]);y.useEffect((()=>{X(B.current)}),[]);let J=g,Q=b;E&&"input"===J&&(Q=cr(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:S},Q),J=zc);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=cr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:_,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return jr({root:["root",`color${yr(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gc,t)})(ee),re=k.root||l.Root||Xc,ne=O.root||u.root||{},oe=k.input||l.Input||Jc;return Q=cr({},Q,null!=(r=O.input)?r:u.input),Ja.jsxs(y.Fragment,{children:[!p&&Qc,Ja.jsxs(re,cr({},ne,!gc(re)&&{ownerState:cr({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),D&&D(e)}},z,{className:Ql(te.root,ne.className,s,T&&"MuiInputBase-readOnly"),children:[_,Ja.jsx(Hc.Provider,{value:null,children:Ja.jsx(oe,cr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:P,readOnly:T,required:Y.required,rows:M,value:j,onKeyDown:I,onKeyUp:q,type:N},Q,!gc(oe)&&{as:J,ownerState:cr({},ee,Q.ownerState)},{ref:V,className:Ql(te.input,Q.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(vr(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,L?L(cr({},Y,{startAdornment:_})):null]}))]})}));var td=ed;function rd(e){return Vr("MuiInput",e)}var nd=cr({},Uc,Wr("MuiInput",["root","underline","input"]));function od(e){return Vr("MuiOutlinedInput",e)}var id=cr({},Uc,Wr("MuiOutlinedInput",["root","notchedOutline","input"]));function ad(e){return Vr("MuiFilledInput",e)}var sd=cr({},Uc,Wr("MuiFilledInput",["root","underline","input"])),ld=function(e,t){function r(r,n){return Ja.jsx(ou,cr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ou.muiName,y.memo(y.forwardRef(r))}(Ja.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ud=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],cd={entering:{opacity:1},entered:{opacity:1}},dd=y.forwardRef((function(e,t){const r=il(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Tu}=e,v=Ur(e,ud),x=y.useRef(null),S=Ir(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Fu(e);const n=zu({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),D=E(m),A=E((e=>{const t=zu({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Ja.jsx(b,cr({appear:i,in:l,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,cr({style:cr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},cd[e],h,a.props.style),ref:S},t))}))}));var pd=dd;function fd(e){return Vr("MuiBackdrop",e)}Wr("MuiBackdrop",["root","invisible"]);const md=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hd=cl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>cr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gd=y.forwardRef((function(e,t){var r,n,o;const i=al({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=pd,transitionDuration:g}=i,b=Ur(i,md),v=cr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return jr({root:["root",r&&"invisible"]},fd,t)})(v),x=null!=(r=f.root)?r:c.root;return Ja.jsx(h,cr({in:p,timeout:g},b,{children:Ja.jsx(hd,cr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:Ql(y.root,s,null==x?void 0:x.className),ownerState:cr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var bd=gd;const vd=nl(),yd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Na);return y.forwardRef((function(e,a){const s=Ba(r),l=rs(e),{className:u,component:c="div"}=l,d=Ur(l,is);return Ja.jsx(i,cr({as:c,ref:a,className:os(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Gr,defaultTheme:vd,defaultClassName:"MuiBox-root",generateClassName:Br.generate});var xd=yd;function Sd(e){return Vr("MuiButton",e)}var Ed=Wr("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 Cd=y.createContext({});const wd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rd=e=>cr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Dd=cl(lc,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${yr(r.color)}`],t[`size${yr(r.size)}`],t[`${r.variant}Size${yr(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return cr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":cr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xs(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})`:xs(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})`:xs(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ed.focusVisible}`]:cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ed.disabled}`]:cr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${xs(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ed.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ed.disabled}`]:{boxShadow:"none"}})),Ad=cl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${yr(r.size)}`]]}})((({ownerState:e})=>cr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rd(e)))),Id=cl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${yr(r.size)}`]]}})((({ownerState:e})=>cr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rd(e)))),qd=y.forwardRef((function(e,t){const r=y.useContext(Cd),n=al({props:zr(r,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:s,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:c=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:b="text"}=n,v=Ur(n,wd),x=cr({},n,{color:i,component:a,disabled:l,disableElevation:u,disableFocusRipple:c,fullWidth:f,size:m,type:g,variant:b}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return cr({},a,jr({root:["root",i,`${i}${yr(t)}`,`size${yr(o)}`,`${i}Size${yr(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${yr(o)}`],endIcon:["endIcon",`iconSize${yr(o)}`]},Sd,a))})(x),E=h&&Ja.jsx(Ad,{className:S.startIcon,ownerState:x,children:h}),C=d&&Ja.jsx(Id,{className:S.endIcon,ownerState:x,children:d});return Ja.jsxs(Dd,cr({ownerState:x,className:Ql(r.className,S.root,s),component:a,disabled:l,focusRipple:!c,focusVisibleClassName:Ql(S.focusVisible,p),ref:t,type:g},v,{classes:S,children:[E,o,C]}))}));var Pd=qd;function Td(e){return Vr("MuiModal",e)}Wr("MuiModal",["root","hidden","backdrop"]);const Ld=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],Md=cl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>cr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Od=cl(bd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kd=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=al({name:"MuiModal",props:e}),{BackdropComponent:u=Od,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:D=!1,onBackdropClick:A,open:I,slotProps:q,slots:P}=l,T=Ur(l,Ld),L=cr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:D}),{getRootProps:M,getBackdropProps:O,getTransitionProps:k,portalRef:_,isTopModal:N,exited:F,hasTransition:z}=Oc(cr({},L,{rootRef:t})),j=cr({},L,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return jr({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Td,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:Md,V=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==q?void 0:q.root)?a:b.root,G=null!=(s=null==q?void 0:q.backdrop)?s:b.backdrop,U=Ec({elementType:$,externalSlotProps:W,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:h},ownerState:j,className:Ql(d,null==W?void 0:W.className,null==H?void 0:H.root,!j.open&&j.exited&&(null==H?void 0:H.hidden))}),Y=Ec({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>O(cr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ql(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:j});return D||I||z&&!F?Ja.jsx(Ac,{ref:_,container:m,disablePortal:E,children:Ja.jsxs($,cr({},U,{children:[!R&&u?Ja.jsx(V,cr({},Y)):null,Ja.jsx(Dc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,B)})]}))}):null}));var _d=kd;function Nd(e){return Vr("MuiDivider",e)}var Fd=Wr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const zd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],jd=cl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>cr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:xs(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>cr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>cr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>cr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>cr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hd=cl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>cr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Bd=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Ur(r,zd),m=cr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return jr({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Nd,n)})(m);return Ja.jsx(jd,cr({as:a,className:Ql(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ja.jsx(Hd,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bd.muiSkipListHighlight=!0;var $d=Bd;const Vd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Wd=cl(Xc,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return cr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${sd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${sd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${sd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sd.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(.${sd.disabled}, .${sd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${sd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&cr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Gd=cl(Jc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zc})((({theme:e,ownerState:t})=>cr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Ud=y.forwardRef((function(e,t){var r,n,o,i;const a=al({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Ur(a,Vd),g=cr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return cr({},t,jr({root:["root",!r&&"underline"],input:["input"]},ad,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?fr(null!=p?p:l,v):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Wd,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Gd;return Ja.jsx(td,cr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Ud.muiName="Input";var Yd=Ud;const Kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zd(e){return`scale(${e}, ${e**2})`}const Xd={entering:{opacity:1,transform:Zd(1)},entered:{opacity:1,transform:"none"}},Jd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qd=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Tu}=e,g=Ur(e,Kd),b=y.useRef(),v=y.useRef(),x=il(),S=y.useRef(null),E=Ir(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Fu(e);const{duration:r,delay:n,easing:o}=zu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Jd?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),D=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=zu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Jd?o:.666*o,delay:Jd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Zd(.75),c&&c(e)})),q=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ja.jsx(h,cr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:D,onEntering:w,onExit:I,onExited:q,onExiting:A,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,cr({style:cr({opacity:0,transform:Zd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xd[e],f,o.props.style),ref:E},t))}))}));Qd.muiSupportAuto=!0;var ep=Qd;const tp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rp=cl(Xc,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),cr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${nd.disabled}, .${nd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${nd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),np=cl(Jc,{name:"MuiInput",slot:"Input",overridesResolver:Zc})({}),op=y.forwardRef((function(e,t){var r,n,o,i;const a=al({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Ur(a,tp),b=(e=>{const{classes:t,disableUnderline:r}=e;return cr({},t,jr({root:["root",!r&&"underline"],input:["input"]},rd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?fr(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:rp,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:np;return Ja.jsx(td,cr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));op.muiName="Input";var ip=op;var ap=y.createContext({});function sp(e){return Vr("MuiList",e)}Wr("MuiList",["root","padding","dense","subheader"]);const lp=["children","className","component","dense","disablePadding","subheader"],up=cl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>cr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var cp=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Ur(r,lp),c=y.useMemo((()=>({dense:a})),[a]),d=cr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return jr({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},sp,t)})(d);return Ja.jsx(ap.Provider,{value:c,children:Ja.jsxs(up,cr({as:i,className:Ql(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function dp(e){return Vr("MuiListItemIcon",e)}var pp=Wr("MuiListItemIcon",["root","alignItemsFlexStart"]);const fp=["className"],mp=cl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>cr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var hp=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Ur(r,fp),i=cr({},r,{alignItems:y.useContext(ap).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return jr({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dp,r)})(i);return Ja.jsx(mp,cr({className:Ql(a.root,n),ownerState:i,ref:t},o))}));var gp=Wr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const bp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function xp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Sp(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&xp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}var Ep=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Ur(e,bp),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rr((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Fr(Er(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Ir(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return Ja.jsx(cp,cr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Er(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Sp(t,n,l,s,vp);else if("ArrowUp"===r)e.preventDefault(),Sp(t,n,l,s,yp);else if("Home"===r)e.preventDefault(),Sp(t,null,l,s,vp);else if("End"===r)e.preventDefault(),Sp(t,null,l,s,yp);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&xp(n,o);o.previousKeyMatched&&(l||Sp(t,n,!1,s,vp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Cp(e){return Vr("MuiPopover",e)}Wr("MuiPopover",["root","paper"]);const wp=["onEntering"],Rp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],Dp=["slotProps"];function Ap(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ip(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function qp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Pp(e){return"function"==typeof e?e():e}const Tp=cl(_d,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lp=cl($u,{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 Mp=y.forwardRef((function(e,t){var r,n,o;const i=al({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ep,transitionDuration:C="auto",TransitionProps:{onEntering:w}={}}=i,R=Ur(i.TransitionProps,wp),D=Ur(i,Rp),A=null!=(r=null==x?void 0:x.paper)?r:b,I=y.useRef(),q=Ir(I,A.ref),P=cr({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:R}),T=(e=>{const{classes:t}=e;return jr({root:["root"],paper:["paper"]},Cp,t)})(P),L=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Pp(s),t=(e&&1===e.nodeType?e:Er(I.current).body).getBoundingClientRect();return{top:t.top+Ap(t,l.vertical),left:t.left+Ip(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),M=y.useCallback((e=>({vertical:Ap(e,S.vertical),horizontal:Ip(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===c)return{top:null,left:null,transformOrigin:qp(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Cr(Pp(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(o<h){const e=o-h;o-=e,r.vertical+=e}else if(a>d){const e=a-d;o-=e,r.vertical+=e}if(i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:qp(r)}}),[s,c,L,M,h]),[k,_]=y.useState(g),N=y.useCallback((()=>{const e=I.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[O]);y.useEffect((()=>{g&&N()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{N()}}:null),[g,N]),y.useEffect((()=>{if(!g)return;const e=Sr((()=>{N()})),t=Cr(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,N]);let F=C;"auto"!==C||E.muiSupportAuto||(F=void 0);const z=f||(s?Er(Pp(s)).body:void 0),j=null!=(n=null==v?void 0:v.root)?n:Tp,H=null!=(o=null==v?void 0:v.paper)?o:Lp,B=Ec({elementType:H,externalSlotProps:cr({},A,{style:k?A.style:cr({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:q},ownerState:P,className:Ql(T.paper,null==A?void 0:A.className)}),$=Ec({elementType:j,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:Ql(T.root,p)}),{slotProps:V}=$,W=Ur($,Dp);return Ja.jsx(j,cr({},W,!gc(j)&&{slotProps:V},{children:Ja.jsx(E,cr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),N()},onExited:()=>{_(!1)},timeout:F},R,{children:Ja.jsx(H,cr({},B,{children:d}))}))}))}));function Op(e){return Vr("MuiMenu",e)}Wr("MuiMenu",["root","paper","list"]);const kp=["onEntering"],_p=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Np={vertical:"top",horizontal:"right"},Fp={vertical:"top",horizontal:"left"},zp=cl(Mp,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jp=cl(Lp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hp=cl(Ep,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Bp=y.forwardRef((function(e,t){var r,n;const o=al({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Ur(o.TransitionProps,kp),S=Ur(o,_p),E=il(),C="rtl"===E.direction,w=cr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return jr({root:["root"],paper:["paper"],list:["list"]},Op,t)})(w),D=i&&!l&&d,A=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const q=null!=(r=b.paper)?r:jp,P=null!=(n=v.paper)?n:p,T=Ec({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,s]}),L=Ec({elementType:q,externalSlotProps:P,ownerState:w,className:R.paper});return Ja.jsx(zp,cr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Np:Fp,slots:{paper:q,root:b.root},slotProps:{root:T,paper:L},open:d,ref:t,transitionDuration:m,TransitionProps:cr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Ja.jsx(Hp,cr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:D,variant:g},u,{className:Ql(R.list,u.className),children:a}))}))}));function $p(e){return Vr("MuiMenuItem",e)}var Vp=Wr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Wp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gp=cl(lc,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>cr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xs(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})`:xs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fd.inset}`]:{marginLeft:52},[`& .${gp.root}`]:{marginTop:0,marginBottom:0},[`& .${gp.inset}`]:{paddingLeft:36},[`& .${pp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&cr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pp.root} svg`]:{fontSize:"1.25rem"}}))));var Up=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Ur(r,Wp),f=y.useContext(ap),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);Rr((()=>{n&&h.current&&h.current.focus()}),[n]);const g=cr({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return cr({},a,jr({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},$p,a))})(r),v=Ir(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Ja.jsx(ap.Provider,{value:m,children:Ja.jsx(Gp,cr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Ql(b.focusVisible,l),className:Ql(b.root,d)},p,{ownerState:g,classes:b}))})}));function Yp(e){return Vr("MuiNativeSelect",e)}var Kp=Wr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Zp=["className","disabled","error","IconComponent","inputRef","variant"],Xp=({ownerState:e,theme:t})=>cr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":cr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Kp.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}}),Jp=cl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:sl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Kp.multiple}`]:t.multiple}]}})(Xp),Qp=({ownerState:e,theme:t})=>cr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Kp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ef=cl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${yr(r.variant)}`],r.open&&t.iconOpen]}})(Qp);var tf,rf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Ur(e,Zp),u=cr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return jr({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${yr(r)}`,i&&"iconOpen",n&&"disabled"]},Yp,t)})(u);return Ja.jsxs(y.Fragment,{children:[Ja.jsx(Jp,cr({ownerState:u,className:Ql(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Ja.jsx(ef,{as:i,ownerState:u,className:c.icon})]})}));const nf=["children","classes","className","label","notched"],of=cl("fieldset")({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%"}),af=cl("legend")((({ownerState:e,theme:t})=>cr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&cr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const sf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lf=cl(Xc,{shouldForwardProp:e=>sl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Kc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return cr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${id.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${id.focused} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${id.error} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${id.disabled} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&cr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),uf=cl((function(e){const{className:t,label:r,notched:n}=e,o=Ur(e,nf),i=null!=r&&""!==r,a=cr({},e,{notched:n,withLabel:i});return Ja.jsx(of,cr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ja.jsx(af,{ownerState:a,children:i?Ja.jsx("span",{children:r}):tf||(tf=Ja.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}})),cf=cl(Jc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zc})((({theme:e,ownerState:t})=>cr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),df=y.forwardRef((function(e,t){var r,n,o,i,a;const s=al({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=Ur(s,sf),b=(e=>{const{classes:t}=e;return cr({},t,jr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},od,t))})(s),v=Bc(),x=jc({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=cr({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:l.Root)?r:lf,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:cf;return Ja.jsx(td,cr({slots:{root:E,input:C},renderSuffix:e=>Ja.jsx(uf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ja.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:cr({},b,{notchedOutline:null})}))}));df.muiName="Input";var pf=df;function ff(e){return Vr("MuiSelect",e)}var mf,hf=Wr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const gf=["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"],bf=cl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hf.select}`]:t.select},{[`&.${hf.select}`]:t[r.variant]},{[`&.${hf.error}`]:t.error},{[`&.${hf.multiple}`]:t.multiple}]}})(Xp,{[`&.${hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),vf=cl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${yr(r.variant)}`],r.open&&t.iconOpen]}})(Qp),yf=cl("input",{shouldForwardProp:e=>ll(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 xf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Sf(e){return null==e||"string"==typeof e&&!e.trim()}const Ef=y.forwardRef((function(e,t){const{"aria-describedby":r,"aria-label":n,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:d,error:p=!1,IconComponent:f,inputRef:m,labelId:h,MenuProps:g={},multiple:b,name:v,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:D,renderValue:A,SelectDisplayProps:I={},tabIndex:q,value:P,variant:T="standard"}=e,L=Ur(e,gf),[M,O]=Dr({controlled:P,default:u,name:"Select"}),[k,_]=Dr({controlled:R,default:l,name:"Select"}),N=y.useRef(null),F=y.useRef(null),[z,j]=y.useState(null),{current:H}=y.useRef(null!=R),[B,$]=y.useState(),V=Ir(t,m),W=y.useCallback((e=>{F.current=e,e&&j(e)}),[]),G=null==z?void 0:z.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{F.current.focus()},node:N.current,value:M})),[M]),y.useEffect((()=>{l&&k&&z&&!H&&($(i?null:G.clientWidth),F.current.focus())}),[z,i]),y.useEffect((()=>{o&&F.current.focus()}),[o]),y.useEffect((()=>{if(!h)return;const e=Er(F.current).getElementById(h);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[h]);const U=(e,t)=>{e?w&&w(t):E&&E(t),H||($(i?null:G.clientWidth),_(e))},Y=y.Children.toArray(a),K=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==r&&(O(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:v}}),S(o,e)}b||U(!1,t)}},Z=null!==z&&k;let X,J;delete L["aria-invalid"];const Q=[];let ee=!1;(Wc({value:M})||d)&&(A?X=A(M):ee=!0);const te=Y.map((e=>{if(!y.isValidElement(e))return null;let t;if(b){if(!Array.isArray(M))throw new Error(vr(2));t=M.some((t=>xf(t,e.props.value))),t&&ee&&Q.push(e.props.children)}else t=xf(M,e.props.value),t&&ee&&(J=e.props.children);return y.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&&(X=b?0===Q.length?null:Q.reduce(((e,t,r)=>(e.push(t),r<Q.length-1&&e.push(", "),e)),[]):J);let re,ne=B;!i&&H&&z&&(ne=G.clientWidth),re=void 0!==q?q:c?null:0;const oe=I.id||(v?`mui-component-select-${v}`:void 0),ie=cr({},e,{variant:T,value:M,open:Z,error:p}),ae=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return jr({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${yr(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},ff,t)})(ie);return Ja.jsxs(y.Fragment,{children:[Ja.jsx(bf,cr({ref:W,tabIndex:re,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[h,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:c||D?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!Z&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:v}}),x(e))},onFocus:C},I,{ownerState:ie,className:Ql(I.className,ae.select,s),id:oe,children:Sf(X)?mf||(mf=Ja.jsx("span",{className:"notranslate",children:""})):X})),Ja.jsx(yf,cr({"aria-invalid":p,value:Array.isArray(M)?M.join(","):M,name:v,ref:N,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:c,className:ae.nativeInput,autoFocus:o,ownerState:ie},L)),Ja.jsx(vf,{as:f,className:ae.icon,ownerState:ie}),Ja.jsx(Bp,cr({id:`menu-${v||""}`,anchorEl:G,open:Z,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:cr({"aria-labelledby":h,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:cr({},g.PaperProps,{style:cr({minWidth:ne},null!=g.PaperProps?g.PaperProps.style:null)}),children:te}))]})}));var Cf=Ef;const wf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Rf=["root"],Df={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>sl(e)&&"variant"!==e,slot:"Root"},Af=cl(ip,Df)(""),If=cl(pf,Df)(""),qf=cl(Yd,Df)(""),Pf=y.forwardRef((function(e,t){const r=al({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=ld,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Ur(r,wf),D=b?rf:Cf,A=jc({props:r,muiFormControl:Bc(),states:["variant","error"]}),I=A.variant||w,q=cr({},r,{variant:I,classes:i}),P=(e=>{const{classes:t}=e;return t})(q),T=Ur(P,Rf),L=d||{standard:Ja.jsx(Af,{ownerState:q}),outlined:Ja.jsx(If,{label:f,ownerState:q}),filled:Ja.jsx(qf,{ownerState:q})}[I],M=Ir(t,L.ref);return Ja.jsx(y.Fragment,{children:y.cloneElement(L,cr({inputComponent:D,inputProps:cr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:cr({id:c},C)},p,{classes:p?fr(T,p.classes):T},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:M,className:Ql(L.props.className,a,P.root)},!d&&{variant:I},R))})}));Pf.muiName="Select";var Tf=Pf;var Lf=y.createContext();function Mf(e){return Vr("MuiTable",e)}Wr("MuiTable",["root","stickyHeader"]);const Of=["className","component","padding","size","stickyHeader"],kf=cl("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>cr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":cr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),_f="table",Nf=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTable"}),{className:n,component:o=_f,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Ur(r,Of),u=cr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return jr({root:["root",r&&"stickyHeader"]},Mf,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Ja.jsx(Lf.Provider,{value:d,children:Ja.jsx(kf,cr({as:o,role:o===_f?null:"table",ref:t,className:Ql(c.root,n),ownerState:u},l))})}));var Ff=Nf;var zf=y.createContext();function jf(e){return Vr("MuiTableBody",e)}Wr("MuiTableBody",["root"]);const Hf=["className","component"],Bf=cl("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$f={variant:"body"},Vf="tbody";var Wf=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTableBody"}),{className:n,component:o=Vf}=r,i=Ur(r,Hf),a=cr({},r,{component:o}),s=(e=>{const{classes:t}=e;return jr({root:["root"]},jf,t)})(a);return Ja.jsx(zf.Provider,{value:$f,children:Ja.jsx(Bf,cr({className:Ql(s.root,n),as:o,ref:t,role:o===Vf?null:"rowgroup",ownerState:a},i))})}));function Gf(e){return Vr("MuiTableCell",e)}var Uf=Wr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Yf=["align","className","component","padding","scope","size","sortDirection","variant"],Kf=cl("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${yr(r.size)}`],"normal"!==r.padding&&t[`padding${yr(r.padding)}`],"inherit"!==r.align&&t[`align${yr(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>cr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Es(xs(e.palette.divider,1),.88):Ss(xs(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Uf.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Zf=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Ur(r,Yf),p=y.useContext(Lf),f=y.useContext(zf),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=cr({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return jr({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${yr(n)}`,"normal"!==o&&`padding${yr(o)}`,`size${yr(i)}`]},Gf,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Ja.jsx(Kf,cr({as:h,ref:t,className:Ql(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var Xf=Zf;function Jf(e){return Vr("MuiTableContainer",e)}Wr("MuiTableContainer",["root"]);const Qf=["className","component"],em=cl("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var tm=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Ur(r,Qf),a=cr({},r,{component:o}),s=(e=>{const{classes:t}=e;return jr({root:["root"]},Jf,t)})(a);return Ja.jsx(em,cr({ref:t,as:o,className:Ql(s.root,n),ownerState:a},i))}));function rm(e){return Vr("MuiTableHead",e)}Wr("MuiTableHead",["root"]);const nm=["className","component"],om=cl("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),im={variant:"head"},am="thead";var sm=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTableHead"}),{className:n,component:o=am}=r,i=Ur(r,nm),a=cr({},r,{component:o}),s=(e=>{const{classes:t}=e;return jr({root:["root"]},rm,t)})(a);return Ja.jsx(zf.Provider,{value:im,children:Ja.jsx(om,cr({as:o,className:Ql(s.root,n),ref:t,role:o===am?null:"rowgroup",ownerState:a},i))})}));function lm(e){return Vr("MuiTableRow",e)}var um=Wr("MuiTableRow",["root","selected","hover","head","footer"]);const cm=["className","component","hover","selected"],dm=cl("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${um.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xs(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),pm="tr",fm=y.forwardRef((function(e,t){const r=al({props:e,name:"MuiTableRow"}),{className:n,component:o=pm,hover:i=!1,selected:a=!1}=r,s=Ur(r,cm),l=y.useContext(zf),u=cr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return jr({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},lm,t)})(u);return Ja.jsx(dm,cr({as:o,ref:t,className:Ql(c.root,n),role:o===pm?null:"row",ownerState:u},s))}));var mm=fm,hm=(e={})=>x.createElement(Gl,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:ql.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),gm=({className:e})=>x.createElement(Gl,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))),bm=({className:e})=>x.createElement(Gl,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))),vm=({className:e})=>x.createElement(Gl,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{fill:"currentColor",d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"})));const ym={MuiAccordion:{styleOverrides:{root:{backgroundColor:ql.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ql.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement($l,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ql.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ql.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ql.MISC_FOCUS_BORDER}`,borderRadius:Ol,backgroundColor:ql.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 ${ql.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ql.WHITE,color:ql.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:Ol},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ql.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ql.GREYSCALE_0_15,backgroundColor:ql.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ql.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ql.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ql.GREEN_PALE},"&:active":{backgroundColor:ql.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ql.GREEN_PALE,boxShadow:`0 0 0 3px ${xs(ql.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ql.BLUE_PALE},"&:active":{backgroundColor:ql.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ql.BLUE_PALE,boxShadow:`0 0 0 3px ${xs(ql.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:Ol,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ql.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ql.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ql.GREYSCALE_0_15,backgroundColor:ql.GREYSCALE_100_60,"&:active":{backgroundColor:ql.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ql.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ql.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ql.PURPLE,"&.Mui-focusVisible":{borderColor:ql.PURPLE,boxShadow:`0 0 0 3px ${xs(ql.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ql.GREEN,"&.Mui-focusVisible":{borderColor:ql.GREEN,boxShadow:`0 0 0 3px ${xs(ql.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ql.BLUE,"&.Mui-focusVisible":{borderColor:ql.BLUE,boxShadow:`0 0 0 3px ${xs(ql.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ql.ORANGE,"&.Mui-focusVisible":{borderColor:ql.ORANGE,boxShadow:`0 0 0 3px ${xs(ql.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ql.RED,"&.Mui-focusVisible":{borderColor:ql.RED,boxShadow:`0 0 0 3px ${xs(ql.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ql.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ql.PURPLE_PALE},"&:active":{backgroundColor:ql.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ql.PURPLE_PALE,boxShadow:`0 0 0 3px ${xs(ql.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ql.GREEN_PALE},"&:active":{backgroundColor:ql.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ql.GREEN_PALE,boxShadow:`0 0 0 3px ${xs(ql.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ql.BLUE_PALE},"&:active":{backgroundColor:ql.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ql.BLUE_PALE,boxShadow:`0 0 0 3px ${xs(ql.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ql.ORANGE_PALE},"&:active":{backgroundColor:ql.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ql.ORANGE_PALE,boxShadow:`0 0 0 3px ${xs(ql.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ql.RED_PALE},"&:active":{backgroundColor:ql.RED_DARK},"&.Mui-focusVisible":{borderColor:ql.RED_PALE,boxShadow:`0 0 0 3px ${xs(ql.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:ql.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ql.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ol,boxShadow:`inset 0 0 0 2px ${ql.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Wl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Pl,borderRadius:Ol,color:ql.TEXT_PRIMARY,backgroundColor:ql.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ql.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ql.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:ql.GREYSCALE_0_05,color:ql.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ql.GREEN,borderColor:ql.GREEN},"&.MuiChip-outlinedInfo":{color:ql.BLUE,borderColor:ql.BLUE},"&.MuiChip-outlinedWarning":{color:ql.ORANGE,borderColor:ql.ORANGE},"&.MuiChip-outlinedError":{color:ql.RED,borderColor:ql.RED}},outlined:{border:`solid 1px ${ql.GREYSCALE_0_15}`,backgroundColor:ql.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ol,boxShadow:"none",backgroundColor:ql.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ql.GREEN,borderColor:ql.GREEN},outlinedSecondary:{color:ql.BLUE,borderColor:ql.BLUE},label:{fontFamily:zl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Wl,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement($l,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ol},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Tl,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ql.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ql.GREYSCALE_0_10},"&:hover":{backgroundColor:ql.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Ol,border:`solid 1px ${ql.GREYSCALE_0_15}`,color:ql.GREYSCALE_0_60,marginRight:0,width:Ml,height:Ml},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ql.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ol,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ql.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Tl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Pl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ql.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ql.GREYSCALE_25,fontSize:Pl,fontFamily:zl.FONT_FAMILY,fontWeight:Nl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ql.TEXT_PRIMARY},"&.Mui-error":{color:ql.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ql.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_l,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ql.TEXT_SECONDARY,content:"'(required)'",fontWeight:_l,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Tl,lineHeight:"16px",backgroundColor:ql.WHITE,borderRadius:Ol,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ql.GREYSCALE_0_05}`,borderColor:ql.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ql.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ql.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ql.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ql.RED}`,boxShadow:`0px 0px 0px 1px ${ql.RED}, inset 0 2px 0 0 ${ql.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ql.GREYSCALE_0_10}`,borderColor:ql.GREYSCALE_0_10,backgroundColor:ql.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ql.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ql.GREYSCALE_0_15,borderRadius:Ol,boxShadow:`inset 0 2px 0 0 ${ql.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement($l,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ql.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ql.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ql.GREYSCALE_0_03},"&:active":{backgroundColor:ql.GREYSCALE_0_10},"&:focus":{backgroundColor:ql.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ql.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ql.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ql.GREYSCALE_0_30,"&:hover":{backgroundColor:ql.GREYSCALE_0_0,borderColor:ql.GREYSCALE_0_15},"& ~svg":{color:ql.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ql.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ol}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ql.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ql.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ql.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Tl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Pl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Pl,fontWeight:Nl,color:ql.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ql.GREYSCALE_0_15}, 0px 0px 0px 1px ${ql.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Kl,null),checkedIcon:x.createElement(Zl,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ql.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ql.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ql.GREEN_PALE,boxShadow:`0 0 0 3px ${xs(ql.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ql.BLUE_PALE,boxShadow:`0 0 0 3px ${xs(ql.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ql.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ql.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(hm,null),checkedIcon:x.createElement(Ul,null),indeterminateIcon:x.createElement(Yl,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ol,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ql.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ql.GREYSCALE_0_55,color:ql.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:ql.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ql.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ql.GREYSCALE_0_55,"&:hover":{color:ql.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:gm,columnSortedDescendingIcon:bm,columnMenuSortAscendingIcon:gm,columnMenuSortDescendingIcon:bm,quickFilterIcon:({className:e})=>x.createElement(vm,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:ql.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:ql.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${ql.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${ql.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:ql.GREYSCALE_98},withBorderColor:{borderColor:ql.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:ql.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:ql.GREYSCALE_0_05,"&:hover":{backgroundColor:ql.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Ll}},filterIcon:{fontSize:Ll},pinnedColumnHeaders:{backgroundColor:ql.GREYSCALE_98},pinnedColumns:{backgroundColor:ql.WHITE}}},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:ql.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ql.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Tl,color:ql.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nl},secondary:{fontSize:Pl,color:ql.GREYSCALE_45,fontWeight:_l,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Tl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:ql.GREYSCALE_0_03},"&:active":{backgroundColor:ql.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Tl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ql.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Pl,borderBottom:`solid 1px ${ql.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Tl,color:ql.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ql.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ql.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ql.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:ql.RED}}},"&.Mui-focusVisible":{backgroundColor:ql.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:ql.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:ql.GREEN,height:"24px","&.Mui-disabled":{color:ql.GREYSCALE_0_15}},rail:{backgroundColor:ql.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ql.GREYSCALE_0_05}`,borderRadius:Ol,boxShadow:`inset 0px 0px 0px 1px ${ql.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ql.GREYSCALE_0_05}`,borderRadius:Ol},thumb:{height:"16px",width:"16px",borderRadius:Ol,backgroundColor:ql.WHITE,boxShadow:`0px 1px 2px 0px ${ql.GREYSCALE_0_15}, 0px 0px 0px 1px ${ql.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ol,boxShadow:`0 2px 4px 0 ${ql.GREYSCALE_0_30}, 0 0 0 1px ${ql.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ql.GREYSCALE_0_15}, 0 0 0 1px ${ql.GREYSCALE_0_06}, 0 0 0 2px ${ql.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ql.GREYSCALE_0_15}, 0 0 0 1px ${ql.GREYSCALE_0_06}, 0 0 0 2px ${ql.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ql.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ql.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ql.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ql.GREYSCALE_0_15},markLabel:{color:ql.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ql.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ql.WHITE,color:ql.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:ql.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:ql.GREEN_PALE,boxShadow:`0 0 0 3px ${xs(ql.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ql.BLUE_PALE,boxShadow:`0 0 0 3px ${xs(ql.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ql.GREYSCALE_0_15,borderRadius:Ol},thumb:{height:"16px",width:"16px",borderRadius:Ol,backgroundColor:ql.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:Tl,fontWeight:Nl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ql.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ql.MISC_FOCUS_BORDER}`,backgroundColor:ql.GREYSCALE_0_03,borderRadius:Ol},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ql.GREYSCALE_25,"&.Mui-selected":{color:ql.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Tl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${ql.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${ql.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ql.GREYSCALE_85}`,borderRight:`1px solid ${ql.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nl,backgroundColor:ql.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:ql.GREYSCALE_98,borderBottom:`1px solid ${ql.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ql.GREYSCALE_85}`,borderTop:`1px solid ${ql.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ql.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ql.GREYSCALE_0_05,"&:hover":{backgroundColor:ql.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ql.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Xl,{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 ${ql.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Tl,borderRadius:Ol,padding:"7px 16px",border:`1px solid ${ql.GREYSCALE_0_15}`,backgroundColor:ql.GREYSCALE_100_60,color:ql.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ql.GREYSCALE_0_10,border:`1px solid ${ql.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ql.GREYSCALE_0_03,border:`1px solid ${ql.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ql.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ql.MISC_FOCUS_BORDER}`,border:`1px solid ${ql.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ql.GREYSCALE_25,backgroundColor:ql.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ql.GREYSCALE_0_10,border:`1px solid ${ql.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Pl,height:24,width:24,padding:7},sizeLarge:{fontSize:Ll,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Tl,borderRadius:Ol}}},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:ql.GREYSCALE_20},tooltip:{backgroundColor:ql.GREYSCALE_20,fontSize:Pl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var xm=e=>ym;const Sm={mode:"light",primary:{light:ql.GREEN_PALE,main:ql.GREEN,dark:ql.GREEN_DARK,contrastText:ql.WHITE},secondary:{light:ql.BLUE_PALE,main:ql.BLUE,dark:ql.BLUE_DARK,contrastText:ql.WHITE},error:{light:ql.RED_PALE,main:ql.RED,dark:ql.RED_DARK,contrastText:ql.WHITE},warning:{light:ql.ORANGE_PALE,main:ql.ORANGE,dark:ql.ORANGE_DARK,contrastText:ql.WHITE},success:{light:ql.GREEN_PALE,main:ql.GREEN,dark:ql.GREEN_DARK,contrastText:ql.WHITE},info:{light:ql.BLUE_PALE,main:ql.BLUE,dark:ql.BLUE_DARK,contrastText:ql.WHITE},text:{primary:ql.TEXT_PRIMARY,secondary:ql.TEXT_SECONDARY,disabled:ql.GREYSCALE_0_30},action:{hover:ql.GREYSCALE_0_03,hoverOpacity:.05,selected:ql.GREYSCALE_0_05},amethyst:{main:ql.PURPLE,light:ql.PURPLE_PALE,dark:ql.PURPLE_DARK,contrastText:ql.WHITE},background:{paper:ql.WHITE,default:ql.GREYSCALE_95},divider:ql.GREYSCALE_0_15},Em=e=>({components:xm(),palette:Sm,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:Tl,fontWeightLight:kl,fontWeightRegular:_l,fontWeightMedium:Nl,fontWeightBold:Fl,htmlFontSize:Tl,fontFamily:zl.FONT_FAMILY,button:{fontWeight:Nl,fontSize:Tl,textTransform:"none"},body1:{fontSize:Ll,lineHeight:"24px"},body2:{fontSize:Tl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ml,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ll,fontWeight:Nl,lineHeight:"16px"},h6:{fontSize:Tl,fontWeight:Nl,lineHeight:"16px"},caption:{color:ql.TEXT_SECONDARY},subtitle1:{fontSize:Tl,color:ql.TEXT_SECONDARY},subtitle2:{fontSize:Pl,color:ql.TEXT_SECONDARY}},shape:{borderRadius:Ol}}),Cm={...Il,MISC_FOCUS_BORDER:ql.MISC_FOCUS_BORDER},wm=(e="light")=>Em();var Rm=wm().palette,Dm={TEXT:Rm.text.primary,DISABLED:Rm.text.disabled,HOVER:Rm.action.hover,WHITE:Cm.GREYSCALE_100,BORDER_LIGHT:Cm.GREYSCALE_90,BORDER_MEDIUM:Cm.GREYSCALE_85,BORDER_HEAVY:Cm.GREYSCALE_50,DARK_MODE_TEXT:Cm.GREYSCALE_95,DARK_MODE_BORDER:Cm.GREYSCALE_95,DARK_MODE_DISABLED:Cm.GREYSCALE_70,DARK_MODE_BACKGROUND:Cm.GREYSCALE_20},Am={SELECTED:{color:Cm.GREYSCALE_100,background:Rm.primary.light,selectedCellClass:Q.SELECTED},POSSIBLE:{color:Rm.text.primary,background:Cm.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Im=4/3,qm="12px",Pm={height:"auto",fontSize:qm,lineHeight:"unset",padding:"".concat(4,"px"),borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Tm=25e4;function Lm(e,t,r){var n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){var i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function Mm(e,t,r){var n=E((function(){var n=document.createElement("canvas").getContext("2d");n.font="".concat(r?"600":""," ").concat(e||""," ").concat(t);var o=Pt(n.measureText.bind(n)),i=function(e){return+o(e).width.toFixed(2)},a=Pt((function(e){var t=e.text,r=e.maxWidth,n=e.isNumeric;if(void 0!==n&&n)return 1;var o=0,a=t;do{o+=1,a=Lm(a,r,i)}while(null!==a&&o<3);return o}),(function(e){var t=e.text,r=e.maxWidth,n=e.isNumeric;return"".concat(t,"-").concat(r,"-").concat(n)}));return{measureText:function(e){return o(e).width},estimateWidth:function(e){return o("N").width*e},estimateLineCount:a}}),[e,t,r]);return{estimateWidth:n.estimateWidth,measureText:n.measureText,estimateLineCount:n.estimateLineCount}}var Om=function(e,t,r){if(!(null==e?void 0:e.length))return[];var n=[],o=[],i=t;if(e.forEach((function(e,a){if(e.columnWidth){var s=e.columnWidth,l=s.type,u=s.pixels,c=s.percentage,d=e.label,p=e.qApprMaxGlyphCount,f=e.totalInfo,m=0,h=function(){n[a]=Math.min(7680,Math.max(ae,m)),i-=n[a]};switch(l){case oe.PIXELS:m=u||200,h();break;case oe.PERCENTAGE:m=(c||20)/100*t,h();break;case oe.FIT_TO_CONTENT:m=r(d,f,p,e.isLocked),h();break;case oe.AUTO:o.push(a);break;default:throw new Error("".concat(l," is not a valid column width type"))}}else o.push(a)})),o.length){var a=i/o.length;o.forEach((function(e){n[e]=Math.max(ae,a)}))}return n},km=function(e,t){var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},_m=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},Nm=function(e){var t,r,n=e.nextElementSibling;return n?"HR"===n.tagName?Nm(n):n:null===(r=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===r?void 0:r[0]},Fm=function(e){var t,r,n,o,i=e.previousElementSibling;if(!i){var a=null===(r=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===r?void 0:r.length;return null===(o=null===(n=e.parentElement)||void 0===n?void 0:n.children)||void 0===o?void 0:o[a-1]}return"HR"===i.tagName?Fm(i):i},zm=function(e){return!e.enabled||e.active},jm=function(e){var t,r=e.target;r.setAttribute("tabIndex","-1");var n=null===(t=null==r?void 0:r.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(".sn-table-head-menu-button");null==n||n.focus()},Hm=function(e){var t=e.focusType,r=e.cell;if(r)switch(t){case re.FOCUS:r.focus(),r.setAttribute("tabIndex","0");break;case re.FOCUS_BUTTON:r.querySelector(".sn-table-head-label").focus();break;case re.BLUR:r.blur(),r.setAttribute("tabIndex","-1");break;case re.ADD_TAB:r.setAttribute("tabIndex","0");break;case re.REMOVE_TAB:r.setAttribute("tabIndex","-1")}},Bm=function(e,t,r,n,o,i){var a=function(e,t,r,n){void 0===n&&(n={top:0,bottom:0});var o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length,a=r[0],s=r[1];switch(e.key){case te.DOWN:a<o-1-n.bottom&&a++;break;case te.UP:a>n.top&&a--;break;case te.RIGHT:if(n.top>0)break;s<i-1?s++:a<o-1&&(a++,s=0);break;case te.LEFT:if(n.top>0)break;s>0?s--:a>0&&(a--,s=i-1)}return[a,s]}(e,t,r,i),s=km(t,a);return Hm({focusType:o,cell:s}),n(a),s},$m=function(e,t){var r=_m(e),n=r?function(e,t){for(var r=e.getElementsByClassName("sn-table-head-cell").length,n=e.getElementsByClassName("sn-table-cell"),o=0,i=0;i<n.length;i++)if(n[i]===t){o=i;break}return[Math.ceil(o/r),o%r]}(e,r):ue;r=r||km(e,ue),Hm({cell:r,focusType:re.FOCUS}),t(n)},Vm=function(e,t,r,n){var o;Hm({focusType:re.REMOVE_TAB,cell:_m(t)}),r(e),n.enabled&&!n.active?null===(o=n.focus)||void 0===o||o.call(n):Hm({focusType:re.ADD_TAB,cell:km(t,e)})},Wm=function(e,t,r){var n,o,i,a,s,l=null!==(i=null===(o=null===(n=e.closest(".qv-object-wrapper"))||void 0===n?void 0:n.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==i?i:null===(a=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===a?void 0:a.parentElement;l?l.focus():null===(s=t.focusSelection)||void 0===s||s.call(t,r)},Gm=function(e){e.stopPropagation(),e.preventDefault()},Um=function(e){return e.ctrlKey||e.metaKey},Ym=function(e){return e.shiftKey&&Um(e)},Km=function(e){return[te.LEFT,te.RIGHT,te.UP,te.DOWN].includes(e)},Zm=function(e){return e.shiftKey&&Km(e.key)},Xm=function(e,t){return void 0===t&&(t=!1),e.key===te.ESC&&!t||(e.key===te.LEFT||e.key===te.RIGHT)&&Ym(e)},Jm=function(e,t){var r=t.key===te.UP&&1===e[0],n=t.key===te.LEFT&&1===e[0]&&0===e[1];return r||n?re.FOCUS_BUTTON:re.FOCUS},Qm=function(e){var t=e.evt,r=e.rootElement,n=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,s=e.announce,l=e.totalsPosition,u=e.isSelectionMode,c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:u?c:0,bottom:u&&l.atBottom?1:0},f=Jm(d,t);f===re.FOCUS&&Hm({focusType:re.REMOVE_TAB,cell:t.target});var m=Bm(t,r,d,a,f,p);t.key!==te.UP&&t.key!==te.DOWN||(t.key===te.UP&&function(e,t){var r,n=t.getElementsByClassName("sn-table-container")[0];if(null==n?void 0:n.scrollTo){var o=e[0],i=e[1];if(o<2)n.scrollTo({top:0,behavior:"auto"});else{var a=t.getElementsByClassName("sn-table-head-cell")[0],s=null===(r=t.getElementsByClassName("sn-table-row")[o])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[i];if(!s)return;if(s.offsetTop-a.offsetHeight<n.scrollTop){var l=n.scrollTop-s.offsetHeight-a.offsetHeight;n.scrollTo({top:Math.max(0,l),behavior:"auto"})}}}}([n.pageRowIdx,n.pageColIdx],r),function(e,t,r){return t.shiftKey&&(t.key===te.UP&&0!==r.pageRowIdx||t.key===te.DOWN&&!r.isLastRow)&&e&&r.isSelectable}(i,t,n)?o({type:ee.SELECT_MULTI_ADD,payload:{cell:n,evt:t,announce:s}}):function(e,t,r){void 0===r&&(r=!1),r&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})}(s,m,u))},eh=function(e){var t=e.evt,r=e.rootElement,n=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))Gm(t),Wm(t.target,o,t.shiftKey);else if(t.shiftKey){n([0,r.querySelectorAll(".sn-table-head-cell").length-1])}},th=function(e,t){var r=t.colIdx,n=t.rows,o=t.api,i=Q.INACTIVE;return(null==o?void 0:o.isModal())&&(i=r!==e.selectionColIdx?Q.EXCLUDED:void 0!==n[e.qElemNumber]?Q.SELECTED:Q.POSSIBLE),i},rh=function(e,t,r){var n=Object.keys(r).length,o=n>=Object.keys(t).length;n?e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]}):e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},nh=function(e,t){var r=e.api,n=e.rows,o=e.colIdx,i=t.cell,a=t.announce,s=t.evt,l={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=j({},n)}return l=function(e,t,r){var n,o=t.qElemNumber,i=t.rowIdx;return r.ctrlKey||r.metaKey?((n={})[o]=i,n):(void 0!==e[o]?delete e[o]:e[o]=i,j({},e))}(l,i,s),rh(a,n,l),Object.keys(l).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(l),[i.selectionColIdx]]}),j(j({},e),{rows:l,colIdx:i.selectionColIdx})):(null==r||r.cancel(),j(j({},e),{rows:l,colIdx:-1}))},oh=function(e,t){var r,n=e.api,o=e.rows,i=e.colIdx,a=e.pageRows,s=e.firstCell,l=t.cell,u=t.announce,c=t.evt,d={};return s||"key"in c&&Zm(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d=j({},o),d=function(e,t,r,n,o){var i=j({},t);if("key"in n&&Zm(n)){i[r.qElemNumber]=r.rowIdx;var a=n.key===te.DOWN?1:-1;return i[e[r.pageRowIdx+a]["col-".concat(r.pageColIdx)].qElemNumber]=r.rowIdx+a,i}if(!o)return t;for(var s=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx),u=s;u<=l;u++){var c=e[u]["col-".concat(o.pageColIdx)];i[c.qElemNumber]=c.rowIdx}return i}(a,d,l,c,s),rh(u,o,d),j(j({},e),{rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0})):e},ih=function(e){var t=e.api,r=e.rows,n=e.colIdx,o=e.isSelectMultiValues,i=e.mouseupOutsideCallback;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),j(j({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},ah=function(e,t){var r;switch(t.type){case ee.SELECT:return nh(e,t.payload);case ee.SELECT_MOUSE_DOWN:return function(e,t){var r=t.cell,n=t.mouseupOutsideCallback;return!n||-1!==e.colIdx&&e.colIdx!==r.selectionColIdx?e:(document.addEventListener("mouseup",n),j(j({},e),{firstCell:r,mouseupOutsideCallback:n}))}(e,t.payload);case ee.SELECT_MOUSE_UP:return function(e,t){return ih(e.isSelectMultiValues||e.firstCell!==t.cell?e:nh(e,t))}(e,t.payload);case ee.SELECT_MULTI_ADD:return oh(e,t.payload);case ee.SELECT_MULTI_END:return ih(e);case ee.RESET:return(null===(r=e.api)||void 0===r?void 0:r.isModal())?e:j(j({},e),{rows:{},colIdx:-1});case ee.CLEAR:return Object.keys(e.rows).length?j(j({},e),{rows:{}}):e;case ee.UPDATE_PAGE_ROWS:return j(j({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},sh=4/3,lh=function(e){return parseInt(e,10)*sh+8+1},uh=function(e){return!!e&&(null!==e.color||e.index>-1)};function ch(e,t,r){void 0===r&&(r={});var n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}var dh=function(e){return Xt(e)?Dm.WHITE:Dm.TEXT},ph=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},fh=function(e,t,r,n){void 0===n&&(n=!1);var o=t.getStyle("object","straightTableV2.".concat(e),"fontFamily"),i=t.getStyle("object","straightTableV2.".concat(e),"color"),a=t.getStyle("object","straightTableV2.".concat(e),"fontSize"),s=j({fontFamily:o,color:uh(null==r?void 0:r.fontColor)?ch(Dm.TEXT,t,null==r?void 0:r.fontColor):i||Dm.TEXT,fontSize:(null==r?void 0:r.fontSize)&&"".concat(r.fontSize,"px")||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0},function(e,t){return e?{borderBottomColor:Dm.DARK_MODE_BORDER,borderRightColor:Dm.DARK_MODE_BORDER,borderLeftColor:Dm.DARK_MODE_BORDER,borderTopColor:Dm.DARK_MODE_BORDER}:{borderLeftColor:Dm.BORDER_MEDIUM,borderRightColor:Dm.BORDER_MEDIUM,borderTopColor:Dm.BORDER_HEAVY,borderBottomColor:t?Dm.BORDER_HEAVY:Dm.BORDER_LIGHT}}(t.background.isDark,n));return Object.keys(s).forEach((function(e){var t=e;null==s[t]&&delete s[t]})),s};function mh(e,t,r){var n,o,i=null===(n=ph(e))||void 0===n?void 0:n.header,a=fh("header",t,i,r);return a.background=t.background.isTransparent?Dm.WHITE:function(e){if(void 0!==e){var t=Zt(e),r=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t);if(r)return"rgb(".concat(r[1],",").concat(r[2],",").concat(r[3],")")}return e}(t.background.color),a.color=null!==(o=a.color)&&void 0!==o?o:Xt(a.background)?Dm.DARK_MODE_TEXT:Dm.TEXT,a}function hh(e,t,r,n){var o,i=null===(o=ph(e))||void 0===o?void 0:o.content,a=fh("content",t,i);a.background=t.background.color;var s,l=function(e,t,r){return e&&t&&r&&lh(e)*(t+2)<r.clientHeight-40?"1px":"0px"}(null==a?void 0:a.fontSize,r,n),u=null==i?void 0:i.hoverColor,c=null==i?void 0:i.hoverFontColor,d=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),p=t.getStyle("object","","straightTableV2.content.hover.color"),f=uh(c)||!!p,m=uh(u)||!!d,h=f||m;s=uh(u)?ch(Dm.HOVER,t,u):d||(f?"":Dm.HOVER);var g=h?ch(dh(s),t,uh(c)?c:p):"";return j(j({},a),{lastRowBottomBorder:l,hoverColors:{background:s,color:g}})}var gh=function(e){return e.isDark?{background:e.color,borderColor:Dm.DARK_MODE_BORDER,color:Dm.DARK_MODE_TEXT,disabledColor:Dm.DARK_MODE_DISABLED,iconColor:Dm.DARK_MODE_TEXT}:{background:e.color,borderColor:Dm.BORDER_MEDIUM,color:Dm.TEXT,disabledColor:Dm.DISABLED}};function bh(e,t,r){var n,o={};return null===(n=null==t?void 0:t.qValues)||void 0===n||n.forEach((function(e,t){var n=e.qText&&Zt(e.qText);n&&"none"!==n&&(o[r[t]]=n)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=dh(o.cellBackgroundColor)),j(j({},e),{color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background})}var vh=function(e,t,r,n){var o=E((function(){var o=r.totalsPosition.atTop,i=hh(e,t,r.rows.length,n),a=mh(e,t,!o),s=function(e,t,r){var n,o=null===(n=ph(e))||void 0===n?void 0:n.content,i=fh("content",t,o),a=mh(e,t,r),s=a.borderBottomColor,l=a.borderTopColor,u=a.background;return j(j({},i),{borderBottomColor:s,background:u,borderTopColor:l})}(e,t,o);return{body:i,head:a,totals:s}}),[e,t.name(),r,n]);return o},yh=new Map;var xh,Sh,Eh=T({}),Ch=(xh=Eh,Sh=T([function(){},new Set]),yh.set(xh,Sh),function(e){var t=e.children,r=e.value,n=D(r),o=D(new Set);C((function(){n.current=r,o.current.forEach((function(e){e(r)}))}),[r]);var i=L((function(){return n.current}),[n]),a=E((function(){return[i,o.current]}),[i]);return x.createElement(xh.Provider,{value:r},x.createElement(Sh.Provider,{value:a},t))}),wh={rows:[],columns:[],totalsPosition:{}},Rh=function(e){var t=e.app,r=e.children,n=e.tableData,o=void 0===n?wh:n,i=e.selectionsAPI,a=e.cellCoordMock,s=e.layout,l=e.model,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,b=e.setPage,v=e.pageInfo,y=e.initialDataPages,C=e.rect,w=e.viewService,R=S(0),D=R[0],A=R[1],I=S(a||le),q=I[0],T=I[1],L=function(e,t){var r=P(ah,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r[0],r[1]]}(o.rows,i),M=L[0],O=L[1],k=S(-1),_=k[0],N=k[1],F=vh(s,d,o,f),z=function(e,t,r,n){var o=n.head,i=n.body,a=t.atBottom||t.atTop,s=Mm(o.fontSize,o.fontFamily,!0).measureText,l=Mm(i.fontSize,i.fontFamily,!0).measureText,u=Mm(i.fontSize,i.fontFamily).estimateWidth,c=E((function(){return function(e,t,r,n){var o=n?99:71;return Math.max(s(e)+o,a?l(t)+24+1:0,u(r))}}),[u,s,l,a]),d=S(0),p=d[0],f=d[1],m=S((function(){return Om(e,r,c)})),h=m[0],g=m[1];El((function(){g(Om(e,r-p,c))}),[e,r,p,c]);var b=E((function(){return function(e,t,r){return!!(e&&e.length>0)&&e.reduce((function(e,t){return e+t}))+t<r}(h,p,r)}),[h,p,r]);return[h,g,f,b]}(o.columns,o.totalsPosition,C.width,F),j=z[0],H=z[1],B=z[2],$=z[3],V=E((function(){return{app:t,selectionsAPI:i,layout:s,model:l,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,styling:F,rect:C,viewService:w}}),[t,i,s,l,u,c,d.name(),p.active,f,m,h,g,F,C,w]);return x.createElement(Ch,{value:{headRowHeight:D,setHeadRowHeight:A,focusedCellCoord:q,setFocusedCellCoord:T,selectionState:M,selectionDispatch:O,hoverIndex:_,setHoverIndex:N,columnWidths:j,setColumnWidths:H,baseProps:V,tableData:o,setYScrollbarWidth:B,setPage:b,pageInfo:v,initialDataPages:y,showRightBorder:$}},r)};function Dh(e,t){var r=function(e){return yh.get(e)}(e),n=w(r),o=n[0],i=n[1],a=P((function(e){return e+1}),0)[1],s=D(t),l=D(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=E((function(){return t(u)}),[u,t]);return C((function(){s.current=t,l.current=c}),[u,c,t]),C((function(){var e=function(e){(s.current&&s.current(e))!==l.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function Ah(e){var t,r,n=wm();return(null===(r=null===(t=null==n?void 0:n.components)||void 0===t?void 0:t.MuiTable)||void 0===r?void 0:r.styleOverrides)&&(n.components.MuiTable.styleOverrides.root={}),nl(j(j({},n),{direction:e}))}var Ih=cl(xd,{shouldForwardProp:function(e){return"footerStyle"!==e}})((function(e){var t=e.footerStyle;return{height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:e.theme.spacing(0,1,0,1),color:t.color,background:t.background,borderTop:"1px solid ".concat(t.borderColor)}})),qh=cl(Tf,{shouldForwardProp:function(e){return"footerStyle"!==e}})((function(e){var t=e.footerStyle;return{background:"inherit",marginRight:e.theme.spacing(1),color:t.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:t.iconColor}}})),Ph=cl(Pd,{shouldForwardProp:function(e){return"disabledCondition"!==e&&"footerStyle"!==e}})((function(e){var t=e.disabledCondition,r=e.footerStyle,n=e.theme;return{color:t?r.disabledColor:r.color,cursor:t?"default":"pointer",marginLeft:n.spacing(1)}})),Th=cl(hc)((function(e){return{color:"inherit",margin:e.theme.spacing(0,1,0,1)}}));function Lh(e){var t=e.children,r=e.footerContainer,n=e.paginationNeeded,o=void 0===n||n,i=Dh(Eh,(function(e){return e.baseProps})).theme,a=E((function(){return gh(i.background)}),[i]),s=o?x.createElement(Ih,{footerStyle:a},t):null;return r?z.createPortal(t,r):s}function Mh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oh=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Mh(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function kh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _h=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kh(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"}))));function Nh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fh=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Nh(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"}))));function zh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jh=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zh(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"}))));var Hh=function(e){var t,r=e.key,n=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===te.DOWN||r===te.UP){var i=function(e){return r===te.DOWN?Nm(e):Fm(e)};Gm(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},Bh=function(e){var t,r=e.evt,n=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord;if(e.isInteractionEnabled){if(!Xm(r)){var a=!(null===(t=r.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(r.key){case te.LEFT:case te.RIGHT:Gm(r),r.key===te.RIGHT&&a?$m(n,i):Bm(r,n,o,i,re.FOCUS_BUTTON);break;case te.DOWN:Gm(r),Hm({focusType:re.REMOVE_TAB,cell:_m(n)}),Bm(r,n,o,i,re.FOCUS);break;case te.TAB:!function(e,t,r,n,o){var i=e.target.classList.contains("sn-table-head-label");i&&e.shiftKey&&r[1]>0?n([r[0],r[1]-1]):i||e.shiftKey||(o?(Gm(e),$m(t,n)):n([r[0],r[1]+1]))}(r,n,o,i,a);break;case te.C:Gm(r),Um(r)&&Wt(r)}}}else Gm(r)},$h=1e3,Vh="…",Wh=function(e){var t=e.totalPages,r=e.page,n=Math.min(t,$h),o=n<t&&r>500,i=o?Math.min(500+r,t):n,a=o?Math.max(0,i-$h):0,s=Array.from(Array(n).keys()).map((function(e){var t=e+a;return x.createElement("option",{key:t,value:t},t+1)}));return a>0&&s.unshift(x.createElement("option",{key:"startMoreOptions",value:Vh,disabled:!0},Vh)),i<t-1&&s.push(x.createElement("option",{key:"endMoreOptions",value:Vh,disabled:!0},Vh)),x.createElement(x.Fragment,null,s)},Gh={FirstPage:_h,PreviousPage:Oh,NextPage:Fh,LastPage:jh,FirstPageRTL:jh,PreviousPageRTL:Fh,NextPageRTL:Oh,LastPageRTL:_h},Uh=function(e,t){switch(e){case"selectPage":return t>700;case"rppOptions":return t>550;case"firstLast":return t>350;case"displayedRows":return t>250;default:return!1}},Yh=function(e){var t=e.direction,r=e.pageInfo,n=e.setPageInfo,o=e.footerContainer,i=e.isSelectionMode,a=e.handleChangePage,s=e.announce,l=Dh(Eh,(function(e){return e.tableData})),u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=r.page,f=r.rowsPerPage,m=r.rowsPerPageOptions,h=Dh(Eh,(function(e){return e.baseProps})),g=h.keyboard,b=h.translator,v=h.theme,y=h.interactions,S=h.rect,C=h.layout,w=E((function(){return gh(v.background)}),[v]),R=0===p,D=p>=d-1,A=zm(g)?0:-1,I=o?o.getBoundingClientRect().width:S.width,q=Uh("firstLast",I),P=!!r.rowsPerPageOptions.length&&!i&&Uh("rppOptions",I)&&c<=100,T=b.get("SNTable.Pagination.DisplayedRowsLabel",["".concat(p*f+1," - ").concat(Math.min((p+1)*f,u)),u.toString()]),L=C.qInfo.qId,M=g.enabled?function(e){return function(e,t,r){void 0===r&&(r=!1),r&&e.key===te.TAB&&!e.shiftKey&&(Gm(e),Wm(e.target,t,!1))}(e,g,i)}:null,O=function(e,r,n,o){var i="".concat(n).concat("rtl"===t?"RTL":""),s=Gh[i];return x.createElement(Ph,{footerStyle:w,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button",onClick:e?null:function(){return a(r)},"aria-disabled":e,"aria-label":b.get("SNTable.Pagination.".concat(n)),title:y.passive?b.get("SNTable.Pagination.".concat(n)):void 0,tabIndex:A,onKeyDown:o},x.createElement(s,{height:qm}))},k=function(e,t,r,n){var o=b.get("SNTable.Pagination.".concat(e)),i="".concat(e,"-dropdown"),a="".concat(i,"-label-").concat(L),s="".concat(i,"-").concat(L),l={tabIndex:A,id:s,"data-testid":i,"aria-labelledby":a};return x.createElement(x.Fragment,null,x.createElement(Th,{variant:"caption",id:a},o,":"),x.createElement(qh,{footerStyle:w,size:"small",native:!0,value:t,onChange:n,inputProps:l},r))},_=x.createElement(x.Fragment,null,m.map((function(e){return x.createElement("option",{key:e,value:e},e)}))),N=x.createElement(Wh,{totalPages:d,page:p});return x.createElement(x.Fragment,null,P&&k("RowsPerPage",f,_,(function(e){n(j(j({},r),{page:0,rowsPerPage:+e.target.value})),s({keys:[["SNTable.Pagination.RowsPerPageChange",e.target.value.toString()]],politeness:"assertive"})})),Uh("selectPage",I)&&k("SelectPage",p,N,(function(e){return a(+e.target.value)})),Uh("displayedRows",I)&&x.createElement(Th,{variant:"caption"},T),q&&O(R,0,"FirstPage",null),O(R,p-1,"PreviousPage",null),O(D,p+1,"NextPage",q?null:M),q&&O(D,d-1,"LastPage",M))},Kh=O(Yh),Zh=cl(xd,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),Xh=cl(xd,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var t=e.lines,r=e.wordBreak;return j({lineHeight:"calc(4/3)",fontSize:"inherit"},(r||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"})})),Jh=cl(xd)({overflow:"hidden",textOverflow:"ellipsis"});function Qh(e,t){var r=D(!1);C((function(){r.current?e():r.current=!0}),t)}var eg=function(e,t,r){C((function(){var n=e.current;if(n){var o=function(e){return function(e,t,r){if(0!==e.deltaX){e.stopPropagation();var n=r.scrollWidth-r.offsetWidth,o=r.scrollLeft,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))}}(e,"rtl"===t,n)},i=function(e){var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),function(){n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}}),[e,t,r])},tg=function(e){var t=Dh(Eh,(function(e){return e.baseProps})),r=t.layout,n=t.rect,o=t.theme.name(),i=S(0),a=i[0],s=i[1],l=S(0),u=l[0],c=l[1];return k((function(){var t;if(e.current){var r=null!==(t=e.current)&&void 0!==t?t:{},n=r.offsetWidth,o=void 0===n?0:n,i=r.offsetHeight,a=void 0===i?0:i,l=r.clientWidth,u=void 0===l?0:l,d=r.clientHeight,p=a-(void 0===d?0:d);c(o-u),s(p)}}),[e,r,n,o]),{xScrollbarWidth:a,yScrollbarWidth:u}},rg=cl("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),ng=cl(tm,{shouldForwardProp:function(e){return"fullHeight"!==e&&"interactions"!==e}})((function(e){var t=e.fullHeight,r=e.interactions;return{height:t?"100%":"calc(100% - ".concat(41,"px)"),overflow:r.active?"auto":"hidden",border:"none"}})),og=cl(Ff,{shouldForwardProp:function(e){return"showRightBorder"!==e&&"styling"!==e}})((function(e){var t=e.showRightBorder,r=e.styling;return{tableLayout:"fixed",width:"min-content",borderRight:t?"1px solid ".concat(r.body.borderRightColor):void 0}})),ig=function(){return x.createElement(x.Fragment,null,x.createElement(rg,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),x.createElement(rg,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},ag=function(e){var t=e.children,r=e.fontSize,n=void 0===r?"":r,o=e.wordBreak,i=void 0!==o&&o,a=e.lines,s=void 0===a?3:a,l=parseInt(n||qm,10),u=x.createElement(Xh,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:s},t);return i?u:x.createElement(Jh,{minHeight:l*Im,maxHeight:l*Im*s},u)},sg=function(e){var t=e.selectionsAPI,r=e.selectionDispatch,n=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;C((function(){var e=function(){r({type:ee.RESET})},a=function(){r({type:ee.CLEAR})},s=function(){var t,r;(null===(t=i.current)||void 0===t?void 0:t.contains(document.activeElement))?n():o.enabled&&(null===(r=o.blur)||void 0===r||r.call(o,!0)),e()};return null==t||t.on("deactivated",e),null==t||t.on("canceled",e),null==t||t.on("confirmed",s),null==t||t.on("cleared",a),function(){null==t||t.removeListener("deactivated",e),null==t||t.removeListener("canceled",e),null==t||t.removeListener("confirmed",s),null==t||t.removeListener("cleared",a)}}),[t,o,r,n,i])},lg=function(e,t,r,n){return{handleMouseDown:function(n){if(null==e||e(n),t.isSelectable){r({type:ee.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return r({type:ee.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&r({type:ee.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:function(e){0===e.button&&r({type:ee.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}},ug=cl(Wf,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),cg=cl(mm,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var t=e.hover,r=e.hoverColors;return j({"&&:hover":{background:"none"}},t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":r}})})),dg=cl(Xf,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,r=e.theme;return j(j(j({},Pm),t),{padding:r.spacing(.5,1.5)})})),pg=cl(Xf,{shouldForwardProp:function(e){return"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e}})((function(e){var t=e.totalsStyle,r=e.atTop,n=e.headRowHeight,o=e.theme;return j(j(j({},Pm),t),{fontWeight:"600",position:"sticky",padding:o.spacing(.5,1.5),borderWidth:r?"0px 1px 1px 0px":"1px 1px 1px 0px",top:r&&n,bottom:!r&&0})}));function fg(e){return function(t){var r=t.cell,n=t.styling,o=t.announce,i=t.onMouseDown,a=Dh(Eh,(function(e){return th(r,e.selectionState)})),s=Dh(Eh,(function(e){return e.selectionDispatch})),l=lg(i,r,s,o),u=l.handleMouseDown,c=l.handleMouseOver,d=l.handleMouseUp,p=function(e,t){var r={};switch(t){case Q.SELECTED:r=Am.SELECTED;break;case Q.POSSIBLE:r=Am.POSSIBLE;break;case Q.EXCLUDED:r={background:"".concat(Am.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:Q.EXCLUDED}}return j(j({},e),r)}(n,a);return x.createElement(e,j({},t,{styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c}))}}function mg(e,t){var r,n=(r=dg,function(e){var t=e.styling,n=t.selectedCellClass,o=H(t,["selectedCellClass"]),i=e.component,a=e.align,s=e.children,l=e.scope,u=e.tabIndex,c=e.onKeyDown,d=e.onMouseDown,p=e.onKeyUp,f=e.onMouseUp,m=e.onMouseOver,h=e.title;return x.createElement(r,{cellStyle:o,component:i,scope:l,align:a,tabIndex:u,className:"sn-table-cell ".concat(n||""),title:h,onKeyDown:c,onMouseDown:d,onKeyUp:p,onMouseUp:f,onMouseOver:m},s)});return t&&(n=fg(n)),e&&(n=function(e){return function(t){var r=t.cell,n=t.column,o=t.styling,i=E((function(){return bh(o,r.qAttrExps,n.stylingIDs)}),[o,r.qAttrExps,n.stylingIDs]);return x.createElement(e,j({},t,{styling:i}))}}(n)),n}var hg=function(){var e=Dh(Eh,(function(e){return e.tableData})),t=e.columns,r=e.totalsPosition.atTop,n=e.rows,o=Dh(Eh,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,s=o.keyboard,l=o.styling,u=o.interactions,c=Dh(Eh,(function(e){return e.headRowHeight})),d=Dh(Eh,(function(e){return e.setFocusedCellCoord}));return x.createElement(mm,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[r?1:n.length+1,t],p=r&&0===t&&!s.enabled?0:-1;return x.createElement(pg,{totalsStyle:l.totals,headRowHeight:c,atTop:r,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,r,n,o){if(void 0===o&&(o=!1),o)Gm(e);else if(!Xm(e))switch(e.key){case te.LEFT:case te.RIGHT:case te.UP:case te.DOWN:Gm(e);var i=Jm(r,e);i===re.FOCUS&&Hm({focusType:re.REMOVE_TAB,cell:e.target}),Bm(e,t,r,n,i);break;case te.TAB:eh({evt:e,rootElement:t,setFocusedCellCoord:n});break;case te.C:Gm(e),Um(e)&&Wt(e);break;case te.SPACE:e.preventDefault()}}(e,i,o,d,null==a?void 0:a.isModal())},onMouseDown:function(){Vm(o,i,d,s)}},x.createElement(ag,{fontSize:l.totals.fontSize},e.totalInfo))})))},gg=O(hg),bg=function(e){var t,r,n=e.setShouldRefocus,o=e.tableWrapperRef,i=e.announce,a=Dh(Eh,(function(e){return e.tableData})),s=a.rows,l=a.columns,u=a.paginationNeeded,c=a.totalsPosition,d=Dh(Eh,(function(e){return e.baseProps})),p=d.selectionsAPI,f=d.rootElement,m=d.keyboard,h=d.layout,g=d.viewService,b=d.interactions,v=d.styling.body,y=v.hoverColors,S=v.lastRowBottomBorder,C=H(v,["hoverColors","lastRowBottomBorder"]),w=Dh(Eh,(function(e){return e.setFocusedCellCoord})),R=Dh(Eh,(function(e){return e.selectionDispatch})),D=!!b.active&&!!b.select,A=JSON.stringify(l.map((function(e){return e.stylingIDs}))),I=E((function(){return JSON.parse(A).map((function(e){return mg(!!e.length,D)}))}),[A,D]),q=!!(null===(r=null===(t=ph(h))||void 0===t?void 0:t.content)||void 0===r?void 0:r.hoverEffect);return sg({keyboard:m,selectionDispatch:R,selectionsAPI:p,setShouldRefocus:n,tableWrapperRef:o}),x.createElement(ug,{lastRowBottomBorder:S},c.atTop?x.createElement(gg,null):void 0,s.map((function(e,t){return x.createElement(cg,{hoverColors:y,hover:q,tabIndex:-1,key:e.id,className:"sn-table-row sn-table-data-row",rowindex:t},l.map((function(r,n){var o,a=r.id,s=e[a],l=I[n],d=0!==t||0!==n||c.atTop||m.enabled?-1:0;return l&&x.createElement(l,{scope:0===n?"row":null,component:0===n?"th":null,cell:s,column:r,key:a,align:s.align,styling:C,tabIndex:d,announce:i,title:b.passive?s.qText:void 0,onKeyDown:function(e){!function(e){var t=e.evt,r=e.rootElement,n=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,s=e.announce,l=e.keyboard,u=e.paginationNeeded,c=e.totalsPosition,d=e.selectionsAPI;if(t.target.classList.contains("excluded"))Gm(t);else{var p=null==d?void 0:d.isModal();if(!Xm(t,p))switch(t.key){case te.UP:case te.DOWN:case te.LEFT:case te.RIGHT:Gm(t),Qm({evt:t,rootElement:r,cell:n,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:s,totalsPosition:c,isSelectionMode:p});break;case te.SPACE:Gm(t),n.isSelectable&&i&&o({type:ee.SELECT,payload:{cell:n,evt:t,announce:s}});break;case te.ENTER:Gm(t),p&&(null==d||d.confirm(),s({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case te.ESC:Gm(t),null==d||d.cancel(),s({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case te.TAB:eh({evt:t,rootElement:r,setFocusedCellCoord:a,keyboard:l,isSelectionMode:p,paginationNeeded:u});break;case te.C:Gm(t),Um(t)&&Wt(t)}}}({evt:e,rootElement:f,selectionsAPI:p,cell:s,selectionDispatch:R,isSelectionsEnabled:D,setFocusedCellCoord:w,announce:i,keyboard:m,paginationNeeded:u,totalsPosition:c})},onKeyUp:function(e){return function(e,t){e.key===te.SHIFT&&t({type:ee.SELECT_MULTI_END})}(e,R)},onMouseDown:function(){return function(e,t,r,n,o){var i=e.pageRowIdx,a=e.pageColIdx,s=o.atTop?i+2:i+1;Vm([s,a],t,r,n)}(s,f,w,m,c)}},x.createElement(ag,{fontSize:C.fontSize,lines:null===(o=g.viewState)||void 0===o?void 0:o.maxLineCount},s.qText))})))})),c.atBottom?x.createElement(gg,null):void 0)},vg=O(bg),yg=cl(Pd,{shouldForwardProp:function(e){return"isActive"!==e&&"textAlign"!==e&&"disabled"!==e}})((function(e){var t=e.isActive,r=e.textAlign,n=e.disabled;return{textAlign:r,height:"auto",maxWidth:"100%",fontSize:"inherit",fontFamily:"inherit",padding:e.theme.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:r,"&&:focus, &&:hover":{"& svg":{opacity:t?1:.5}},"& svg":{opacity:t?1:0,fontSize:qm},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}})),xg=cl("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),Sg=cl(xd,{shouldForwardProp:function(e){return"isLocked"!==e}})((function(e){var t=e.theme,r=e.isLocked;return{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:t.spacing(.5),fontSize:"inherit",fontFamily:"inherit","&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:r?"".concat(20,"px 2fr ").concat(se,"px"):"1fr ".concat(se,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(se,"px 2fr ").concat(se,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:r?"".concat(se,"px 2fr ").concat(20,"px"):"".concat(se,"px 1fr"),"& > div:first-child":{gridColumn:r?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),Eg=cl("div")({display:"flex",alignSelf:"flex-end"}),Cg=cl(xd)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(se,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),wg=cl(xd,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return j(j({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(se,"px"),display:"flex"})})),Rg=cl(Pd,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){return{opacity:e.isVisible?1:0,"&:focus":{opacity:1}}})),Dg=cl($d)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),Ag=cl(Up)((function(e){var t=e.theme;return{borderRadius:"4px",margin:t.spacing(0,.5),padding:t.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}})),Ig=cl("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),qg=cl(hp)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));cl("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));var Pg=cl(xd,{shouldForwardProp:function(e){return"isLastColumn"!==e}})((function(e){var t=e.isLastColumn;return{display:"flex",position:"absolute",height:"100%",top:0,left:"100%",cursor:"col-resize",width:"".concat(t?4:9,"px"),justifyContent:t?"flex-end":"center",marginLeft:"-4px","&&:hover:not(:focus, :active)":{"& .sn-table-adjuster-head-border":{background:"#D9D9D9"}},"&&:focus-visible, :active":{outline:"none","& .sn-table-adjuster-head-border":{background:"#177fe6"}}}})),Tg=cl(xd)({position:"absolute",height:"100%",width:"3px"}),Lg=function(e){var t=e.column,r=e.isLastColumn,n=e.onColumnResize,o=t.pageColIdx,i=Dh(Eh,(function(e){return e.baseProps})),a=i.applyColumnWidths,s=i.interactions,l=Dh(Eh,(function(e){return e.columnWidths})),u=Dh(Eh,(function(e){return e.setColumnWidths})),c=D({columnWidth:0,initX:0,initWidth:0});if(!s.active)return null;var d=function(e){null==n||n(),c.current.columnWidth=e;var t=V([],l,!0);t[o]=e,u(t)},p=function(){if(c.current.columnWidth!==c.current.initWidth){var e={type:oe.PIXELS,pixels:c.current.columnWidth};a(e,t)}},f=function(e){var t=e.clientX-c.current.initX,r=Math.max(c.current.initWidth+t,ae);d(r)},m=function(e){Gm(e),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",m),p()};return x.createElement(Pg,{className:"sn-table-adjuster-hit-area",isLastColumn:r,key:"adjuster-".concat(o),onKeyDown:function(e){if(e.key===te.LEFT||e.key===te.RIGHT){Gm(e);var t=l[o],r=e.key===te.LEFT?t-5:t+5,n=Math.max(r,ae);d(n)}else e.key===te.SPACE||e.key===te.ENTER?(Gm(e),jm(e),p()):e.key===te.ESC&&(Gm(e),jm(e),d(c.current.initWidth))},onMouseDown:function(e){e.stopPropagation(),c.current={initX:e.clientX,initWidth:l[o],columnWidth:l[o]},document.addEventListener("mousemove",f),document.addEventListener("mouseup",m)},onBlur:function(e){return jm(e)},onFocus:function(){c.current.initWidth=l[o]},onDoubleClick:function(){return a({type:oe.FIT_TO_CONTENT},t)},"data-testid":"sn-table-column-adjuster"},x.createElement(Tg,{className:"sn-table-adjuster-head-border"}))};function Mg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Og=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Mg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))));function kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _g=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))));function Ng(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ng(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("defs",null,x.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),x.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"}))));function zg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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.304 1.304-1.304Z"}))));function Hg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"}))));function $g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$g(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Z"}))));function Wg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Wg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"}))));function Ug(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ug(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"}))));function Kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Kg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Xg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jg=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Qg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eb=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Qg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function tb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rb=M(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"}))));var nb=new Map,ob={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},ib=function(e,t){return e.some((function(e){return t[e]>0}))},ab={},sb=function(e){var t,r,n=e.autoFocus,o=e.id,i=e.onClick,a=e.itemTitle,s=e.icon,l=e.enabled,u=e.subMenus,c=S(!1),d=c[0],p=c[1],f=D(null);return x.createElement(x.Fragment,null,x.createElement(Ag,{ref:u?f:null,key:o,"data-testid":"menu-item-".concat(o),className:"sn-table-head-menu-item",onClick:function(e){i&&(i(e),ab={}),(null==u?void 0:u.length)&&(p(!0),ab[a]=p)},disabled:!l,autoFocus:n,onKeyDown:Hh},x.createElement(Ig,null,x.createElement(qg,null,s),x.createElement(hc,{variant:"body2"},a)),(null==u?void 0:u.length)?x.createElement(Fh,null):null),(null==u?void 0:u.length)&&x.createElement(ub,{anchorEl:f.current,open:d,onClose:function(){return p(!1)},menuGroups:(t=u,r=ab,t.map((function(e){return e.map((function(e){var t=e.onClick,n=H(e,["onClick"]);return j(j({},n),t?{onClick:function(e){Object.entries(r).map((function(e){return(0,e[1])(!1)})),t(e)}}:{})}))}))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}}))},lb=function(e){return e.menuGroup.map((function(e){return x.createElement(sb,j({key:e.id},e))}))},ub=function(e){var t=e.anchorEl,r=e.open,n=e.onClose,o=e.menuGroups,i=e.transformOrigin,a=e.anchorOrigin,s=e.buttonId,l=e.menuId;return o.length?x.createElement(Bp,j({className:"sn-table-head-menu",id:l,open:r,anchorEl:t,onClose:n,"aria-labelledby":s},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),function(e){var t=e.itemGroups;return t.map((function(e,r){return[lb({menuGroup:e}),r<t.length-1?x.createElement(Dg,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:o})):null},cb=function(e){var t=e.column,r=e.tabIndex,n=t.isDim,o=t.qLibraryId,i=t.fieldId,a=t.headTextAlign,s=t.pageColIdx,l=Dh(Eh,(function(e){return e.baseProps})),u=l.translator,c=l.embed,d=l.model,p=l.interactions,f=l.layout,m=D(null),h=D(null),g=S(!1),b=g[0],v=g[1],y=S(!1),w=y[0],R=y[1],A=function(e,t){var r=Dh(Eh,(function(e){return e.baseProps})),n=r.app,o=r.layout,i=S(null),a=i[0],s=i[1],l=S(ob),u=l[0],c=l[1];return C((function(){if(n&&n.getField&&e&&e.isDim&&t){var r=e.qLibraryId,i=e.fieldId;if(r){var a="".concat(n.id,"-").concat(r);nb.get(a)?s(nb.get(a)):n.createSessionObject(function(e,t){return void 0===t&&(t="$"),{qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}}(r,o.qStateName)).then((function(e){var t={selectAll:function(){return e.selectListObjectAll("/qListObjectDef")},clear:function(){return e.clearSelections("/qListObjectDef").then((function(e){return e}))},selectPossible:function(){return e.selectListObjectPossible("/qListObjectDef")},selectAlternative:function(){return e.selectListObjectAlternative("/qListObjectDef")},selectExcluded:function(){return e.selectListObjectExcluded("/qListObjectDef")}};s(t),nb.set(a,t)}))}else n.getField(i,o.qStateName).then(s)}}),[n,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:L((function(){return c(ob)}),[]),updateSelectionActionsEnabledStatus:function(t){var r=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));r&&c({canSelectAll:ib(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:ib(["qSelected"],r.qStateCounts),canSelectPossible:ib(["qOption"],r.qStateCounts),canSelectAlternative:ib(["qAlternative"],r.qStateCounts),canSelectExcluded:ib(["qAlternative","qExcluded"],r.qStateCounts)})}}}(t,b),I=A.fieldInstance,q=A.selectionActionsEnabledStatus,P=A.resetSelectionActionsEnabledStatus,T=A.updateSelectionActionsEnabledStatus,M=L((function(){var e=o?{qLibraryId:o,type:"dimension"}:i;c.__DO_NOT_USE__.popover(h.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:f.qStateName}),c.on("fieldPopoverClose",(function(){R(!1)}))}),[c,i,o,f.qStateName]),O=E((function(){return V(V([],n&&p.select?[[{id:1,itemTitle:u.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),v(!1),R(!0),M()},icon:x.createElement(Gg,null),enabled:!0}],[{id:1,itemTitle:u.get("SNTable.MenuItem.Selections"),icon:x.createElement(rb,null),enabled:!0,subMenus:[[{id:1,itemTitle:u.get("SNTable.MenuItem.SelectAll"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==I?void 0:I.selectAll()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Yg,null),enabled:q.canSelectAll},{id:2,itemTitle:u.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==I?void 0:I.selectPossible()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(eb,null),enabled:q.canSelectPossible},{id:3,itemTitle:u.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==I?void 0:I.selectAlternative()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Zg,null),enabled:q.canSelectAlternative},{id:4,itemTitle:u.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==I?void 0:I.selectExcluded()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Jg,null),enabled:q.canSelectExcluded}],[{id:1,itemTitle:u.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==I?void 0:I.clear()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(jg,null),enabled:q.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:u.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){Gm(e),v(!1),function(e){setTimeout((function(){var t,r,n=null===(r=null===(t=e.current)||void 0===t?void 0:t.closest(".sn-table-cell"))||void 0===r?void 0:r.querySelector(".sn-table-adjuster-hit-area");null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)}(m)},icon:x.createElement(Bg,null),enabled:!0}]],!1)}),[n,p.select,u,q,M,I]);C((function(){b||P()}),[b,P]);var k=f.qInfo.qId,_="sn-table-head-menu-button-".concat(s,"-").concat(k),N="sn-table-head-menu-".concat(s,"-").concat(k);return O.length?x.createElement(wg,{rightAligned:"right"===a},x.createElement(Rg,{isVisible:w||b,ref:m,size:"small",tabIndex:r,className:"sn-table-head-menu-button",id:_,"aria-controls":b?N:void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function(){return B(void 0,void 0,void 0,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return b||!d?[3,2]:[4,d.getLayout()];case 1:e=t.sent(),T(e),t.label=2;case 2:return v(!b),[2]}}))}))},"aria-label":u.get("SNTable.Accessibility.ColumnOptions")},x.createElement(Vg,{height:qm})),x.createElement("div",{ref:h}),x.createElement(ub,{open:b,anchorEl:m.current,onClose:function(){return v(!1)},menuGroups:O,buttonId:_,menuId:N})):null},db=function(e){var t=e.children,r=e.column,n=e.isActive,o=e.isInteractionEnabled,i=Dh(Eh,(function(e){return e.baseProps})),a=i.keyboard,s=i.translator,l=i.changeSortOrder,u=Dh(Eh,(function(e){return 0===e.focusedCellCoord[0]})),c=function(e){var t=e.sortDirection,r=e.isLocked,n=e.headTextAlign,o="A"===t?x.createElement(Og,{height:qm}):x.createElement(_g,{height:qm}),i=r?x.createElement(Cg,{className:"aligned-".concat(n)},x.createElement(Fg,{height:qm,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===n?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),d=c.startIcon,p=c.endIcon,f=c.lockIcon,m=o&&zm(a)?0:-1,h={A:s.get("SNTable.Accessibility.Ascending"),D:s.get("SNTable.Accessibility.Descending")};return x.createElement(Sg,{isLocked:Boolean(f),className:"aligned-".concat(r.headTextAlign)},f&&x.createElement(Eg,null,f),x.createElement(yg,{className:"sn-table-head-label",isActive:n,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:d,endIcon:p,onClick:function(){return o&&l(r)},tabIndex:m,disabled:!o},t,u&&x.createElement(xg,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(h[r.sortDirection]," ").concat(s.get("SNTable.SortLabel.PressSpaceToSort")))),o&&x.createElement(cb,{column:r,tabIndex:m}))},pb=cl(Xf,{shouldForwardProp:function(e){return"headerStyle"!==e}})((function(e){var t=e.headerStyle;return j(j(j({},Pm),t),{pointer:"cursor",verticalAlign:"bottom","&:focus":{boxShadow:"none"}})})),fb=function(){var e,t=Dh(Eh,(function(e){return e.tableData})).columns,r=Dh(Eh,(function(e){return e.baseProps})),n=r.layout,o=r.styling,i=r.interactions,a=r.rootElement,s=r.keyboard,l=r.viewService,u=Dh(Eh,(function(e){return e.setHeadRowHeight})),c=Dh(Eh,(function(e){return e.columnWidths})),d=Dh(Eh,(function(e){return e.setFocusedCellCoord})),p=Dh(Eh,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=D(null),m=!!i.active&&!p;return C((function(){f.current&&u(f.current.clientHeight)}),[o.head.fontSize,c,u]),(null===(e=l.viewState)||void 0===e?void 0:e.skipHeader)?null:x.createElement(sm,null,x.createElement(mm,{ref:f,className:"sn-table-row sn-table-head-row"},t.map((function(e,r){var l=n.qHyperCube.qEffectiveInterColumnSortOrder[0]===e.colIdx,u=l?ne[e.sortDirection]:void 0,p=r===t.length-1,f=[0,e.pageColIdx],h={width:c[r]-(p?8:9),zIndex:t.length-r};return x.createElement(pb,{headerStyle:o.head,style:h,key:e.id,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":u,tabIndex:-1,title:i.passive?e.label:void 0,onKeyDown:function(e){return Bh({evt:e,rootElement:a,cellCoord:f,setFocusedCellCoord:d,isInteractionEnabled:m})},onMouseDown:function(e){return function(e){var t,r=e.evt,n=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.keyboard,s=e.isInteractionEnabled;r.preventDefault(),s&&(i(o),a.enabled&&!a.active?null===(t=a.focus)||void 0===t||t.call(a):Hm({focusType:re.FOCUS_BUTTON,cell:km(n,o)}))}({evt:e,rootElement:a,cellCoord:f,setFocusedCellCoord:d,keyboard:s,isInteractionEnabled:m})}},x.createElement(db,{column:e,isActive:l,isInteractionEnabled:m},x.createElement(ag,{fontSize:o.head.fontSize},e.label)),x.createElement(Lg,{column:e,isLastColumn:p}))}))))},mb=O(fb),hb=function(e){var t,r,n=e.pageInfo,o=e.setPageInfo,i=e.direction,a=e.footerContainer,s=e.announce,l=n.page,u=n.rowsPerPage,c=Dh(Eh,(function(e){return e.tableData})),d=c.totalColumnCount,p=c.totalRowCount,f=c.totalPages,m=c.paginationNeeded,h=c.rows,g=c.columns,b=c.totalsPosition,v=Dh(Eh,(function(e){return e.baseProps})),y=v.rootElement,S=v.keyboard,E=v.translator,w=v.theme,R=v.interactions,A=v.styling,I=v.viewService,q=v.layout,P=Dh(Eh,(function(e){return e.focusedCellCoord})),T=Dh(Eh,(function(e){return e.setFocusedCellCoord})),M=Dh(Eh,(function(e){return e.setYScrollbarWidth})),O=Dh(Eh,(function(e){return e.showRightBorder})),k=Dh(Eh,(function(e){return e.selectionDispatch})),_=Dh(Eh,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),N=D(!1),F=D(null),z=D(null),H=tg(F).yScrollbarWidth,B="".concat(E.get("SNTable.Accessibility.RowsAndColumns",[String(h.length+1),String(g.length)])," ").concat(E.get("SNTable.Accessibility.NavigationInstructions")),$=lr(q,I),V=$&&null!==(t=I.scrollLeft)&&void 0!==t?t:0,W=$&&null!==(r=I.rowPartialHeight)&&void 0!==r?r:0,G=L((function(){N.current=y.getElementsByTagName("table")[0].contains(document.activeElement)}),[y]),U=L((function(e){o(j(j({},n),{page:e})),s({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),f.toString()]],politeness:"assertive"})}),[n,o,f,s]);return function(e,t,r){C((function(){var n=e.current;if(n){var o=function(e){return function(e,t,r){var n,o=e.currentTarget,i=e.relatedTarget,a=o.contains(i),s=null==i?void 0:i.closest(".sn-table-head-menu");!r.enabled||a||s||t.current||(o.querySelector(".sn-table-announcer-1").innerHTML="",o.querySelector(".sn-table-announcer-2").innerHTML="",null===(n=r.blur)||void 0===n||n.call(r,!1))}(e,t,r)};return n.addEventListener("focusout",o),function(){n.removeEventListener("focusout",o)}}}),[e,t,r])}(z,N,S),eg(F,i,I),function(){var e=Dh(Eh,(function(e){return e.baseProps})),t=e.rootElement,r=e.keyboard,n=Dh(Eh,(function(e){return e.focusedCellCoord}));C((function(){var e=n[0]>0?re.FOCUS:re.FOCUS_BUTTON;e=r.active?e:re.BLUR;var o=r.active?km(t,n):_m(t);Hm({focusType:e,cell:o})}),[r.active,t])}(),C((function(){var e=F.current;e&&(e.scrollLeft=V,e.scrollTop=W)}),[n,p,V,W]),Qh((function(){!function(e){var t,r=e.focusedCellCoord,n=e.rootElement,o=e.shouldRefocus,i=e.isSelectionMode,a=e.setFocusedCellCoord,s=e.keyboard,l=e.announce,u=e.totalsPosition;Hm({focusType:re.REMOVE_TAB,cell:_m(n)});var c=[u.atTop?2:1,r[1]],d=i?c:ue;if(zm(s)){var p=o.current?re.FOCUS:re.ADD_TAB;o.current=!1;var f=km(n,d);if(Hm({focusType:p,cell:f}),i){var m=null===(t=null==f?void 0:f.classList)||void 0===t?void 0:t.contains("selected");l({keys:["".concat(f.textContent,","),m?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(d)}({focusedCellCoord:P,rootElement:y,shouldRefocus:N,setFocusedCellCoord:T,isSelectionMode:_,keyboard:S,announce:s,totalsPosition:b})}),[h.length,p,d,l]),Qh((function(){M(H)}),[H]),Qh((function(){k({type:ee.UPDATE_PAGE_ROWS,payload:{pageRows:h}})}),[h]),x.createElement(Zh,{ref:z,background:w.background,dir:i,onKeyDown:function(e){!function(e){var t,r=e.evt,n=e.totalRowCount,o=e.page,i=e.rowsPerPage,a=e.handleChangePage,s=e.setShouldRefocus,l=e.keyboard,u=e.isSelectionMode;if(Ym(r)){Gm(r);var c=Math.ceil(n/i)-1;r.key===te.RIGHT&&o<c?(s(),a(o+1)):r.key===te.LEFT&&o>0&&(s(),a(o-1))}else r.key===te.ESC&&l.enabled&&!u?(Gm(r),null===(t=l.blur)||void 0===t||t.call(l,!0)):Km(r.key)&&Gm(r)}({evt:e,totalRowCount:p,page:l,rowsPerPage:u,handleChangePage:U,setShouldRefocus:G,keyboard:S,isSelectionMode:_})},"data-testid":"sn-table"},x.createElement(ig,null),x.createElement(ng,{ref:F,className:"sn-table-container",fullHeight:a||!R.active||!m,interactions:R,tabIndex:-1,role:"application","data-testid":"table-container"},x.createElement(og,{styling:A,showRightBorder:O,stickyHeader:!0,"aria-label":B},x.createElement(mb,null),x.createElement(vg,j({},e,{setShouldRefocus:G,tableWrapperRef:z})))),R.active&&x.createElement(Lh,{footerContainer:a,paginationNeeded:m},x.createElement(Kh,j({},e,{handleChangePage:U,isSelectionMode:_}))))},gb=O(hb),bb=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vb(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||bb(n)&&bb(o)))return!1;var n,o;return!0}function yb(e,t){var r;void 0===t&&(t=vb);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var xb="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Sb(e){cancelAnimationFrame(e.id)}function Eb(e,t){var r=xb();var n={id:requestAnimationFrame((function o(){xb()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var Cb=-1;function wb(e){if(void 0===e&&(e=!1),-1===Cb||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Cb=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Cb}var Rb=null;function Db(e){if(void 0===e&&(e=!1),null===Rb||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Rb="positive-descending":(t.scrollLeft=1,Rb=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Rb}return Rb}var Ab=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ib(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=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 n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Al(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Al(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=yb((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=yb((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=yb((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(Db()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Sb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Eb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Dl(t,e),t.getDerivedStateFromProps=function(e,t){return qb(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=wb();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Db()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Sb(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Ab:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),D=w[0],A=w[1],I=[];if(n>0&&g)for(var q=D;q<=A;q++)for(var P=E;P<=C;P++)I.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:q}),rowIndex:q,style:this._getItemStyle(q,P)}));var T=a(this.props,this._instanceProps),L=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:cr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:l,style:{height:T,pointerEvents:x?"none":void 0,width:L}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(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]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var qb=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Pb=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Tb=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Lb=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},Mb=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?Ob(e,t,r,i,0,n):kb(e,t,r,Math.max(0,i),n)},Ob=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=Lb(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},kb=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&Lb(e,t,n,r).offset<o;)n+=a,a*=2;return Ob(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},_b=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=Lb(e,t,r,i),u="column"===e?Tb(t,i):Pb(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},Nb=Ib({getColumnOffset:function(e,t,r){return Lb("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return Mb("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=Lb("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Lb("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:Pb,getEstimatedTotalWidth:Tb,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return _b("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return _b("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return Lb("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return Mb("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=Lb("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Lb("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Fb=function(e,t){return e};function zb(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Al(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Al(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=yb((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=yb((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,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},n._getItemStyleCache=void 0,n._getItemStyleCache=yb((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Db()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Sb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Eb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Dl(t,e),t.getDerivedStateFromProps=function(e,t){return jb(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?wb():0:l.scrollHeight>l.clientHeight?wb():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(Db()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Sb(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Fb:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],D=[];if(u>0)for(var A=C;A<=w;A++)D.push(R(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:cr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:D,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var jb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Hb=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},Bb=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Hb(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},$b=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Hb(e,r,t).offset<n;)r+=i,i*=2;return Bb(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Vb=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Wb=zb({getItemOffset:function(e,t,r){return Hb(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Vb,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=Hb(e,t,o),p=Vb(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Bb(e,t,o,0,r):$b(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=Hb(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Hb(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Gb(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var Ub=["style"],Yb=["style"];function Kb(e,t){var r=e.style,n=Ur(e,Ub),o=t.style,i=Ur(t,Yb);return!Gb(r,o)&&!Gb(n,i)}var Zb=function(e){var t=e.style;return x.createElement("div",{className:"sn-table-cell",style:j(j({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},Xb=x.memo(Zb,Kb),Jb=function(){},Qb=function(e){return e.preventDefault()};var ev,tv=function(e){var t,r=e.columnIndex,n=e.rowIndex,o=e.style,i=e.data,a=i.rowsInPage,s=i.columns,l=i.bodyStyle,u=i.isHoverEnabled,c=i.maxLineCount,d=Dh(Eh,(function(e){return e.hoverIndex===n})),p=Dh(Eh,(function(e){return e.setHoverIndex})),f=Dh(Eh,(function(e){return e.baseProps})).interactions,m=Dh(Eh,(function(e){return e.showRightBorder})),h=null===(t=a[n])||void 0===t?void 0:t["col-".concat(r)],g=function(e){var t=Dh(Eh,(function(e){return e.baseProps})).interactions,r=Dh(Eh,(function(e){return e.selectionDispatch})),n="object"==typeof e,o=Dh(Eh,(function(t){return n?th(e,t.selectionState):Q.INACTIVE})),i=t.active&&t.select;if(n&&i){var a=lg(Qb,e,r,Jb);return{handleMouseDown:a.handleMouseDown,handleMouseOver:a.handleMouseOver,handleMouseUp:a.handleMouseUp,cellSelectionState:o}}return{cellSelectionState:o}}(h),b=g.handleMouseDown,v=g.handleMouseOver,y=g.handleMouseUp,S=g.cellSelectionState;if("object"==typeof h){var E=function(e,t,r,n,o){var i=o.hoverColors;o.lastRowBottomBorder;var a=H(o,["hoverColors","lastRowBottomBorder"]),s=t.stylingIDs.length?bh(a,e.qAttrExps,t.stylingIDs):a;return n===Q.SELECTED?j(j({},s),Am.SELECTED):n===Q.EXCLUDED?j(j({},s),{color:r?null==i?void 0:i.color:s.color,background:"".concat(Am.EXCLUDED_BACKGROUND,", ").concat(r?null==i?void 0:i.background:s.background)}):r?j(j({},s),i):s}(h,s[r],u&&d,S,l),C={rowindex:n,columnindex:r};return x.createElement("div",j({className:"sn-table-cell ".concat(S),style:j(j(j({},o),E),{display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:h.isLastRow?"0px":"".concat(1,"px"),borderRightWidth:h.isLastColumn&&!m?"0px":"".concat(1,"px"),borderStyle:"solid",justifyContent:h.align,padding:"4px ".concat(12,"px"),boxSizing:"border-box",cursor:"default"}),onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:u?function(){return p(n)}:void 0,onMouseLeave:u?function(){return p(-1)}:void 0,title:f.passive?h.qText:void 0},C),x.createElement(ag,{wordBreak:!h.isNumeric,lines:c},h.qText))}return x.createElement(Xb,{style:j(j(j({},o),l),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},rv=x.memo(tv,Kb),nv=function(e){var t=D(e);return t.current=e,t},ov=function(e){var t=e.qLeft,r=e.qTop,n=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(r,"-").concat(n,"-").concat(o)},iv=function(e,t){var r=D(new Set),n=D(new Set),o=D(new Set),i=nv(e),a=nv(t),s=E((function(){return{enqueue:function(e){var t=ov(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((function(){return B(void 0,void 0,void 0,(function(){var e,t,s;return $(this,(function(l){switch(l.label){case 0:if(0===(e=Array.from(r.current.values())).length)return[2];r.current.clear(),n.current.add(e),l.label=1;case 1:return l.trys.push([1,3,4,5]),t=function(e){var t=[];return e.forEach((function(e){if(t.length>0){var r=t[t.length-1];!function(e,t){return e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth}(r,e)?function(e,t){return e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight}(r,e)?r.qWidth+=e.qWidth:t.push(j({},e)):r.qHeight+=e.qHeight}else t.push(j({},e))})),t}(e),[4,i.current(t)];case 2:return s=l.sent(),n.current.has(e)&&a.current(s),[3,5];case 3:return l.sent(),e.forEach((function(e){o.current.delete(ov(e))})),[3,5];case 4:return n.current.delete(e),[7];case 5:return[2]}}))}))}),75))},clear:function(){r.current.clear(),n.current.clear(),o.current.clear()}}}),[i,a]);return s},av=function(e,t,r,n,o){var i=e[r];if(!i)return!0;for(var a=t;a<t+n;a++){var s=i["col-".concat(a)];if((null==s?void 0:s.rowIdx)!==o)return!0}return!1},sv=function(e,t,r,n){var o=e.slice(r,n);return 0===o.length||o.some((function(e){return!(null==e?void 0:e["col-".concat(t)])}))},lv=function(e,t,r,n,o,i){e.forEach((function(e){e.qMatrix.forEach((function(a,s){var l=e.qArea.qTop-t.page*t.rowsPerPage,u=function(e,t,r,n,o,i,a,s){var l,u=n.qTop+r,c=o+r,d=null!==(l=e[c])&&void 0!==l?l:{key:"row-".concat(c)};return t.forEach((function(e,t){var r,o=t+n.qLeft,l=i[o],p=l.colIdx,f=l.isDim,m=l.isLocked,h=l.id,g=l.bodyTextAlign,b=l.selectionColIdx,v=er(e);d[h]=j(j({},e),{align:ir(e,g),rowIdx:u,colIdx:p,isSelectable:f&&!m,pageRowIdx:c,pageColIdx:o,selectionColIdx:b,isLastRow:u===a.qcy-1,isLastColumn:o===a.qcx-1,isNumeric:v}),s(null!==(r=e.qText)&&void 0!==r?r:"",c,o,v)})),{row:d,pageRowIdx:c}}(r,a,s,e.qArea,l,n,o.qHyperCube.qSize,i),c=u.row,d=u.pageRowIdx;r[d]=c}))}))},uv=function(e){var t=e.layout,r=e.model,n=e.theme,o=e.initialDataPages,i=e.pageInfo,a=e.rowCount,s=e.visibleRowCount,l=e.visibleColumnCount,u=e.columns,c=e.setCellSize,d=e.gridState,p=D([]),f=nv(c),m=L((function(e,r){var n=Array.isArray(r)?r.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return lv(e,i,n,u,t,f.current),p.current=n,n}),[a,i,u,t,f]),h=S((function(){return m(null!=o?o:[])})),g=h[0],b=h[1];El((function(){b(m(null!=o?o:[]))}),[o]);var v=iv((function(e){return r.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return b((function(t){return m(e,t)}))})),y=L((function(e,t,r,n){for(var o=e;o<e+r;o++)if(sv(p.current,o,t,n)){var i={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(i)}}),[p,v]),x=L((function(e,t,r,n){for(var o=t;o<t+n;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(av(p.current,e,a,r,o)){var s={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(s)}}}),[p,v,i]),E=n.name();return C((function(){var e=t.qHyperCube.qSize,r=e.qcx,n=e.qcy,o=d.current.overscanRowStartIndex,a=d.current.overscanColumnStartIndex,u=o+i.page*i.rowsPerPage,c=r-a,p=i.rowsPerPage-o,f=Math.min(100,c,r,l+5),m=Math.min(100,p,n,s+25);return x(a,u,f,m),function(){v.clear()}}),[t,s,l,i,v,x,d,E]),{rowsInPage:g,loadRows:x,loadColumns:y}},cv=function(e){var t,r=e.style,n=e.columnWidths,o=e.rowHeight,i=e.pageInfo,a=e.rowCount,s=e.gridRef,l=e.lineRef,u=e.columns,c=e.boldText,d=e.gridState,p=e.isSnapshot,f=e.viewService,m=e.maxNbrLines,h=void 0===m?3:m,g=D({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=Dh(Eh,(function(e){return e.baseProps})),v=b.layout,y=b.rect,x=S(o||24),E=x[0],C=x[1],w=Mm(r.fontSize,r.fontFamily,c),R=w.measureText,A=w.estimateLineCount,I=parseInt(null!==(t=r.fontSize)&&void 0!==t?t:Pm.fontSize,10)*sh,q=8e6/a-8-1,P=Math.max(0,Math.min(h,Math.round(q/I))),T=L((function(e,t,r){var o=u?function(e,t){var r=e-71;return r-(t.isLocked?24:0)}(n[t],u[t]):function(e){return e-24-1}(n[t]),i=Math.min(P,A({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*I+8+1}),[n,I,P,u,A]),M=L((function(e,t,r,n,o){void 0===n&&(n=!1),void 0===o&&(o=!1);var i="".concat(t,"-").concat(r);if(!g.current.measuredCells.has(i)){g.current.measuredCells.set(i,[e,t,r,n]);var a=T(e,r,n),s=g.current.heights[t],l=a-s;l>0?(g.current.totalHeight+=l,g.current.heights[t]=a):void 0===s&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||p||C(g.current.totalHeight/g.current.count)}}),[T,p]),O=L((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:E}),[g,E]),k=L((function(){g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),_=nv(M),N=L((function(){var e=new Map(g.current.measuredCells);k(),e.forEach((function(e){var t=e[0],r=e[1],n=e[2],o=e[3];_.current(t,r,n,o,!0)})),p||C(g.current.totalHeight/g.current.count)}),[k,p,_]);El((function(){k()}),[v,i]),El((function(){N()}),[R,y.width]);return(null==s?void 0:s.current)?s.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):(null==l?void 0:l.current)&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),f.estimatedRowHeight=E,{setCellSize:M,getRowHeight:O,rowMeta:g,estimatedRowHeight:E,maxLineCount:P,resizeVisibleCells:function(e){var t;if(d){k();for(var r=d.current,n=r.overscanRowStartIndex,o=r.overscanRowStopIndex,i=Math.min(o,v.qHyperCube.qSize.qcy-1),a=function(r){var n=null!==(t=e[r])&&void 0!==t?t:{};Object.values(n).forEach((function(e){var t;"object"==typeof e&&M(null!==(t=e.qText)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))},s=n;s<=i;s++)a(s)}},resizeAllCells:N,resetRowMeta:k}};!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(ev||(ev={}));var dv={enabled:!1},pv=function(){},fv={current:null};var mv=function(e,t,r,n,o){var i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=E((function(){return n.reduce((function(e,t){return e.width<r.width&&(e.width+=t,e.count+=1),e}),{count:0,width:0})}),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},hv=function(e){var t,r=e.columnIndex,n=e.data,o=e.rowIndex,i=null===(t=n.rowsInPage[o])||void 0===t?void 0:t["col-".concat(r)];return"".concat(null==i?void 0:i.qElemNumber,"-").concat(null==i?void 0:i.qText,"-").concat(o,"-").concat(r)},gv={overflow:"hidden",willChange:"auto"},bv=M((function(e,t){var r,n,o,i=e.rect,a=e.columns,s=e.innerForwardRef,l=e.pageInfo,u=e.bodyStyle,c=e.rowHeight,d=e.headerAndTotalsHeight,p=e.syncHeight,f=Dh(Eh,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,b=f.viewService,v=Dh(Eh,(function(e){return e.columnWidths})),y=Dh(Eh,(function(e){return e.initialDataPages})),S=null===(r=b.viewState)||void 0===r?void 0:r.maxLineCount,w=D(null),R=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),A=!!(null===(o=null===(n=ph(m))||void 0===n?void 0:n.content)||void 0===o?void 0:o.hoverEffect),I=function(){var e=D(0),t=D(0),r=D(ev.None),n=D(ev.None);return{scrollHandler:L((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?r.current=ev.Down:i<t.current?r.current=ev.Up:r.current=ev.None,a>e.current?n.current=ev.Right:a<e.current?n.current=ev.Left:n.current=ev.None,t.current=i,e.current=a}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}}(),q=I.scrollHandler,P=I.verticalScrollDirection,T=I.horizontalScrollDirection,M=mv(m,l,i,v,c),O=M.rowCount,_=M.visibleRowCount,F=M.visibleColumnCount,z=cv({pageInfo:l,style:u,rowHeight:c,columnWidths:v,gridRef:w,rowCount:O,gridState:R,isSnapshot:!!m.snapshotData,viewService:b,maxNbrLines:S}),j=z.setCellSize,H=z.getRowHeight,B=z.rowMeta,$=z.estimatedRowHeight,V=z.maxLineCount,W=z.resizeVisibleCells,G=uv({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:l,rowCount:O,visibleRowCount:_,visibleColumnCount:F,columns:a,setCellSize:j,gridState:R}),U=G.rowsInPage,Y=function(e){var t=e.layout,r=e.loadRows,n=e.loadColumns,o=e.verticalScrollDirection,i=e.horizontalScrollDirection,a=e.rowCount,s=e.pageInfo,l=e.gridState,u=e.viewService,c=L((function(e){var c=e.overscanColumnStartIndex,d=e.overscanColumnStopIndex,p=e.overscanRowStartIndex,f=e.overscanRowStopIndex,m=e.visibleColumnStartIndex,h=e.visibleColumnStopIndex,g=e.visibleRowStartIndex,b=e.visibleRowStopIndex;if(l.current.overscanColumnStartIndex=c,l.current.overscanColumnStopIndex=d,l.current.overscanRowStartIndex=p,l.current.overscanRowStopIndex=f,!(p>a)){var v=c,y=p+s.page*s.rowsPerPage,x=d-c+1,S=f-p+1;if(u.visibleLeft=m,u.visibleWidth=h-m+1,u.visibleTop=g+s.page*s.rowsPerPage,u.visibleHeight=b-g+1,u.page=s.page,u.rowsPerPage=s.rowsPerPage,o.current===ev.Down)r(v,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===ev.Up){var E=S+25,C=s.page*s.rowsPerPage,w=Math.max(C,y-25);r(v,w,x,E)}if(i.current===ev.Right){var R=t.qHyperCube.qSize.qcx-v,D=x+5,A=Math.min(R,D);n(v,y,A,S)}else if(i.current===ev.Left){var I=Math.max(0,v-5);D=Math.min(t.qHyperCube.qSize.qcx,x+5),n(I,y,D,S)}}}),[l,a,s.page,s.rowsPerPage,u,o,i,r,t.qHyperCube.qSize.qcx,n]);return c}({layout:m,loadRows:G.loadRows,loadColumns:G.loadColumns,verticalScrollDirection:P,horizontalScrollDirection:T,rowCount:O,pageInfo:l,gridState:R,viewService:b}),K=E((function(){return{rowsInPage:U,columns:a,bodyStyle:u,isHoverEnabled:A,maxLineCount:V}}),[U,a,u,A,V]),Z=function(e,t,r,n){var o=e.height;return r*n<(o-=t)&&(o=Math.min(r*n,o)),o}(i,d,O,$);return k((function(){var e,t;p(null!==(t=null===(e=s.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!0)}),[O,p,s]),k((function(){var e,t,r;p(null!==(t=null===(e=s.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!1),1===B.current.lastScrollToRatio&&(null===(r=w.current)||void 0===r||r.scrollToItem({rowIndex:O-1,align:"start"}))})),function(e){var t=Dh(Eh,(function(e){return e.baseProps})).selectionsAPI,r=Dh(Eh,(function(e){return e.selectionDispatch}));C((function(){r({type:ee.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),sg({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:pv,keyboard:dv,tableWrapperRef:fv})}(U),El((function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,l,g.name(),i.width,v]),N(t,(function(){return{interpolatedScrollTo:function(e,t){var r,n,o,i,a,l=(null!==(n=null===(r=s.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:Z)-Z,u=Math.round(l*e);B.current.lastScrollToRatio=e,1===B.current.lastScrollToRatio?(null===(o=w.current)||void 0===o||o.scrollToItem({rowIndex:O-1,align:"start"}),null===(i=w.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=w.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),W(U)}}}),[s,Z,B,O,W,U]),x.createElement(Nb,{"data-key":"body",ref:w,innerRef:s,style:gv,columnCount:m.qHyperCube.qSize.qcx,columnWidth:function(e){return v[e]},height:Z,rowCount:O,rowHeight:H,estimatedRowHeight:$,width:i.width,itemData:K,onItemsRendered:Y,onScroll:q,itemKey:hv,className:"sn-table-body"},rv)})),vv=O(bv),yv=function(e){var t=e.width,r=e.height,n=e.children;return x.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r}},n)},xv=function(e){var t=e.index,r=e.style,n=e.data,o=n.columns,i=H(n.headerStyle,[]),a=n.columResizeHandler,s=Dh(Eh,(function(e){return e.baseProps})),l=s.layout,u=s.interactions,c=Dh(Eh,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=Dh(Eh,(function(e){return e.showRightBorder})),p=o[t],f=o.length-1===t,m=l.qHyperCube.qEffectiveInterColumnSortOrder[0]===p.colIdx,h=!!u.active&&!c,g="right"===p.headTextAlign?"row-reverse":"row";return x.createElement("div",{className:"sn-table-cell",title:u.passive?p.label:void 0,style:j(j(j({},r),i),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:f&&!d?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:p.headTextAlign,boxSizing:"border-box",cursor:"default",zIndex:o.length-t,flexDirection:g,userSelect:"none"})},x.createElement(db,{column:p,isActive:m,isInteractionEnabled:h},x.createElement(ag,{wordBreak:!0,lines:3},p.label)),x.createElement(Lg,{column:p,isLastColumn:f,onColumnResize:a}))},Sv=function(e,t,r,n,o){k((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},Ev={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Cv=function(e){var t=e.rect,r=e.forwardRef,n=e.columns,o=e.pageInfo,i=e.headerStyle,a=e.rowHeight,s=e.columResizeHandler,l=Dh(Eh,(function(e){return e.baseProps})),u=l.layout,c=l.theme,d=Dh(Eh,(function(e){return e.columnWidths}));return Sv(r,u,o,d,c.name()),x.createElement(Wb,{ref:r,layout:"horizontal",style:Ev,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:n,headerStyle:i,columResizeHandler:s}},xv)},wv=O(Cv),Rv=x.forwardRef((function(e,t){var r=e.children,n=e.width,o=e.height,i=e.onScroll,a=Dh(Eh,(function(e){return e.baseProps})).interactions;return x.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i},r)})),Dv=function(e){var t=e.children,r=e.rect;return x.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:r.width,height:r.height}},t)},Av=function(e){var t=e.index,r=e.style,n=e.data,o=Dh(Eh,(function(e){return e.baseProps})),i=o.layout,a=o.interactions,s=Dh(Eh,(function(e){return e.showRightBorder})),l=n.totalsStyle;l.hoverColors;var u=H(l,["hoverColors"]),c=n.columns,d=n.totals,p=c[t].totalInfo,f=c[t].totalsTextAlign,m=i.qHyperCube.qSize.qcx-1===t;return x.createElement("div",{className:"sn-table-cell",title:a.passive?p:void 0,style:j(j(j({},r),u),{display:"flex",alignItems:d.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!s?"0px":"1px",borderTopWidth:d.atBottom?"1px":"0px",borderBottomWidth:d.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,boxSizing:"border-box",cursor:"default",fontWeight:"600"})},x.createElement(ag,{wordBreak:!Qt(p),lines:3},p))},Iv=function(e){var t=e.rect,r=e.forwardRef,n=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,s=Dh(Eh,(function(e){return e.baseProps})),l=s.layout,u=s.styling,c=s.theme,d=Dh(Eh,(function(e){return e.columnWidths}));return Sv(r,l,n,d,c.name()),x.createElement(Wb,{ref:r,layout:"horizontal",style:Ev,itemCount:l.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},Av)},qv=O(Iv),Pv=function(e){var t=e.columns,r=e.columnWidths,n=e.pageInfo,o=e.headerRef,i=e.totalsRef,a=e.totalsPosition,s=e.isSnapshot,l=e.viewService,u=Dh(Eh,(function(e){return e.baseProps})).styling,c=cv({style:u.head,columnWidths:r,lineRef:o,rowCount:1,pageInfo:n,boldText:!0,columns:t,isSnapshot:s,viewService:l}),d=cv({style:u.totals,columnWidths:r,lineRef:i,rowCount:1,pageInfo:n,boldText:!0,isSnapshot:s,viewService:l});t.forEach((function(e,t){c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Qt(e.totalInfo))}));var p=c.getRowHeight(0)+8,f=d.getRowHeight(0),m=s?l.estimatedRowHeight:function(e){var t=e.fontSize,r=void 0===t?Pm.fontSize:t;return Math.max(24,lh(r))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},Tv=function(e){var t,r=e.pageInfo,n=Dh(Eh,(function(e){return e.tableData})),o=n.totalsPosition,i=n.columns,a=n.paginationNeeded,s=Dh(Eh,(function(e){return e.baseProps})),l=s.layout,u=s.theme,c=s.styling,d=s.rect,p=s.viewService,f=Dh(Eh,(function(e){return e.columnWidths})),m=Dh(Eh,(function(e){return e.setYScrollbarWidth})),h=D(null),g=D(null),b=D(null),v=D(null),y=D(),C=tg(h),w=C.xScrollbarWidth,R=C.yScrollbarWidth,A=E((function(){var e;return j(j({},c.body),{background:null!==(e=u.background.color)&&void 0!==e?e:"transparent"})}),[u.background.color,c]),I=Pv({columns:i,columnWidths:f,pageInfo:r,totalsPosition:o,headerRef:g,totalsRef:b,isSnapshot:!!l.snapshotData,viewService:p}),q=I.headerRowHeight,P=I.totalsRowHeight,T=I.bodyRowHeight,M=I.headerAndTotalsHeight,O=I.resizeAllHeaderCells,_=I.resizeAllTotalCells,N=E((function(){return function(e,t){var r=e.height-(t?41:0);return{width:e.width,height:r}}(d,a)}),[d,a]),F=E((function(){return function(e,t,r){return{width:e.width-r,height:e.height-t}}(N,w,R)}),[N,w,R]),z=mv(l,r,F,f,T).rowCount,H=S(z*T+M),B=H[0],$=H[1],V=f.reduce((function(e,t){return e+t}),0),W=function(e,t,r,n){return L((function(o){var i,a,s,l=o.currentTarget,u=l.scrollHeight,c=l.clientHeight,d=l.scrollTop,p=l.scrollLeft,f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(a=e.current)||void 0===a||a.scrollTo(p),null===(s=t.current)||void 0===s||s.scrollTo(p)}),[n,r,e,t])}(g,b,v,p),G=L((function(e,t){void 0===t&&(t=!1);var r=e+M;(B<F.height&&r>F.height||t)&&$(r)}),[B,M,F.height]),U=L((function(){var e;h.current&&(h.current.scrollTop=0),null===(e=v.current)||void 0===e||e.resizeCells(),O(),_()}),[h,O,_]);k((function(){h.current&&(h.current.scrollLeft=0,h.current.scrollTop=0)}),[i.length]);var Y=u.name();k((function(){h.current&&(h.current.scrollTop=0)}),[r,z,Y]),Qh((function(){m(R)}),[R]);var K=x.createElement(qv,{rect:F,pageInfo:r,columns:i,forwardRef:b,totals:o,rowHeight:P});return x.createElement(Rv,{ref:h,width:N.width,height:N.height,onScroll:W},x.createElement(yv,{width:V,height:B},x.createElement(Dv,{rect:F},(null===(t=p.viewState)||void 0===t?void 0:t.skipHeader)?null:x.createElement(wv,{headerStyle:c.head,rect:F,pageInfo:r,columns:i,forwardRef:g,rowHeight:q,columResizeHandler:U}),o.atTop?K:null,x.createElement(vv,{ref:v,innerForwardRef:y,bodyStyle:A,rect:F,pageInfo:r,columns:i,rowHeight:T,headerAndTotalsHeight:M,syncHeight:G}),o.atBottom?K:null)))},Lv=O(Tv),Mv=O((function(){var e=Dh(Eh,(function(e){return e.baseProps})).theme,t=Dh(Eh,(function(e){return e.tableData})).paginationNeeded,r=Dh(Eh,(function(e){return e.pageInfo})),n=Dh(Eh,(function(e){return e.setPage}));return x.createElement(Zh,{"data-testid":"sn-table",background:e.background,dir:"ltr"},x.createElement(Lv,{pageInfo:r}),t&&x.createElement(Lh,null,x.createElement(Kh,{handleChangePage:function(e){return n(e)},isSelectionMode:!1,pageInfo:r,setPageInfo:function(){},announce:function(){}})))}));var Ov,kv={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(Ov||(Ov={}));var _v,Nv=function(e,r){return t((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(kv).forEach((function(t){e.add(kv[t])}))}}(r),function(){return function(e,t,r){var n=r||null;return function(r){var o,i=r.keys,a=r.shouldBeAtomic,s=void 0===a||a,l=r.politeness,u=void 0===l?"polite":l,c=i.map((function(e){if(Array.isArray(e)){var r=e[0],n=e.slice(1);return t.get(r,n)}return t.get(e)})).join(" "),d=e.querySelector(".sn-table-announcer-1"),p=e.querySelector(".sn-table-announcer-2");n===Ov.FIRST?(o=p,n=Ov.SECOND):(o=d,n=Ov.FIRST),o.innerHTML=o.innerHTML.endsWith(" ")?c:"".concat(c," "),o.setAttribute("aria-atomic",s.toString()),o.setAttribute("aria-live",u)}}(e,r)}}),[e,r.language()])},Fv={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},zv=function(e){var t=e.app,r=e.model,s=e.rootElement,l=e.layout,u=e.interactions,c=e.translator,d=e.selectionsAPI,p=e.theme,f=e.changeSortOrder,m=e.keyboard,h=e.rect,g=e.embed,b=e.reactRoot,v=e.applyColumnWidths,y=e.isFontLoaded,S=e.viewService,E=n(),C=E.direction,w=E.footerContainer,R=lr(l,S),D=ur(l,S),A=Nv(s,c),I=R?{page:S.page||Fv.page,rowsPerPage:S.rowsPerPage||Fv.rowsPerPage,rowsPerPageOptions:Fv.rowsPerPageOptions}:Fv,q=o(I),P=q[0],T=q[1],L=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return D?[2,sr(r,l,P,T,S)]:[2,null]}))}))}),[l,P,r,u,D])[0];a((function(){!!(D&&b&&r&&(l.snapshotData||t)&&l&&L&&f&&p&&d&&y&&g)&&function(e,t){var r=e.app,n=e.model,o=e.direction,i=e.selectionsAPI,a=e.layout,s=e.translator,l=e.interactions,u=e.theme,c=e.keyboard,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.applyColumnWidths,h=e.tableData,g=e.rect,b=e.viewService,v=H(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),y=Ah(o);null==t||t.render(x.createElement(di,{stylisPlugins:"rtl"===o?[Sl]:void 0},x.createElement(pl,{theme:y},x.createElement(Rh,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b},x.createElement(gb,j({},v,{direction:o}))))))}({app:t,model:r,rootElement:s,layout:l,tableData:L,direction:C,pageInfo:P,setPageInfo:T,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,footerContainer:w,announce:A,embed:g,applyColumnWidths:v,viewService:S},b)}),[t,r,b,L,u,C,p.name(),m.active,A,f,v,D,l,d,g,s,P,T,c,h,w,y])},jv=z;_v=jv.createRoot,jv.hydrateRoot;var Hv=function(e,r){return t((function(){return function(e,t){if(t)return function(r){return B(void 0,void 0,void 0,(function(){var n,o,i,a,s,l,u;return $(this,(function(c){switch(c.label){case 0:return n=r.isDim,o=r.colIdx,i=r.qReverseSort,a=n?o:o-e,[4,t.getEffectiveProperties()];case 1:return s=c.sent(),l=s.qHyperCubeDef.qInterColumnSortOrder,u=[],o!==l[0]?(l.splice(l.indexOf(o),1),l.unshift(o),u.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:"[".concat(l.join(","),"]")})):u.push({qPath:"/qHyperCubeDef/".concat(n?"qDimensions":"qMeasures","/").concat(a,"/qDef/qReverseSort"),qOp:"Replace",qValue:(!i).toString()}),t.applyPatches(u,!0),[2]}}))}))}}(e.qDimensionInfo.length,r)}),[e.qDimensionInfo.length,r])};var Bv=function(e,t,r){return B(void 0,void 0,void 0,(function(){var n,o;return $(this,(function(i){switch(i.label){case 0:return n=t.qHyperCube.qDataPages,0===r&&void 0!==n&&0!==n.length?[3,2]:(o=r*Math.min(Tm,t.qHyperCube.qSize.qcy),[4,e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])]);case 1:n=i.sent(),i.label=2;case 2:return[2,{initialDataPages:n,derivedFrom:{layout:t,page:r}}]}}))}))},$v=function(e){var r=e.app,n=e.layout,s=e.model,l=e.rect,u=e.theme,c=e.keyboard,d=e.translator,p=e.interactions,f=e.selectionsAPI,m=e.changeSortOrder,h=e.rootElement,g=e.embed,b=e.reactRoot,v=e.applyColumnWidths,y=e.isFontLoaded,S=e.viewService,E=!ur(n,S),C=t((function(){return function(e,t,r){var n=nr(e,r),o=ar(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Tm,i),s=i>Tm&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:s}}(n,p,S)}),[n,p,S]),w=function(e,r){var n=o(0),i=n[0],a=n[1],s=Math.min(Tm,e.qHyperCube.qSize.qcy),l=t((function(){return{page:i,rowsPerPage:s,rowsPerPageOptions:[]}}),[s,i]);if(r){var u=Math.floor(e.qHyperCube.qSize.qcy/Tm);u<i&&a(u)}return{pageInfo:l,setPage:a}}(n,E),R=w.pageInfo,D=w.setPage,A=function(e){var t=e.model,r=e.layout,n=e.shouldRender,o=e.page,a=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return n&&t?[2,Bv(t,r,o)]:[2,void 0]}))}))}),[t,r,o])[0],s=(null==a?void 0:a.derivedFrom.layout)!==r||(null==a?void 0:a.derivedFrom.page)!==o;return{initialDataPages:null==a?void 0:a.initialDataPages,isLoading:s}}({model:s,layout:n,page:R.page,shouldRender:E}),I=A.initialDataPages,q=A.isLoading;a((function(){E&&s&&m&&I&&!q&&y&&function(e,t){var r=e.app,n=e.selectionsAPI,o=e.layout,i=e.model,a=e.translator,s=e.interactions,l=e.theme,u=e.keyboard,c=e.rect,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.tableData,h=e.applyColumnWidths,g=e.setPage,b=e.pageInfo,v=e.initialDataPages,y=e.viewService,S=Ah("ltr");t.render(x.createElement(x.StrictMode,null,x.createElement(pl,{theme:S},x.createElement(Rh,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:s,theme:l,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y},x.createElement(Mv,null)))))}({app:r,layout:n,model:s,rect:l,theme:u,keyboard:c,translator:d,interactions:p,selectionsAPI:f,rootElement:h,embed:g,changeSortOrder:m,tableData:C,applyColumnWidths:v,setPage:D,pageInfo:R,initialDataPages:I,viewService:S},b)}),[r,n,s,l,u.name(),c.active,d,p,f,m,E,h,g,b,C,v,D,R,q,I,y])};const Vv={version:JSON.stringify("2.7.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function Wv(e,t){var r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};var n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=(null==a?void 0:a.getBoundingClientRect())||{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=function(e,t){if(!e)return-1;for(var r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1}(l,u),d=function(e,t){if(!e)return-1;for(var r=e.length-1;r>-1;r--){var n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1}(l,u),p=function(e,t,r){if(!e||0===e.length||r<0)return 0;var n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)}(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}var Gv=function(e,t){if(t)for(var r=0;r<t.length;r++){var n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},Uv=function(e,t,r){if(!e)return!1;var n=e.y+e.height/2;return n>=t&&n<=r};var Yv=function(e,t,r,n){var o;if(e<0)return 0;var i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||Fv.rowsPerPage,s=(null===(o=n.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+s)},Kv=function(e,t,r){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var n=nr(e,t);if(ur(e,t)){var o=Wv(r,n),i=o.visibleRowStartIndex,a=void 0===i?-1:i,s=o.visibleRowEndIndex,l=void 0===s?-1:s;return{rowPartialHeight:o.rowPartialHeight,scrollLeft:t.scrollLeft,visibleTop:t.qTop+a,visibleHeight:Yv(l,a,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}var u=function(e,t){var r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};var i=t.scrollTopRatio,a=void 0===i?0:i,s=t.visibleTop,l=void 0===s?0:s,u=t.visibleHeight,c=void 0===u?0:u,d=t.page,p=void 0===d?0:d,f=t.rowsPerPage,m=p*(void 0===f?0:f),h=l-m,g=h+c-1,b=Gv(h,o),v=null==b?void 0:b.getBoundingClientRect();if(!b||!v)return{};var y=n.y;if(1-a<.001)return{visibleRowStartIndex:h+(v.y>=y-4?0:1)+m,visibleRowEndIndex:g+m};var x=n.y+n.height,S=(Uv(v,y,x)?h:h+1)+m,E=g+m,C=Gv(g,o),w=null==C?void 0:C.getBoundingClientRect();return C&&w&&(Uv(w,y,x)||(E=g-1+m)),{visibleRowStartIndex:S,visibleRowEndIndex:E}}(r,t),c=u.visibleRowStartIndex,d=void 0===c?-1:c,p=u.visibleRowEndIndex,f=void 0===p?-1:p;return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:d,visibleHeight:Yv(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}};function Zv(o){return{qae:{properties:{initial:Vv},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]}},ext:Vt(o),component:function(){var y,x=u(),S=function(e){var r=t((function(){return _v(e)}),[e]);return a((function(){return function(){return r.unmount()}}),[r]),r}(x),E=c(),C=d(),w=p(),R=f(),D=m(),A=h(),I=g(),q=n().freeResize,P=b(),T=(null===(y=null==E?void 0:E.snapshotData)||void 0===y?void 0:y.content)&&!q?j(j({},P),E.snapshotData.content.size):P,L=function(e){var r=n().viewState;return t((function(){return function(e,t){var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null===(r=null==t?void 0:t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(i=null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.visibleTop)&&void 0!==i?i:null==e?void 0:e.visibleTop,visibleHeight:null!==(s=null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.visibleHeight)&&void 0!==s?s:null==e?void 0:e.visibleHeight,scrollLeft:null!==(c=null!==(u=null===(l=null==t?void 0:t.content)||void 0===l?void 0:l.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==c?c:0,scrollTopRatio:null!==(p=null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.scrollTopRatio)&&void 0!==p?p:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(m=null===(f=null==t?void 0:t.content)||void 0===f?void 0:f.rowsPerPage)&&void 0!==m?m:null==e?void 0:e.rowsPerPage,page:null!==(g=null===(h=null==t?void 0:t.content)||void 0===h?void 0:h.page)&&void 0!==g?g:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(v=null===(b=null==t?void 0:t.content)||void 0===b?void 0:b.estimatedRowHeight)&&void 0!==v?v:0}}(r,e.snapshotData)}),[r,e.snapshotData,e.usePagination])}(E),M=v(),O=function(e){var n=r();return t((function(){return j(j({},n),{background:Jt(n,e)})}),[n.name(),e])}(x),k=Hv(E.qHyperCube,w),_=Gt(E.qHyperCube,w),N=function(e,t){var r=mh(t,e,!1),n=r.fontSize,o=r.fontFamily,a=hh(t,e),s=a.fontSize,l=a.fontFamily,u=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return[4,document.fonts.load("600 ".concat(n," ").concat(o))];case 1:return e.sent(),[4,document.fonts.load("".concat(s," ").concat(l))];case 2:return e.sent(),[2,!0]}}))}))}),[n,o,s,l]),c=u[0],d=u[1];return d?(console.warn("Failed to load font:",d),!0):!!c}(O,E);!function(){var t=this;null==e||e((function(e,r){r.target&&r.target.closest(".sn-table-cell")&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:function(){return B(t,void 0,void 0,(function(){return $(this,(function(e){return Wt(r),[2]}))}))}})}))}(),o.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&function(e){var t=e.layout,r=e.viewService,n=e.model,o=e.rootElement,i=e.contentRect;s((function(e){return B(void 0,void 0,void 0,(function(){var a,s,l,u,c,d,p,f,m,h,g;return $(this,(function(b){switch(b.label){case 0:return e.snapshotData&&n&&!e.snapshotData.content?n.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),a=Kv(t,r,o),s=a.rowPartialHeight,l=a.scrollLeft,u=a.scrollTopRatio,c=a.visibleLeft,d=a.visibleWidth,p=a.visibleTop,f=a.visibleHeight,m=a.rowsPerPage,h=a.page,g=e.qHyperCube,[4,n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=p?p:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=f?f:0}])]):[3,2]:[2,e];case 1:g.qDataPages=b.sent(),e.snapshotData.content={rowPartialHeight:s,scrollLeft:l,scrollTopRatio:u,visibleLeft:c,visibleWidth:d,visibleTop:p,visibleHeight:f,rowsPerPage:m,page:h,size:{width:i.width,height:i.height},estimatedRowHeight:r.estimatedRowHeight},b.label=2;case 2:return[2,e]}}))}))})),l((function(){return{getViewState:function(){return Kv(t,r,o)}}}),[t,r,o])}({layout:E,viewService:L,model:w,rootElement:x,contentRect:P}),$v({app:C,layout:E,model:w,rect:T,theme:O,keyboard:I,translator:D,interactions:R,selectionsAPI:A,changeSortOrder:k,rootElement:x,embed:M,reactRoot:S,applyColumnWidths:_,isFontLoaded:N,viewService:L}),zv({env:o,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:D,selectionsAPI:A,theme:O,changeSortOrder:k,keyboard:I,rect:T,embed:M,reactRoot:S,applyColumnWidths:_,isFontLoaded:N,viewService:L})}}}export{Zv as default};
|
|
105
|
+
`),zc.rippleVisible,Uc,550,(({theme:e})=>e.transitions.easing.easeInOut),zc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),zc.child,zc.childLeaving,Gc,550,(({theme:e})=>e.transitions.easing.easeInOut),zc.childPulsate,Yc,(({theme:e})=>e.transitions.easing.easeInOut));var Xc=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=qr(n,jc),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,_l.jsx(Zc,{classes:{ripple:Yu(o.ripple,zc.ripple),rippleVisible:Yu(o.rippleVisible,zc.rippleVisible),ripplePulsate:Yu(o.ripplePulsate,zc.ripplePulsate),child:Yu(o.child,zc.child),childLeaving:Yu(o.childLeaving,zc.childLeaving),childPulsate:Yu(o.childPulsate,zc.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),_l.jsx(Kc,Gn({className:Yu(zc.root,o.root,i),ref:m},a,{children:_l.jsx(Mc,{component:null,exit:!0,children:l})}))}));function Jc(e){return Tr("MuiButtonBase",e)}var Qc=Lr("MuiButtonBase",["root","disabled","focusVisible"]);const ed=["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"],td=Js("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"},[`&.${Qc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nd=y.forwardRef((function(e,t){const n=Ys({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:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:T,type:L}=n,M=qr(n,ed),q=y.useRef(null),k=y.useRef(null),O=mr(k,T),{isFocusVisibleRef:N,onFocus:_,onBlur:F,ref:z}=Cr(),[j,H]=y.useState(!1);s&&j&&H(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const W=B&&!u&&!s;function V(e,t,n=c){return fr((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&k.current.pulsate()}),[u,d,j,B]);const U=V("start",E),G=V("stop",h),Y=V("stop",g),K=V("stop",w),Z=V("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),X=V("start",D),J=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=fr((e=>{q.current||(q.current=e.currentTarget),_(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=q.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=fr((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=fr((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=mr(t,z,q),ue=Gn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ar({root:["root",t&&"disabled",n&&"focusVisible"]},Jc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return _l.jsxs(td,Gn({as:ae,className:Yu(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Z,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:s?-1:P,type:L},le,M,{children:[i,W?_l.jsx(Xc,Gn({ref:O,center:o},I)):null]}))}));var rd=nd;function od(e){return Tr("MuiTypography",e)}Lr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const id=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ad=Js("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${nr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Gn({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}))),ld={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ud=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTypography"}),r=(e=>sd[e]||e)(n.color),o=Hl(Gn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ld}=o,f=qr(o,id),m=Gn({},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]||ld[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ar({root:["root",i,"inherit"!==e.align&&`align${nr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},od,a)})(m);return _l.jsx(ad,Gn({as:h,ref:t,ownerState:m,className:Yu(g.root,a)},f))}));var cd=ud;function dd(e){return"string"==typeof e}function pd(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 fd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function md(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fd(e))&&(r&&(r+=" "),r+=t);return r}function hd(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 gd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function bd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=qr(e,gd),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=md(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Gn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Gn({},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=pd(Gn({},o,r)),l=hd(r),s=hd(o),u=t(a),c=md(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=Gn({},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=Gn({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Gn({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||dd(e)?t:Gn({},t,{ownerState:Gn({},t.ownerState,n)})}(n,Gn({},s,{ref:mr(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const vd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yd(e){const t=[],n=[];return Array.from(e.querySelectorAll(vd)).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 xd(){return!0}function Sd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=yd,isEnabled:a=xd,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=mr(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ir(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]),y.useEffect((()=>{if(!l||!m.current)return;const e=ir(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 b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return _l.jsxs(y.Fragment,{children:[_l.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.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)}}),_l.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ed=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=mr(y.isValidElement(n)?n.ref:null,t);if(sr((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),sr((()=>{if(i&&!o)return lr(t,i),()=>{lr(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return _l.jsx(y.Fragment,{children:n})}return _l.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function Cd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wd(e){return parseInt(ar(e).getComputedStyle(e).paddingRight,10)||0}function Rd(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&&Cd(e,o)}))}function Ad(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Dd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ir(e);return t.body===e?ar(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=wr(ir(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wd(r)+e}px`;const t=ir(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ir(r).body;else{const t=r.parentElement,n=ar(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 Pd=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&&Cd(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);Rd(t,e.mount,e.modalRef,r,!0);const o=Ad(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=Ad(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Dd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ad(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&&Cd(e.modalRef,t),Rd(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&&Cd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Id(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Pd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=mr(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=fr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ir(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=fr((e=>{f.current=e,e&&(c&&w()?E():m.current&&Cd(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const D=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=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=pd(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Gn({},n,t);return Gn({role:"presentation"},r,{onKeyDown:D(r),ref:h})},getBackdropProps:(e={})=>Gn({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:rr((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:rr((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Td=["onChange","maxRows","minRows","style","value"];function Ld(e){return parseInt(e,10)||0}const Md={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const kd=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=qr(e,Td),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=mr(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=ar(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=Ld(n.paddingBottom)+Ld(n.paddingTop),s=Ld(n.borderBottomWidth)+Ld(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=h();qd(e)||m((t=>g(t,e)))}),[h]);sr((()=>{const e=()=>{p.current=0,(()=>{const e=h();qd(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=or(e),n=u.current,r=ar(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]),sr((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return _l.jsxs(y.Fragment,{children:[_l.jsx("textarea",Gn({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Gn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),_l.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Gn({},Md,i,{paddingTop:0,paddingBottom:0})})]})}));function Od({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 Nd=y.createContext(void 0);function _d(){return y.useContext(Nd)}function Fd(e){return _l.jsx(Fl,Gn({},e,{defaultTheme:Us,themeId:Mr}))}function zd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function jd(e,t=!1){return e&&(zd(e.value)&&""!==e.value||t&&zd(e.defaultValue)&&""!==e.defaultValue)}function Hd(e){return Tr("MuiInputBase",e)}var Bd=Lr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const $d=["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"],Wd=(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${nr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vd=(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]},Ud=Js("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wd})((({theme:e,ownerState:t})=>Gn({},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",[`&.${Bd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Gn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Gd=Js("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Gn({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 Gn({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] + .${Bd.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},[`&.${Bd.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"})})),Yd=_l.jsx(Fd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kd=y.forwardRef((function(e,t){var n;const r=Ys({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:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:D,onKeyDown:P,onKeyUp:I,placeholder:T,readOnly:L,renderSuffix:M,rows:q,slotProps:k={},slots:O={},startAdornment:N,type:_="text",value:F}=r,z=qr(r,$d),j=null!=b.value?b.value:F,{current:H}=y.useRef(null!=j),B=y.useRef(),$=y.useCallback((e=>{}),[]),W=mr(B,v,b.ref,$),[V,U]=y.useState(!1),G=_d(),Y=Od({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),w&&w())}),[G,d,V,w]);const K=G&&G.onFilled,Z=G&&G.onEmpty,X=y.useCallback((e=>{jd(e)?K&&K():Z&&Z()}),[K,Z]);sr((()=>{H&&X({value:j})}),[j,X,H]);y.useEffect((()=>{X(B.current)}),[]);let J=g,Q=b;E&&"input"===J&&(Q=Gn(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),J=kd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Gn({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Ar({root:["root",`color${nr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${nr(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"]},Hd,t)})(ee),ne=O.root||s.Root||Ud,re=k.root||u.root||{},oe=O.input||s.Input||Gd;return Q=Gn({},Q,null!=(n=k.input)?n:u.input),_l.jsxs(y.Fragment,{children:[!p&&Yd,_l.jsxs(ne,Gn({},re,!dd(ne)&&{ownerState:Gn({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Yu(te.root,re.className,l,L&&"MuiInputBase-readOnly"),children:[N,_l.jsx(Nd.Provider,{value:null,children:_l.jsx(oe,Gn({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:T,readOnly:L,required:Y.required,rows:q,value:j,onKeyDown:P,onKeyUp:I,type:_},Q,!dd(oe)&&{as:J,ownerState:Gn({},ee,Q.ownerState)},{ref:W,className:Yu(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(tr(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(D&&D(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,M?M(Gn({},Y,{startAdornment:N})):null]}))]})}));var Zd=Kd;function Xd(e){return Tr("MuiInput",e)}var Jd=Gn({},Bd,Lr("MuiInput",["root","underline","input"]));function Qd(e){return Tr("MuiOutlinedInput",e)}var ep=Gn({},Bd,Lr("MuiOutlinedInput",["root","notchedOutline","input"]));function tp(e){return Tr("MuiFilledInput",e)}var np=Gn({},Bd,Lr("MuiFilledInput",["root","underline","input"])),rp=function(e,t){function n(n,r){return _l.jsx(Qu,Gn({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Qu.muiName,y.memo(y.forwardRef(n))}(_l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const op=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ip={entering:{opacity:1},entered:{opacity:1}},ap=y.forwardRef((function(e,t){const n=Gs(),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:b=Ac}=e,v=qr(e,op),x=y.useRef(null),S=mr(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{qc(e);const r=kc({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)})),R=E(c),A=E(m),D=E((e=>{const t=kc({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)})),P=E(f);return _l.jsx(b,Gn({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:P,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Gn({style:Gn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ip[e],h,a.props.style),ref:S},t))}))}));var lp=ap;function sp(e){return Tr("MuiBackdrop",e)}Lr("MuiBackdrop",["root","invisible"]);const up=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],cp=Js("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Gn({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"}))),dp=y.forwardRef((function(e,t){var n,r,o;const i=Ys({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=lp,transitionDuration:g}=i,b=qr(i,up),v=Gn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Ar({root:["root",n&&"invisible"]},sp,t)})(v),x=null!=(n=f.root)?n:c.root;return _l.jsx(h,Gn({in:p,timeout:g},b,{children:_l.jsx(cp,Gn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Yu(y.root,l,null==x?void 0:x.className),ownerState:Gn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var pp=dp;const fp=Vs(),mp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Aa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(El);return y.forwardRef((function(e,a){const l=Dl(n),s=Hl(e),{className:u,component:c="div"}=s,d=qr(s,Wl);return _l.jsx(i,Gn({as:c,ref:a,className:$l(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Mr,defaultTheme:fp,defaultClassName:"MuiBox-root",generateClassName:Pr.generate});var hp=mp;function gp(e){return Tr("MuiButton",e)}var bp=Lr("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 vp=y.createContext({});var yp=y.createContext(void 0);const xp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Sp=e=>Gn({},"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}}),Ep=Js(rd,{shouldForwardProp:e=>Ks(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nr(n.color)}`],t[`size${nr(n.size)}`],t[`${n.variant}Size${nr(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 Gn({},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":Gn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ss(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})`:ss(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})`:ss(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":Gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bp.focusVisible}`]:Gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bp.disabled}`]:Gn({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 ${ss(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"},[`&.${bp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bp.disabled}`]:{boxShadow:"none"}})),Cp=Js("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nr(n.size)}`]]}})((({ownerState:e})=>Gn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Sp(e)))),wp=Js("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nr(n.size)}`]]}})((({ownerState:e})=>Gn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Sp(e)))),Rp=y.forwardRef((function(e,t){const n=y.useContext(vp),r=y.useContext(yp),o=Ys({props:Rr(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:b,variant:v="text"}=o,x=qr(o,xp),S=Gn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Gn({},a,Ar({root:["root",i,`${i}${nr(t)}`,`size${nr(o)}`,`${i}Size${nr(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nr(o)}`],endIcon:["endIcon",`iconSize${nr(o)}`]},gp,a))})(S),C=g&&_l.jsx(Cp,{className:E.startIcon,ownerState:S,children:g}),w=p&&_l.jsx(wp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return _l.jsxs(Ep,Gn({ownerState:S,className:Yu(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Yu(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Ap=Rp;function Dp(e){return Tr("MuiModal",e)}Lr("MuiModal",["root","hidden","backdrop"]);const Pp=["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"],Ip=Js("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})=>Gn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Tp=Js(pp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lp=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Ys({name:"MuiModal",props:e}),{BackdropComponent:u=Tp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:P,slotProps:I,slots:T}=s,L=qr(s,Pp),M=Gn({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:k,getTransitionProps:O,portalRef:N,isTopModal:_,exited:F,hasTransition:z}=Id(Gn({},M,{rootRef:t})),j=Gn({},M,{exited:F}),H=(e=>{const{open:t,exited:n,classes:r}=e;return Ar({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Dp,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==T?void 0:T.root)?r:g.Root)?n:Ip,W=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,U=null!=(l=null==I?void 0:I.backdrop)?l:b.backdrop,G=bd({elementType:$,externalSlotProps:V,externalForwardedProps:L,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:j,className:Yu(d,null==V?void 0:V.className,null==H?void 0:H.root,!j.open&&j.exited&&(null==H?void 0:H.hidden))}),Y=bd({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>k(Gn({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Yu(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:j});return A||P||z&&!F?_l.jsx(Ed,{ref:N,container:m,disablePortal:E,children:_l.jsxs($,Gn({},G,{children:[!R&&u?_l.jsx(W,Gn({},Y)):null,_l.jsx(Sd,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:_,open:P,children:y.cloneElement(f,B)})]}))}):null}));var Mp=Lp;function qp(e){return Tr("MuiDivider",e)}var kp=Lr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Op=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Np=Js("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})=>Gn({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)`:ss(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})=>Gn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Gn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Gn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Gn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),_p=Js("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Gn({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)`}))),Fp=y.forwardRef((function(e,t){const n=Ys({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=qr(n,Op),m=Gn({},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 Ar({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"]},qp,r)})(m);return _l.jsx(Np,Gn({as:a,className:Yu(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?_l.jsx(_p,{className:h.wrapper,ownerState:m,children:o}):null}))}));Fp.muiSkipListHighlight=!0;var zp=Fp;const jp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hp=Js(Ud,{shouldForwardProp:e=>Ks(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(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 Gn({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}},[`&.${np.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${np.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"},[`&.${np.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${np.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(.${np.disabled}, .${np.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${np.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Gn({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Bp=Js(Gd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>Gn({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),$p=y.forwardRef((function(e,t){var n,r,o,i;const a=Ys({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=qr(a,jp),g=Gn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Gn({},t,Ar({root:["root",!n&&"underline"],input:["input"]},tp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Zn(null!=p?p:s,v):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Hp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Bp;return _l.jsx(Zd,Gn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));$p.muiName="Input";var Wp=$p;const Vp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Up(e){return`scale(${e}, ${e**2})`}const Gp={entering:{opacity:1,transform:Up(1)},entered:{opacity:1,transform:"none"}},Yp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kp=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Ac}=e,g=qr(e,Vp),b=y.useRef(),v=y.useRef(),x=Gs(),S=y.useRef(null),E=mr(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{qc(e);const{duration:n,delay:r,easing:o}=kc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Yp?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),D=C(p),P=C((e=>{const{duration:t,delay:n,easing:r}=kc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Yp?o:.666*o,delay:Yp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Up(.75),c&&c(e)})),I=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),_l.jsx(h,Gn({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:P,onExited:I,onExiting:D,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Gn({style:Gn({opacity:0,transform:Up(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gp[e],f,o.props.style),ref:E},t))}))}));Kp.muiSupportAuto=!0;var Zp=Kp;const Xp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jp=Js(Ud,{shouldForwardProp:e=>Ks(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wd(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})`),Gn({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"},[`&.${Jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jd.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(.${Jd.disabled}, .${Jd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Qp=Js(Gd,{name:"MuiInput",slot:"Input",overridesResolver:Vd})({}),ef=y.forwardRef((function(e,t){var n,r,o,i;const a=Ys({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=qr(a,Xp),b=(e=>{const{classes:t,disableUnderline:n}=e;return Gn({},t,Ar({root:["root",!n&&"underline"],input:["input"]},Xd,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Zn(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Jp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Qp;return _l.jsx(Zd,Gn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));ef.muiName="Input";var tf=ef;var nf=y.createContext({});function rf(e){return Tr("MuiList",e)}Lr("MuiList",["root","padding","dense","subheader"]);const of=["children","className","component","dense","disablePadding","subheader"],af=Js("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})=>Gn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var lf=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=qr(n,of),c=y.useMemo((()=>({dense:a})),[a]),d=Gn({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ar({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},rf,t)})(d);return _l.jsx(nf.Provider,{value:c,children:_l.jsxs(af,Gn({as:i,className:Yu(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function sf(e){return Tr("MuiListItem",e)}var uf=Lr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var cf=Lr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function df(e){return Tr("MuiListItemSecondaryAction",e)}Lr("MuiListItemSecondaryAction",["root","disableGutters"]);const pf=["className"],ff=Js("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Gn({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),mf=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=qr(n,pf),i=Gn({},n,{disableGutters:y.useContext(nf).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Ar({root:["root",t&&"disableGutters"]},df,n)})(i);return _l.jsx(ff,Gn({className:Yu(a.root,r),ownerState:i,ref:t},o))}));mf.muiName="ListItemSecondaryAction";var hf=mf;const gf=["className"],bf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],vf=Js("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Gn({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Gn({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${cf.root}`]:{paddingRight:48}},{[`&.${uf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ss(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ss(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ss(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})`:ss(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),yf=Js("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xf=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:x,selected:S=!1,slotProps:E={},slots:C={}}=n,w=qr(n.ContainerProps,gf),R=qr(n,bf),A=y.useContext(nf),D=y.useMemo((()=>({dense:f||A.dense||!1,alignItems:r,disableGutters:h})),[r,A.dense,f,h]),P=y.useRef(null);sr((()=>{o&&P.current&&P.current.focus()}),[o]);const I=y.Children.toArray(a),T=I.length&&(L=I[I.length-1],M=["ListItemSecondaryAction"],y.isValidElement(L)&&-1!==M.indexOf(null!=(q=L.type.muiName)?q:null==(k=L.type)||null==(k=k._payload)||null==(k=k.value)?void 0:k.muiName));var L,M,q,k;const O=Gn({},n,{alignItems:r,autoFocus:o,button:i,dense:D.dense,disabled:m,disableGutters:h,disablePadding:g,divider:b,hasSecondaryAction:T,selected:S}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return Ar({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},sf,r)})(O),_=mr(P,t),F=C.root||u.Root||vf,z=E.root||c.root||{},j=Gn({className:Yu(N.root,z.className,l),disabled:m},R);let H=s||"li";return i&&(j.component=s||"div",j.focusVisibleClassName=Yu(uf.focusVisible,v),H=rd),T?(H=j.component||s?H:"div","li"===d&&("li"===H?H="div":"li"===j.component&&(j.component="div")),_l.jsx(nf.Provider,{value:D,children:_l.jsxs(yf,Gn({as:d,className:Yu(N.container,p),ref:_,ownerState:O},w,{children:[_l.jsx(F,Gn({},z,!dd(F)&&{as:H,ownerState:Gn({},O,z.ownerState)},j,{children:I})),I.pop()]}))})):_l.jsx(nf.Provider,{value:D,children:_l.jsxs(F,Gn({},z,{as:H,ref:_},!dd(F)&&{ownerState:Gn({},O,z.ownerState)},j,{children:[I,x&&_l.jsx(hf,{children:x})]}))})}));var Sf=xf;function Ef(e){return Tr("MuiListItemIcon",e)}var Cf=Lr("MuiListItemIcon",["root","alignItemsFlexStart"]);const wf=["className"],Rf=Js("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})=>Gn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Af=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=qr(n,wf),i=Gn({},n,{alignItems:y.useContext(nf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ar({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ef,n)})(i);return _l.jsx(Rf,Gn({className:Yu(a.root,r),ownerState:i,ref:t},o))}));var Df=Lr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Pf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function If(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Lf(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 Mf(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")&&Lf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var qf=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=qr(e,Pf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sr((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${wr(ir(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=mr(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return _l.jsx(lf,Gn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ir(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Mf(t,r,s,l,If);else if("ArrowUp"===n)e.preventDefault(),Mf(t,r,s,l,Tf);else if("Home"===n)e.preventDefault(),Mf(t,null,s,l,If);else if("End"===n)e.preventDefault(),Mf(t,null,s,l,Tf);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&&Lf(r,o);o.previousKeyMatched&&(s||Mf(t,r,!1,l,If,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function kf(e){return Tr("MuiPopover",e)}Lr("MuiPopover",["root","paper"]);const Of=["onEntering"],Nf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_f=["slotProps"];function Ff(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function jf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Hf(e){return"function"==typeof e?e():e}const Bf=Js(Mp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$f=Js(Fc,{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 Wf=y.forwardRef((function(e,t){var n,r,o;const i=Ys({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:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Zp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=qr(i.TransitionProps,Of),D=qr(i,Nf),P=null!=(n=null==x?void 0:x.paper)?n:b,I=y.useRef(),T=mr(I,P.ref),L=Gn({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),M=(e=>{const{classes:t}=e;return Ar({root:["root"],paper:["paper"]},kf,t)})(L),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Hf(l),t=(e&&1===e.nodeType?e:ir(I.current).body).getBoundingClientRect();return{top:t.top+Ff(t,s.vertical),left:t.left+zf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:Ff(e,S.vertical),horizontal:zf(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:jf(n)};const r=q();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ar(Hf(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:jf(n)}}),[l,c,q,k,h]),[N,_]=y.useState(g),F=y.useCallback((()=>{const e=I.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[O]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=or((()=>{F()})),t=ar(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?ir(Hf(l)).body:void 0),H=null!=(r=null==v?void 0:v.root)?r:Bf,B=null!=(o=null==v?void 0:v.paper)?o:$f,$=bd({elementType:B,externalSlotProps:Gn({},P,{style:N?P.style:Gn({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:L,className:Yu(M.paper,null==P?void 0:P.className)}),W=bd({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:L,className:Yu(M.root,p)}),{slotProps:V}=W,U=qr(W,_f);return _l.jsx(H,Gn({},U,!dd(H)&&{slotProps:V,disableScrollLock:R},{children:_l.jsx(E,Gn({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{_(!1)},timeout:z},A,{children:_l.jsx(B,Gn({},$,{children:d}))}))}))}));function Vf(e){return Tr("MuiMenu",e)}Lr("MuiMenu",["root","paper","list"]);const Uf=["onEntering"],Gf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Yf={vertical:"top",horizontal:"right"},Kf={vertical:"top",horizontal:"left"},Zf=Js(Wf,{shouldForwardProp:e=>Ks(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xf=Js($f,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jf=Js(qf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Qf=y.forwardRef((function(e,t){var n,r;const o=Ys({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:b={},slotProps:v={}}=o,x=qr(o.TransitionProps,Uf),S=qr(o,Gf),E=Gs(),C="rtl"===E.direction,w=Gn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Ar({root:["root"],paper:["paper"],list:["list"]},Vf,t)})(w),A=i&&!s&&d,D=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:Xf,T=null!=(r=v.paper)?r:p,L=bd({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),M=bd({elementType:I,externalSlotProps:T,ownerState:w,className:R.paper});return _l.jsx(Zf,Gn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Yf:Kf,slots:{paper:I,root:b.root},slotProps:{root:L,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Gn({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:_l.jsx(Jf,Gn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:D,autoFocus:i&&(-1===P||s),autoFocusItem:A,variant:g},u,{className:Yu(R.list,u.className),children:a}))}))}));function em(e){return Tr("MuiMenuItem",e)}var tm=Lr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const nm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rm=Js(rd,{shouldForwardProp:e=>Ks(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})=>Gn({},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"}},[`&.${tm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ss(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ss(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ss(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})`:ss(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${kp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${kp.inset}`]:{marginLeft:52},[`& .${Df.root}`]:{marginTop:0,marginBottom:0},[`& .${Df.inset}`]:{paddingLeft:36},[`& .${Cf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Gn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Cf.root} svg`]:{fontSize:"1.25rem"}}))));var om=y.forwardRef((function(e,t){const n=Ys({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=qr(n,nm),f=y.useContext(nf),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);sr((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Gn({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Gn({},a,Ar({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},em,a))})(n),v=mr(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),_l.jsx(nf.Provider,{value:m,children:_l.jsx(rm,Gn({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Yu(b.focusVisible,s),className:Yu(b.root,d)},p,{ownerState:g,classes:b}))})}));function im(e){return Tr("MuiNativeSelect",e)}var am=Lr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const lm=["className","disabled","error","IconComponent","inputRef","variant"],sm=({ownerState:e,theme:t})=>Gn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Gn({},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"},[`&.${am.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}}),um=Js("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ks,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${am.multiple}`]:t.multiple}]}})(sm),cm=({ownerState:e,theme:t})=>Gn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${am.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),dm=Js("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nr(n.variant)}`],n.open&&t.iconOpen]}})(cm);var pm,fm=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=qr(e,lm),u=Gn({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ar({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nr(n)}`,i&&"iconOpen",r&&"disabled"]},im,t)})(u);return _l.jsxs(y.Fragment,{children:[_l.jsx(um,Gn({ownerState:u,className:Yu(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:_l.jsx(dm,{as:i,ownerState:u,className:c.icon})]})}));const mm=["children","classes","className","label","notched"],hm=Js("fieldset",{shouldForwardProp:Ks})({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%"}),gm=Js("legend",{shouldForwardProp:Ks})((({ownerState:e,theme:t})=>Gn({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&&Gn({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 bm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vm=Js(Ud,{shouldForwardProp:e=>Ks(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Gn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ep.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ep.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ep.focused} .${ep.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ep.error} .${ep.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ep.disabled} .${ep.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Gn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ym=Js((function(e){const{className:t,label:n,notched:r}=e,o=qr(e,mm),i=null!=n&&""!==n,a=Gn({},e,{notched:r,withLabel:i});return _l.jsx(hm,Gn({"aria-hidden":!0,className:t,ownerState:a},o,{children:_l.jsx(gm,{ownerState:a,children:i?_l.jsx("span",{children:n}):pm||(pm=_l.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}})),xm=Js(Gd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vd})((({theme:e,ownerState:t})=>Gn({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}))),Sm=y.forwardRef((function(e,t){var n,r,o,i,a;const l=Ys({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=qr(l,bm),b=(e=>{const{classes:t}=e;return Gn({},t,Ar({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Qd,t))})(l),v=_d(),x=Od({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Gn({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:vm,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:xm;return _l.jsx(Zd,Gn({slots:{root:E,input:C},renderSuffix:e=>_l.jsx(ym,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=_l.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Gn({},b,{notchedOutline:null})}))}));Sm.muiName="Input";var Em=Sm;function Cm(e){return Tr("MuiSelect",e)}var wm,Rm=Lr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Am=["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"],Dm=Js("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rm.select}`]:t.select},{[`&.${Rm.select}`]:t[n.variant]},{[`&.${Rm.error}`]:t.error},{[`&.${Rm.multiple}`]:t.multiple}]}})(sm,{[`&.${Rm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Pm=Js("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nr(n.variant)}`],n.open&&t.iconOpen]}})(cm),Im=Js("input",{shouldForwardProp:e=>Zs(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 Tm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Lm(e){return null==e||"string"==typeof e&&!e.trim()}const Mm=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:P,SelectDisplayProps:I={},tabIndex:T,value:L,variant:M="standard"}=e,q=qr(e,Am),[k,O]=pr({controlled:L,default:c,name:"Select"}),[N,_]=pr({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,H]=y.useState(null),{current:B}=y.useRef(null!=A),[$,W]=y.useState(),V=mr(t,h),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==j?void 0:j.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&N&&j&&!B&&(W(a?null:G.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=ir(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(a?null:G.clientWidth),_(e))},K=y.Children.toArray(l),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.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),k!==n&&(O(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||Y(!1,t)}},X=null!==j&&N;let J,Q;delete q["aria-invalid"];const ee=[];let te=!1;(jd({value:k})||p)&&(P?J=P(k):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(tr(2));t=k.some((t=>Tm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Tm(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(J=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=$;!a&&B&&j&&(oe=G.clientWidth),re=void 0!==T?T:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=Gn({},e,{variant:M,value:k,open:X,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ar({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nr(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Cm,t)})(ae),se=Gn({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=dr();return _l.jsxs(y.Fragment,{children:[_l.jsx(Dm,Gn({ref:U,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||D?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!X&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},I,{ownerState:ae,className:Yu(I.className,le.select,s),id:ie,children:Lm(J)?wm||(wm=_l.jsx("span",{className:"notranslate",children:""})):J})),_l.jsx(Im,Gn({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},q)),_l.jsx(Pm,{as:m,className:le.icon,ownerState:ae}),_l.jsx(Qf,Gn({id:`menu-${x||""}`,anchorEl:G,open:X,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Gn({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Gn({},b.slotProps,{paper:Gn({},se,{style:Gn({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var qm=Mm;const km=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Om=["root"],Nm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ks(e)&&"variant"!==e,slot:"Root"},_m=Js(tf,Nm)(""),Fm=Js(Em,Nm)(""),zm=Js(Wp,Nm)(""),jm=y.forwardRef((function(e,t){const n=Ys({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=rp,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=qr(n,km),A=b?fm:qm,D=Od({props:n,muiFormControl:_d(),states:["variant","error"]}),P=D.variant||w,I=Gn({},n,{variant:P,classes:i}),T=(e=>{const{classes:t}=e;return t})(I),L=qr(T,Om),M=d||{standard:_l.jsx(_m,{ownerState:I}),outlined:_l.jsx(Fm,{label:f,ownerState:I}),filled:_l.jsx(zm,{ownerState:I})}[P],q=mr(t,M.ref);return _l.jsx(y.Fragment,{children:y.cloneElement(M,Gn({inputComponent:A,inputProps:Gn({children:o,error:D.error,IconComponent:u,variant:P,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Gn({id:c},C)},p,{classes:p?Zn(L,p.classes):L},d?d.props.inputProps:{})},g&&b&&"outlined"===P?{notched:!0}:{},{ref:q,className:Yu(M.props.className,a,T.root)},!d&&{variant:P},R))})}));jm.muiName="Select";var Hm=jm;var Bm=y.createContext();function $m(e){return Tr("MuiTable",e)}Lr("MuiTable",["root","stickyHeader"]);const Wm=["className","component","padding","size","stickyHeader"],Vm=Js("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Gn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Gn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Um="table",Gm=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTable"}),{className:r,component:o=Um,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=qr(n,Wm),u=Gn({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Ar({root:["root",n&&"stickyHeader"]},$m,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return _l.jsx(Bm.Provider,{value:d,children:_l.jsx(Vm,Gn({as:o,role:o===Um?null:"table",ref:t,className:Yu(c.root,r),ownerState:u},s))})}));var Ym=Gm;var Km=y.createContext();function Zm(e){return Tr("MuiTableBody",e)}Lr("MuiTableBody",["root"]);const Xm=["className","component"],Jm=Js("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Qm={variant:"body"},eh="tbody";var th=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTableBody"}),{className:r,component:o=eh}=n,i=qr(n,Xm),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},Zm,t)})(a);return _l.jsx(Km.Provider,{value:Qm,children:_l.jsx(Jm,Gn({className:Yu(l.root,r),as:o,ref:t,role:o===eh?null:"rowgroup",ownerState:a},i))})}));function nh(e){return Tr("MuiTableCell",e)}var rh=Lr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const oh=["align","className","component","padding","scope","size","sortDirection","variant"],ih=Js("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${nr(n.size)}`],"normal"!==n.padding&&t[`padding${nr(n.padding)}`],"inherit"!==n.align&&t[`align${nr(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Gn({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?cs(ss(e.palette.divider,1),.88):us(ss(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${rh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),ah=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=qr(n,oh),p=y.useContext(Bm),f=y.useContext(Km),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Gn({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Ar({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${nr(r)}`,"normal"!==o&&`padding${nr(o)}`,`size${nr(i)}`]},nh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),_l.jsx(ih,Gn({as:h,ref:t,className:Yu(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var lh=ah;function sh(e){return Tr("MuiTableContainer",e)}Lr("MuiTableContainer",["root"]);const uh=["className","component"],ch=Js("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var dh=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=qr(n,uh),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},sh,t)})(a);return _l.jsx(ch,Gn({ref:t,as:o,className:Yu(l.root,r),ownerState:a},i))}));function ph(e){return Tr("MuiTableHead",e)}Lr("MuiTableHead",["root"]);const fh=["className","component"],mh=Js("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hh={variant:"head"},gh="thead";var bh=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTableHead"}),{className:r,component:o=gh}=n,i=qr(n,fh),a=Gn({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ar({root:["root"]},ph,t)})(a);return _l.jsx(Km.Provider,{value:hh,children:_l.jsx(mh,Gn({as:o,className:Yu(l.root,r),ref:t,role:o===gh?null:"rowgroup",ownerState:a},i))})}));function vh(e){return Tr("MuiTableRow",e)}var yh=Lr("MuiTableRow",["root","selected","hover","head","footer"]);const xh=["className","component","hover","selected"],Sh=Js("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${yh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${yh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ss(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ss(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Eh="tr",Ch=y.forwardRef((function(e,t){const n=Ys({props:e,name:"MuiTableRow"}),{className:r,component:o=Eh,hover:i=!1,selected:a=!1}=n,l=qr(n,xh),s=y.useContext(Km),u=Gn({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ar({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},vh,t)})(u);return _l.jsx(Sh,Gn({as:o,ref:t,className:Yu(c.root,r),role:o===Eh?null:"row",ownerState:u},l))}));var wh=Ch,Rh=(e={})=>x.createElement(Hu,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:wu.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),Ah=({className:e})=>x.createElement(Hu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))),Dh=({className:e})=>x.createElement(Hu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))),Ph=({className:e})=>x.createElement(Hu,{fontSize:"small",className:e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("path",{fill:"currentColor",d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"})));const Ih={MuiAccordion:{styleOverrides:{root:{backgroundColor:wu.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:wu.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Fu,{"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 ${wu.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:wu.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${wu.MISC_FOCUS_BORDER}`,borderRadius:Iu,backgroundColor:wu.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 ${wu.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:wu.WHITE,color:wu.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:Iu},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wu.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:wu.GREYSCALE_0_15,backgroundColor:wu.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:wu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wu.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:wu.GREEN_PALE},"&:active":{backgroundColor:wu.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wu.GREEN_PALE,boxShadow:`0 0 0 3px ${ss(wu.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:wu.BLUE_PALE},"&:active":{backgroundColor:wu.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wu.BLUE_PALE,boxShadow:`0 0 0 3px ${ss(wu.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:Iu,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:wu.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wu.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:wu.GREYSCALE_0_15,backgroundColor:wu.GREYSCALE_100_60,"&:active":{backgroundColor:wu.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:wu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wu.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:wu.PURPLE,"&.Mui-focusVisible":{borderColor:wu.PURPLE,boxShadow:`0 0 0 3px ${ss(wu.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:wu.GREEN,"&.Mui-focusVisible":{borderColor:wu.GREEN,boxShadow:`0 0 0 3px ${ss(wu.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:wu.BLUE,"&.Mui-focusVisible":{borderColor:wu.BLUE,boxShadow:`0 0 0 3px ${ss(wu.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:wu.ORANGE,"&.Mui-focusVisible":{borderColor:wu.ORANGE,boxShadow:`0 0 0 3px ${ss(wu.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:wu.RED,"&.Mui-focusVisible":{borderColor:wu.RED,boxShadow:`0 0 0 3px ${ss(wu.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:wu.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:wu.PURPLE_PALE},"&:active":{backgroundColor:wu.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:wu.PURPLE_PALE,boxShadow:`0 0 0 3px ${ss(wu.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:wu.GREEN_PALE},"&:active":{backgroundColor:wu.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wu.GREEN_PALE,boxShadow:`0 0 0 3px ${ss(wu.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:wu.BLUE_PALE},"&:active":{backgroundColor:wu.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wu.BLUE_PALE,boxShadow:`0 0 0 3px ${ss(wu.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:wu.ORANGE_PALE},"&:active":{backgroundColor:wu.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:wu.ORANGE_PALE,boxShadow:`0 0 0 3px ${ss(wu.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:wu.RED_PALE},"&:active":{backgroundColor:wu.RED_DARK},"&.Mui-focusVisible":{borderColor:wu.RED_PALE,boxShadow:`0 0 0 3px ${ss(wu.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:wu.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:wu.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Iu,boxShadow:`inset 0 0 0 2px ${wu.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(ju,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ru,borderRadius:Iu,color:wu.TEXT_PRIMARY,backgroundColor:wu.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:wu.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${wu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:wu.GREYSCALE_0_05,color:wu.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:wu.GREEN,borderColor:wu.GREEN},"&.MuiChip-outlinedInfo":{color:wu.BLUE,borderColor:wu.BLUE},"&.MuiChip-outlinedWarning":{color:wu.ORANGE,borderColor:wu.ORANGE},"&.MuiChip-outlinedError":{color:wu.RED,borderColor:wu.RED}},outlined:{border:`solid 1px ${wu.GREYSCALE_0_15}`,backgroundColor:wu.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Iu,boxShadow:"none",backgroundColor:wu.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:wu.GREEN,borderColor:wu.GREEN},outlinedSecondary:{color:wu.BLUE,borderColor:wu.BLUE},label:{fontFamily:ku.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(ju,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Fu,{"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:Iu},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Au,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:wu.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:wu.GREYSCALE_0_10},"&:hover":{backgroundColor:wu.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Iu,border:`solid 1px ${wu.GREYSCALE_0_15}`,color:wu.GREYSCALE_0_60,marginRight:0,width:Pu,height:Pu},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${wu.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Iu,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:wu.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Au}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ru,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:wu.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:wu.GREYSCALE_25,fontSize:Ru,fontFamily:ku.FONT_FAMILY,fontWeight:Mu,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:wu.TEXT_PRIMARY},"&.Mui-error":{color:wu.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:wu.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Lu,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:wu.TEXT_SECONDARY,content:"'(required)'",fontWeight:Lu,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Au,lineHeight:"16px",backgroundColor:wu.WHITE,borderRadius:Iu,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wu.GREYSCALE_0_05}`,borderColor:wu.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wu.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${wu.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${wu.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wu.RED}`,boxShadow:`0px 0px 0px 1px ${wu.RED}, inset 0 2px 0 0 ${wu.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wu.GREYSCALE_0_10}`,borderColor:wu.GREYSCALE_0_10,backgroundColor:wu.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:wu.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:wu.GREYSCALE_0_15,borderRadius:Iu,boxShadow:`inset 0 2px 0 0 ${wu.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Fu,{...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:wu.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:wu.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:wu.GREYSCALE_0_03},"&:active":{backgroundColor:wu.GREYSCALE_0_10},"&:focus":{backgroundColor:wu.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${wu.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${wu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:wu.GREYSCALE_0_30,"&:hover":{backgroundColor:wu.GREYSCALE_0_0,borderColor:wu.GREYSCALE_0_15},"& ~svg":{color:wu.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${wu.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Iu}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:wu.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${wu.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:wu.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Au,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ru,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ru,fontWeight:Mu,color:wu.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Mu}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${wu.GREYSCALE_0_15}, 0px 0px 0px 1px ${wu.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Wu,null),checkedIcon:x.createElement(Vu,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:wu.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${wu.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:wu.GREEN_PALE,boxShadow:`0 0 0 3px ${ss(wu.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:wu.BLUE_PALE,boxShadow:`0 0 0 3px ${ss(wu.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:wu.GREYSCALE_0_20}},"&.Mui-disabled":{fill:wu.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Rh,null),checkedIcon:x.createElement(Bu,null),indeterminateIcon:x.createElement($u,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Iu,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:wu.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:wu.GREYSCALE_0_55,color:wu.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:wu.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:wu.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:wu.GREYSCALE_0_55,"&:hover":{color:wu.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDataGrid:{defaultProps:{className:"sprout-data-grid-pro",slots:{columnSortedAscendingIcon:Ah,columnSortedDescendingIcon:Dh,columnMenuSortAscendingIcon:Ah,columnMenuSortDescendingIcon:Dh,quickFilterIcon:({className:e})=>x.createElement(Ph,{className:`sprout-data-grid-pro-filter-search-icon ${e}`})},slotProps:{toolbar:{className:"sprout-data-grid-pro-toolbar"}}},styleOverrides:{root:{borderColor:wu.GREYSCALE_85,borderRadius:0,"& .sprout-data-grid-pro-toolbar":{marginTop:0,"& .sprout-data-grid-pro-filter-search-icon":{paddingLeft:"8px",paddingRight:"4px",color:wu.GREYSCALE_55},"& > div":{"&:after":{borderBottom:`1px solid ${wu.GREYSCALE_0_15}`},"&:hover::before":{borderBottom:`1px solid ${wu.GREYSCALE_0_15}`}}}},columnHeaders:{backgroundColor:wu.GREYSCALE_98},withBorderColor:{borderColor:wu.GREYSCALE_85,"&.MuiDataGrid-cell--withRightBorder:last-of-type":{borderRightWidth:0},"&.MuiDataGrid-columnHeader--withRightBorder:last-of-type":{borderRightWidth:0}},row:{"&:hover":{backgroundColor:wu.GREYSCALE_0_03},"&.MuiDataGrid-row.Mui-selected":{backgroundColor:wu.GREYSCALE_0_05,"&:hover":{backgroundColor:wu.GREYSCALE_0_03}}},menu:{"& svg.MuiSvgIcon-root":{fontSize:Du}},filterIcon:{fontSize:Du},pinnedColumnHeaders:{backgroundColor:wu.GREYSCALE_98},pinnedColumns:{backgroundColor:wu.WHITE}}},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:wu.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:wu.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Au,color:wu.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Mu},secondary:{fontSize:Ru,color:wu.GREYSCALE_45,fontWeight:Lu,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Au,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:wu.GREYSCALE_0_03},"&:active":{backgroundColor:wu.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Au,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:wu.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ru,borderBottom:`solid 1px ${wu.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Au,color:wu.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:wu.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:wu.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:wu.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:wu.RED}}},"&.Mui-focusVisible":{backgroundColor:wu.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:wu.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:wu.GREEN,height:"24px","&.Mui-disabled":{color:wu.GREYSCALE_0_15}},rail:{backgroundColor:wu.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${wu.GREYSCALE_0_05}`,borderRadius:Iu,boxShadow:`inset 0px 0px 0px 1px ${wu.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${wu.GREYSCALE_0_05}`,borderRadius:Iu},thumb:{height:"16px",width:"16px",borderRadius:Iu,backgroundColor:wu.WHITE,boxShadow:`0px 1px 2px 0px ${wu.GREYSCALE_0_15}, 0px 0px 0px 1px ${wu.GREYSCALE_0_05}`,"&:hover":{borderRadius:Iu,boxShadow:`0 2px 4px 0 ${wu.GREYSCALE_0_30}, 0 0 0 1px ${wu.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${wu.GREYSCALE_0_15}, 0 0 0 1px ${wu.GREYSCALE_0_06}, 0 0 0 2px ${wu.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${wu.GREYSCALE_0_15}, 0 0 0 1px ${wu.GREYSCALE_0_06}, 0 0 0 2px ${wu.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:wu.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:wu.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:wu.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:wu.GREYSCALE_0_15},markLabel:{color:wu.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:wu.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:wu.WHITE,color:wu.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:wu.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:wu.GREEN_PALE,boxShadow:`0 0 0 3px ${ss(wu.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:wu.BLUE_PALE,boxShadow:`0 0 0 3px ${ss(wu.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:wu.GREYSCALE_0_15,borderRadius:Iu},thumb:{height:"16px",width:"16px",borderRadius:Iu,backgroundColor:wu.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:Au,fontWeight:Mu,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${wu.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${wu.MISC_FOCUS_BORDER}`,backgroundColor:wu.GREYSCALE_0_03,borderRadius:Iu},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:wu.GREYSCALE_25,"&.Mui-selected":{color:wu.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Au,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${wu.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${wu.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${wu.GREYSCALE_85}`,borderRight:`1px solid ${wu.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Mu,backgroundColor:wu.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:wu.GREYSCALE_98,borderBottom:`1px solid ${wu.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${wu.GREYSCALE_85}`,borderTop:`1px solid ${wu.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:wu.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:wu.GREYSCALE_0_05,"&:hover":{backgroundColor:wu.GREYSCALE_0_03}},"&&:hover":{backgroundColor:wu.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Uu,{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 ${wu.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Au,borderRadius:Iu,padding:"7px 16px",border:`1px solid ${wu.GREYSCALE_0_15}`,backgroundColor:wu.GREYSCALE_100_60,color:wu.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:wu.GREYSCALE_0_10,border:`1px solid ${wu.GREYSCALE_0_30}`},"&:hover":{backgroundColor:wu.GREYSCALE_0_03,border:`1px solid ${wu.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:wu.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${wu.MISC_FOCUS_BORDER}`,border:`1px solid ${wu.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:wu.GREYSCALE_25,backgroundColor:wu.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:wu.GREYSCALE_0_10,border:`1px solid ${wu.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ru,height:24,width:24,padding:7},sizeLarge:{fontSize:Du,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Au,borderRadius:Iu}}},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:wu.GREYSCALE_20},tooltip:{backgroundColor:wu.GREYSCALE_20,fontSize:Ru,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Th=e=>Ih;const Lh={mode:"light",primary:{light:wu.GREEN_PALE,main:wu.GREEN,dark:wu.GREEN_DARK,contrastText:wu.WHITE},secondary:{light:wu.BLUE_PALE,main:wu.BLUE,dark:wu.BLUE_DARK,contrastText:wu.WHITE},error:{light:wu.RED_PALE,main:wu.RED,dark:wu.RED_DARK,contrastText:wu.WHITE},warning:{light:wu.ORANGE_PALE,main:wu.ORANGE,dark:wu.ORANGE_DARK,contrastText:wu.WHITE},success:{light:wu.GREEN_PALE,main:wu.GREEN,dark:wu.GREEN_DARK,contrastText:wu.WHITE},info:{light:wu.BLUE_PALE,main:wu.BLUE,dark:wu.BLUE_DARK,contrastText:wu.WHITE},text:{primary:wu.TEXT_PRIMARY,secondary:wu.TEXT_SECONDARY,disabled:wu.GREYSCALE_0_30},action:{hover:wu.GREYSCALE_0_03,hoverOpacity:.05,selected:wu.GREYSCALE_0_05},amethyst:{main:wu.PURPLE,light:wu.PURPLE_PALE,dark:wu.PURPLE_DARK,contrastText:wu.WHITE},background:{paper:wu.WHITE,default:wu.GREYSCALE_95},divider:wu.GREYSCALE_0_15},Mh=e=>({components:Th(),palette:Lh,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:Au,fontWeightLight:Tu,fontWeightRegular:Lu,fontWeightMedium:Mu,fontWeightBold:qu,htmlFontSize:Au,fontFamily:ku.FONT_FAMILY,button:{fontWeight:Mu,fontSize:Au,textTransform:"none"},body1:{fontSize:Du,lineHeight:"24px"},body2:{fontSize:Au,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pu,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Du,fontWeight:Mu,lineHeight:"16px"},h6:{fontSize:Au,fontWeight:Mu,lineHeight:"16px"},caption:{color:wu.TEXT_SECONDARY},subtitle1:{fontSize:Au,color:wu.TEXT_SECONDARY},subtitle2:{fontSize:Ru,color:wu.TEXT_SECONDARY}},shape:{borderRadius:Iu}}),qh={...Cu,MISC_FOCUS_BORDER:wu.MISC_FOCUS_BORDER},kh=(e="light")=>Mh();var Oh=kh().palette,Nh={SELECTED:{color:qh.GREYSCALE_100,background:Oh.primary.light,selectedCellClass:uu.SELECTED},POSSIBLE:{color:Oh.text.primary,background:qh.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},_h=4/3,Fh="12px",zh={height:"auto",fontSize:Fh,lineHeight:"unset",padding:"".concat(4,"px"),borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},jh=25e4,Hh=function(e,t,n){if(!(null==e?void 0:e.length))return[];var r=[],o=[],i=t;if(e.forEach((function(e,a){if(e.columnWidth){var l=e.columnWidth,s=l.type,u=l.pixels,c=l.percentage,d=e.label,p=e.qApprMaxGlyphCount,f=e.totalInfo,m=0,h=function(){r[a]=Math.min(cn.PixelsMax,Math.max(cn.PixelsMinTable,m)),i-=r[a]};switch(s){case dn.Pixels:m=u||cn.PixelsDefault,h();break;case dn.Percentage:m=(c||cn.PercentageDefault)/100*t,h();break;case dn.FitToContent:m=n(d,f,p,e.isLocked),h();break;case dn.Auto:o.push(a);break;default:throw new Error("".concat(s," is not a valid column width type"))}}else o.push(a)})),o.length){var a=i/o.length;o.forEach((function(e){r[e]=Math.max(cn.PixelsMinTable,a)}))}return r};const Bh=kh().palette,$h={TEXT:Bh.text.primary,DISABLED:Bh.text.disabled,HOVER:Bh.action.hover,WHITE:qh.GREYSCALE_100,BORDER_LIGHT:qh.GREYSCALE_90,BORDER_MEDIUM:qh.GREYSCALE_85,BORDER_HEAVY:qh.GREYSCALE_50,DARK_MODE_TEXT:qh.GREYSCALE_95,DARK_MODE_BORDER:qh.GREYSCALE_95,DARK_MODE_DISABLED:qh.GREYSCALE_70,DARK_MODE_BACKGROUND:qh.GREYSCALE_20},Wh=Math.PI/180,Vh=180/Math.PI,Uh=.96422,Gh=1,Yh=.82521,Kh=4/29,Zh=6/29,Xh=3*Zh*Zh,Jh=Zh*Zh*Zh;function Qh(e){if(e instanceof eg)return new eg(e.l,e.a,e.b,e.opacity);if(e instanceof ag)return lg(e);e instanceof xe||(e=ve(e));var t,n,r=og(e.r),o=og(e.g),i=og(e.b),a=tg((.2225045*r+.7168786*o+.0606169*i)/Gh);return r===o&&o===i?t=n=a:(t=tg((.4360747*r+.3850649*o+.1430804*i)/Uh),n=tg((.0139322*r+.0971045*o+.7141733*i)/Yh)),new eg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function eg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function tg(e){return e>Jh?Math.pow(e,1/3):e/Xh+Kh}function ng(e){return e>Zh?e*e*e:Xh*(e-Kh)}function rg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function og(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ig(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ag)return new ag(e.h,e.c,e.l,e.opacity);if(e instanceof eg||(e=Qh(e)),0===e.a&&0===e.b)return new ag(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Vh;return new ag(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ag(e,t,n,null==r?1:r)}function ag(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function lg(e){if(isNaN(e.h))return new eg(e.l,0,0,e.opacity);var t=e.h*Wh;return new eg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}X(eg,(function(e,t,n,r){return 1===arguments.length?Qh(e):new eg(e,t,n,null==r?1:r)}),J(Q,{brighter(e){return new eg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eg(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new xe(rg(3.1338561*(t=Uh*ng(t))-1.6168667*(e=Gh*ng(e))-.4906146*(n=Yh*ng(n))),rg(-.9787684*t+1.9161415*e+.033454*n),rg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),X(ag,ig,J(Q,{brighter(e){return new ag(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ag(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return lg(this).rgb()}}));const sg=(e,t)=>{const n=ig(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?ye(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},ug=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,cg=e=>{const t=ug.exec(e);if(t){const[,e,n,r,o]=t;return ye(+n,+r,+o,+e/255)}return ye(e)},dg=e=>{const t=cg(e);return Number.isNaN(t.r)?null:t.toString()},pg=e=>{if(void 0===e)return;const t=cg(e);return t.opacity=1,t.toString()},fg=(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)},mg=e=>{e.stopPropagation(),e.preventDefault()};var hg=function(e,t){var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},gg=function(e){return e.querySelector("td[tabindex='0'], th[tabindex='0']")},bg=function(e){var t,n,r=e.nextElementSibling;return r?"HR"===r.tagName?bg(r):r:null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0]},vg=function(e){var t,n,r,o,i=e.previousElementSibling;if(!i){var a=null===(n=null===(t=e.parentElement)||void 0===t?void 0:t.children)||void 0===n?void 0:n.length;return null===(o=null===(r=e.parentElement)||void 0===r?void 0:r.children)||void 0===o?void 0:o[a-1]}return"HR"===i.tagName?vg(i):i},yg=function(e){return!e.enabled||e.active},xg=function(e){setTimeout((function(){var t,n,r=null===(n=null===(t=e.current)||void 0===t?void 0:t.closest(".sn-table-cell"))||void 0===n?void 0:n.querySelector(".".concat(sn));null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},Sg=function(e){var t=e.focusType,n=e.cell;if(n)switch(t){case pu.FOCUS:n.focus(),n.setAttribute("tabIndex","0");break;case pu.FOCUS_BUTTON:n.querySelector(".sn-table-head-label").focus();break;case pu.BLUR:n.blur(),n.setAttribute("tabIndex","-1");break;case pu.ADD_TAB:n.setAttribute("tabIndex","0");break;case pu.REMOVE_TAB:n.setAttribute("tabIndex","-1")}},Eg=function(e,t,n,r,o,i){var a=function(e,t,n,r){void 0===r&&(r={top:0,bottom:0});var o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length,a=n[0],l=n[1];switch(e.key){case du.DOWN:a<o-1-r.bottom&&a++;break;case du.UP:a>r.top&&a--;break;case du.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case du.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]}(e,t,n,i),l=hg(t,a);return Sg({focusType:o,cell:l}),r(a),l},Cg=function(e,t){var n=gg(e),r=n?function(e,t){for(var n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell"),o=0,i=0;i<r.length;i++)if(r[i]===t){o=i;break}return[Math.ceil(o/n),o%n]}(e,n):bu;n=n||hg(e,bu),Sg({cell:n,focusType:pu.FOCUS}),t(r)},wg=function(e,t,n,r){var o;Sg({focusType:pu.REMOVE_TAB,cell:gg(t)}),n(e),r.enabled&&!r.active?null===(o=r.focus)||void 0===o||o.call(r):Sg({focusType:pu.ADD_TAB,cell:hg(t,e)})},Rg=function(e){return e.ctrlKey||e.metaKey},Ag=function(e){return e.shiftKey&&Rg(e)},Dg=function(e){return[du.LEFT,du.RIGHT,du.UP,du.DOWN].includes(e)},Pg=function(e){return e.shiftKey&&Dg(e.key)},Ig=function(e,t){return void 0===t&&(t=!1),e.key===du.ESC&&!t||(e.key===du.LEFT||e.key===du.RIGHT)&&Ag(e)},Tg=function(e,t){var n=t.key===du.UP&&1===e[0],r=t.key===du.LEFT&&1===e[0]&&0===e[1];return n||r?pu.FOCUS_BUTTON:pu.FOCUS},Lg=function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.totalsPosition,u=e.isSelectionMode,c=s.atTop?2:1,d=[r.pageRowIdx+c,r.pageColIdx],p={top:u?c:0,bottom:u&&s.atBottom?1:0},f=Tg(d,t);f===pu.FOCUS&&Sg({focusType:pu.REMOVE_TAB,cell:t.target});var m=Eg(t,n,d,a,f,p);t.key!==du.UP&&t.key!==du.DOWN||(t.key===du.UP&&function(e,t){var n,r=t.getElementsByClassName("sn-table-container")[0];if(null==r?void 0:r.scrollTo){var o=e[0],i=e[1];if(o<2)r.scrollTo({top:0,behavior:"auto"});else{var a=t.getElementsByClassName("sn-table-head-cell")[0],l=null===(n=t.getElementsByClassName("sn-table-row")[o])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[i];if(!l)return;if(l.offsetTop-a.offsetHeight<r.scrollTop){var s=r.scrollTop-l.offsetHeight-a.offsetHeight;r.scrollTo({top:Math.max(0,s),behavior:"auto"})}}}}([r.pageRowIdx,r.pageColIdx],n),function(e,t,n){return t.shiftKey&&(t.key===du.UP&&0!==n.pageRowIdx||t.key===du.DOWN&&!n.isLastRow)&&e&&n.isSelectable}(i,t,r)?o({type:cu.SELECT_MULTI_ADD,payload:{cell:r,evt:t,announce:l}}):function(e,t,n){void 0===n&&(n=!1),n&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})}(l,m,u))},Mg=function(e){var t=e.evt,n=e.rootElement,r=e.setFocusedCellCoord,o=e.keyboard,i=e.isSelectionMode,a=e.paginationNeeded;if((null==o?void 0:o.enabled)&&i&&(t.shiftKey||!t.shiftKey&&!a))mg(t),fg(t.target,o,t.shiftKey);else if(t.shiftKey){r([0,n.querySelectorAll(".sn-table-head-cell").length-1])}},qg=function(e,t){var n=t.colIdx,r=t.rows,o=t.api,i=uu.INACTIVE;return(null==o?void 0:o.isModal())&&(i=n!==e.selectionColIdx?uu.EXCLUDED:void 0!==r[e.qElemNumber]?uu.SELECTED:uu.POSSIBLE),i},kg=function(e,t,n){var r=Object.keys(n).length,o=r>=Object.keys(t).length;r?e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]}):e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Og=function(e,t){var n=e.api,r=e.rows,o=e.colIdx,i=t.cell,a=t.announce,l=t.evt,s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s=j({},r)}return s=function(e,t,n){var r,o=t.qElemNumber,i=t.rowIdx;return n.ctrlKey||n.metaKey?((r={})[o]=i,r):(void 0!==e[o]?delete e[o]:e[o]=i,j({},e))}(s,i,l),kg(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),j(j({},e),{rows:s,colIdx:i.selectionColIdx})):(null==n||n.cancel(),j(j({},e),{rows:s,colIdx:-1}))},Ng=function(e,t){var n,r=e.api,o=e.rows,i=e.colIdx,a=e.pageRows,l=e.firstCell,s=t.cell,u=t.announce,c=t.evt,d={};return l||"key"in c&&Pg(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d=j({},o),d=function(e,t,n,r,o){var i=j({},t);if("key"in r&&Pg(r)){i[n.qElemNumber]=n.rowIdx;var a=r.key===du.DOWN?1:-1;return i[e[n.pageRowIdx+a]["col-".concat(n.pageColIdx)].qElemNumber]=n.rowIdx+a,i}if(!o)return t;for(var l=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx),u=l;u<=s;u++){var c=e[u]["col-".concat(o.pageColIdx)];i[c.qElemNumber]=c.rowIdx}return i}(a,d,s,c,l),kg(u,o,d),j(j({},e),{rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0})):e},_g=function(e){var t=e.api,n=e.rows,r=e.colIdx,o=e.isSelectMultiValues,i=e.mouseupOutsideCallback;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),j(j({},e),{isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0})},Fg=function(e,t){var n;switch(t.type){case cu.SELECT:return Og(e,t.payload);case cu.SELECT_MOUSE_DOWN:return function(e,t){var n=t.cell,r=t.mouseupOutsideCallback;return!r||-1!==e.colIdx&&e.colIdx!==n.selectionColIdx?e:(document.addEventListener("mouseup",r),j(j({},e),{firstCell:n,mouseupOutsideCallback:r}))}(e,t.payload);case cu.SELECT_MOUSE_UP:return function(e,t){return _g(e.isSelectMultiValues||e.firstCell!==t.cell?e:Og(e,t))}(e,t.payload);case cu.SELECT_MULTI_ADD:return Ng(e,t.payload);case cu.SELECT_MULTI_END:return _g(e);case cu.RESET:return(null===(n=e.api)||void 0===n?void 0:n.isModal())?e:j(j({},e),{rows:{},colIdx:-1});case cu.CLEAR:return Object.keys(e.rows).length?j(j({},e),{rows:{}}):e;case cu.UPDATE_PAGE_ROWS:return j(j({},e),{pageRows:t.payload.pageRows});default:throw new Error("reducer called with invalid action type")}},zg=4/3,jg={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Hg=function(e){return parseInt(e,10)*zg+8+1},Bg=function(e){return!!e&&(null!==e.color||e.index>-1)};function $g(e,t,n){void 0===n&&(n={});var r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}var Wg=function(e){return Me(e)?$h.WHITE:$h.TEXT},Vg=function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.find((function(e){return"theme"===e.key}))},Ug=function(e,t,n,r){void 0===r&&(r=!1);var o=t.getStyle("object","straightTableV2.".concat(e),"fontFamily"),i=t.getStyle("object","straightTableV2.".concat(e),"color"),a=t.getStyle("object","straightTableV2.".concat(e),"fontSize"),l=j({fontFamily:o,color:Bg(null==n?void 0:n.fontColor)?$g($h.TEXT,t,null==n?void 0:n.fontColor):i||$h.TEXT,fontSize:(null==n?void 0:n.fontSize)&&"".concat(n.fontSize,"px")||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0},function(e,t){return e?{borderBottomColor:$h.DARK_MODE_BORDER,borderRightColor:$h.DARK_MODE_BORDER,borderLeftColor:$h.DARK_MODE_BORDER,borderTopColor:$h.DARK_MODE_BORDER}:{borderLeftColor:$h.BORDER_MEDIUM,borderRightColor:$h.BORDER_MEDIUM,borderTopColor:$h.BORDER_HEAVY,borderBottomColor:t?$h.BORDER_HEAVY:$h.BORDER_LIGHT}}(t.background.isDark,r));return Object.keys(l).forEach((function(e){var t=e;null==l[t]&&delete l[t]})),l};function Gg(e,t,n,r){var o,i,a,l,s=null===(o=Vg(e))||void 0===o?void 0:o.header,u=Ug("header",t,s,n);return u.background=t.background.isTransparent?$h.WHITE:pg(t.background.color),(null==r?void 0:r.isNewHeadCellMenuEnabled)&&(u.hoverBackground=sg(null!==(i=u.background)&&void 0!==i?i:$h.WHITE,jg.hover),u.activeBackground=sg(null!==(a=u.background)&&void 0!==a?a:$h.WHITE,jg.active)),u.color=null!==(l=u.color)&&void 0!==l?l:Me(u.background)?$h.DARK_MODE_TEXT:$h.TEXT,u}function Yg(e,t,n,r){var o,i=null===(o=Vg(e))||void 0===o?void 0:o.content,a=Ug("content",t,i);a.background=t.background.color;var l,s=function(e,t,n){return e&&t&&n&&Hg(e)*(t+2)<n.clientHeight-40?"1px":"0px"}(null==a?void 0:a.fontSize,n,r),u=null==i?void 0:i.hoverColor,c=null==i?void 0:i.hoverFontColor,d=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),p=t.getStyle("object","","straightTableV2.content.hover.color"),f=Bg(c)||!!p,m=Bg(u)||!!d,h=f||m;l=Bg(u)?$g($h.HOVER,t,u):d||(f?"":$h.HOVER);var g=h?$g(Wg(l),t,Bg(c)?c:p):"";return j(j({},a),{lastRowBottomBorder:s,hoverColors:{background:l,color:g}})}function Kg(e,t,n){var r,o={};return null===(r=null==t?void 0:t.qValues)||void 0===r||r.forEach((function(e,t){var r=e.qText&&dg(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Wg(o.cellBackgroundColor)),j(j({},e),{color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background})}var Zg=function(e,t,n,r,o){var i=E((function(){var i=n.totalsPosition.atTop,a=Yg(e,t,n.rows.length,r),l=Gg(e,t,!i,o),s=function(e,t,n){var r,o=null===(r=Vg(e))||void 0===r?void 0:r.content,i=Ug("content",t,o),a=Gg(e,t,n),l=a.borderBottomColor,s=a.borderTopColor,u=a.background;return j(j({},i),{borderBottomColor:l,background:u,borderTopColor:s})}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},Xg=new Map;var Jg,Qg,eb=L({}),tb=(Jg=eb,Qg=L([function(){},new Set]),Xg.set(Jg,Qg),function(e){var t=e.children,n=e.value,r=A(n),o=A(new Set);C((function(){r.current=n,o.current.forEach((function(e){e(n)}))}),[n]);var i=M((function(){return r.current}),[r]),a=E((function(){return[i,o.current]}),[i]);return x.createElement(Jg.Provider,{value:n},x.createElement(Qg.Provider,{value:a},t))}),nb={rows:[],columns:[],totalsPosition:{}},rb=function(e){var t=e.app,n=e.children,r=e.tableData,o=void 0===r?nb:r,i=e.selectionsAPI,a=e.cellCoordMock,l=e.layout,s=e.model,u=e.translator,c=e.interactions,d=e.theme,p=e.keyboard,f=e.rootElement,m=e.embed,h=e.changeSortOrder,g=e.applyColumnWidths,b=e.setPage,v=e.pageInfo,y=e.initialDataPages,C=e.rect,w=e.viewService,R={isNewHeadCellMenuEnabled:e.isNewHeadCellMenuEnabled},A=S(0),D=A[0],P=A[1],I=S(a||gu),L=I[0],M=I[1],q=function(e,t){var n=T(Fg,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n[0],n[1]]}(o.rows,i),k=q[0],O=q[1],N=S(-1),_=N[0],F=N[1],z=Zg(l,d,o,f,R),H=function(e,t,n,r){var o=r.head,i=r.body,a=t.atBottom||t.atTop,l=Kt(j(j({},o),{bold:!0,maxNbrLinesOfText:3})).measureText,s=Kt(j(j({},i),{bold:!0,maxNbrLinesOfText:3})).measureText,u=Kt(j(j({},o),{bold:!1,maxNbrLinesOfText:3})).estimateWidth,c=E((function(){return function(e,t,n,r){var o=r?99:71;return Math.max(l(e)+o,a?s(t)+24+1:0,u(n))}}),[u,l,s,a]),d=S(0),p=d[0],f=d[1],m=S((function(){return Hh(e,n,c)})),h=m[0],g=m[1];V((function(){g(Hh(e,n-p,c))}),[e,n,p,c]);var b=E((function(){return function(e,t,n){return!!(e&&e.length>0)&&e.reduce((function(e,t){return e+t}))+t<n}(h,p,n)}),[h,p,n]);return[h,g,f,b]}(o.columns,o.totalsPosition,C.width,z),B=H[0],$=H[1],W=H[2],U=H[3],G=E((function(){return{app:t,selectionsAPI:i,layout:l,model:s,translator:u,interactions:c,theme:d,keyboard:p,rootElement:f,embed:m,changeSortOrder:h,applyColumnWidths:g,styling:z,rect:C,viewService:w}}),[t,i,l,s,u,c,d.name(),p.active,f,m,h,g,z,C,w]);return x.createElement(tb,{value:{headRowHeight:D,setHeadRowHeight:P,focusedCellCoord:L,setFocusedCellCoord:M,selectionState:k,selectionDispatch:O,hoverIndex:_,setHoverIndex:F,columnWidths:B,setColumnWidths:$,baseProps:G,tableData:o,setYScrollbarWidth:W,setPage:b,pageInfo:v,initialDataPages:y,showRightBorder:U,featureFlags:R}},n)};function ob(e,t){var n=function(e){return Xg.get(e)}(e),r=w(n),o=r[0],i=r[1],a=T((function(e){return e+1}),0)[1],l=A(t),s=A(),u=o();if(void 0===u)throw new Error("You must call useContextSelector inside a valid context.");var c=E((function(){return t(u)}),[u,t]);return C((function(){l.current=t,s.current=c}),[u,c,t]),C((function(){var e=function(e){(l.current&&l.current(e))!==s.current&&a()};return i.add(e),function(){i.delete(e)}}),[i]),c}function ib(e){var t,n,r=kh();return(null===(n=null===(t=null==r?void 0:r.components)||void 0===t?void 0:t.MuiTable)||void 0===n?void 0:n.styleOverrides)&&(r.components.MuiTable.styleOverrides.root={}),Vs(j(j({},r),{direction:e}))}function ab(){return ab=Object.assign||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},ab.apply(this,arguments)}function lb(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){sb(e,t,n[t])}))}return e}function sb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ub(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cb(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var db=function(e){var t=e.d,n=e.size,r=e.style,o=ub(e,["d","size","style"]);return x.createElement("i",ab({style:lb({fontSize:cb(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},x.createElement("path",{d:t})))};function pb(e){return x.createElement(db,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const fb={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},mb=(e,t)=>e.some((e=>t[e]>0)),hb=Js(hp,{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"}))),gb=Js(pb,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),bb=Js(Qf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),vb=Js(zp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yb=Js(Sf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),xb=Js(om,{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),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),Sb=Js("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"}))),Eb=Js("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Cb=Js(cd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),wb=Js(Af)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ab=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"}))));let Db={};const Pb=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=A(null),f=M((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(xb,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{n&&(await n(e),Db={}),null!=a&&a.length&&(d(!0),Db[r]=d)},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(Sb,null),x.createElement(Eb,null,x.createElement(wb,null,x.createElement(o,null)),x.createElement(Cb,{variant:"body2"},r)),null!=a&&a.length?x.createElement(Ab,null):null),(null==a?void 0:a.length)&&x.createElement(Tb,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Db,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},Ib=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(yb,null,e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(Pb,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),Tb=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?x.createElement(bb,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r,...a?{anchorOrigin:a}:{},...i?{transformOrigin:i}:{}},(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[Ib({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(vb,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function Lb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"}))));function qb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"}))));function Ob(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ob(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"}))));function _b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_b(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"}))));function zb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"}))));function Hb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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.304 1.304-1.304Z"}))));function $b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$b(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Vb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ub=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Gb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"}))));function Kb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zb=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"}))));var Xb;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(Xb||(Xb={}));const Jb=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnClosetHeaderAdjuster:d})=>{const p=[];if(n[Xb.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:kb,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:Mb,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[Xb.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:Nb,enabled:!0}]}]),n[Xb.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Fb,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:jb,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:Wb,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:Ub,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:Yb,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:Bb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[Xb.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:Zb,enabled:!0}]}]),p},Qb=({open:e,setOpen:t,tabIndex:n,anchorRef:r,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:p,adjustHeaderSizeRelatedArgs:f})=>{var m;const h=G({translator:i}),{headTextAlign:g,qLibraryId:b,fieldId:v}=o,{fieldInstance:y,selectionActionsEnabledStatus:E,resetSelectionActionsEnabledStatus:w,updateSelectionActionsEnabledStatus:R}=(({headerData:e,app:t})=>{const[n,r]=S(null),[o,i]=S(fb);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:M((()=>i(fb)),[]),updateSelectionActionsEnabledStatus:M((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:mb(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:mb(["qSelected"],n.qStateCounts),canSelectPossible:mb(["qOption"],n.qStateCounts),canSelectAlternative:mb(["qAlternative"],n.qStateCounts),canSelectExcluded:mb(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:o,app:null==p?void 0:p.app}),A=M((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;if(null!=d&&d.embed&&d.listboxRef){const{embed:t,listboxRef:n}=d;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[d,v,b]);C((()=>{e||(w(),null!=p&&p.model&&p.model.getLayout().then((e=>{R(e)})).catch((e=>console.error(e))))}),[e,w,R,null==p?void 0:p.model]);const D=M((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?x.createElement(hb,{tabIndex:n,rightAligned:"right"===g,shouldShowMenuIcon:u},u&&x.createElement(gb,{size:"small",className:an,"data-testid":an,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(m=a.active)&&void 0!==m&&m},x.createElement(pb,null)),x.createElement(Tb,{open:e,anchorEl:r.current,onClose:D,menuGroups:Jb({headerData:o,translator:h,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:A,interactions:a,fieldInstance:y,selectionActionsEnabledStatus:E,anchorRef:r,setFocusOnClosetHeaderAdjuster:null==f?void 0:f.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:l})):null},ev=Js(hp,{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}`}))),tv=Js(Hm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),nv=Js(Ap,{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)}))),rv=Js(cd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ov=e=>e.isDark?{background:e.color,borderColor:$h.DARK_MODE_BORDER,color:$h.DARK_MODE_TEXT,disabledColor:$h.DARK_MODE_DISABLED,iconColor:$h.DARK_MODE_TEXT}:{background:e.color,borderColor:$h.BORDER_MEDIUM,color:$h.TEXT,disabledColor:$h.DISABLED},iv=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=E((()=>ov(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(ev,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},av=L({}),lv=()=>w(av),sv=({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,b=E((()=>ov(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=G({translator:d}),S=E((()=>({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:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(av.Provider,{value:S},e)};var uv,cv;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(uv||(uv={})),function(e){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"}(cv||(cv={}));const dv=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=lv(),{page:o,rowsPerPage:i}=n;if(t<=cv.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(rv,{variant:"caption"},a)},pv=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=lv(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(rv,{variant:"caption",id:d},u,":"),x.createElement(tv,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},fv=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=lv();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>cv.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(pv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},mv=1e3,hv="…",gv=({totalPages:e,page:t})=>{const n=Math.min(e,mv),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-mv):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:hv,disabled:!0},hv)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:hv,disabled:!0},hv)),x.createElement(x.Fragment,null,a)},bv=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=lv(),{page:o}=e;if(t<=cv.SelectPage)return null;const i=x.createElement(gv,{totalPages:n,page:o});return x.createElement(pv,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"}))));function Ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cv=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ev(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})))),wv={FirstPage:Sv,PreviousPage:yv,NextPage:Ab,LastPage:Cv,FirstPageRTL:Cv,PreviousPageRTL:Ab,NextPageRTL:yv,LastPageRTL:Sv},Rv=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=lv(),u=wv[`${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}},Av=()=>{const{pageInfo:e,width:t}=lv(),n=0===e.page,{IconComponent:r,styledProps:o}=Rv({type:uv.FirstPage,disabledCondition:n,pageNumber:0});return t<=cv.FirstPage?null:x.createElement(nv,{...o},x.createElement(r,{height:on}))},Dv=()=>{const{pageInfo:e}=lv(),t=0===e.page,{IconComponent:n,styledProps:r}=Rv({type:uv.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(nv,{...r},x.createElement(n,{height:on}))},Pv=(e,t,n=!1)=>{n&&e.key===ln.TAB&&!e.shiftKey&&(mg(e),fg(e.target,t,!1))},Iv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=lv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Rv({type:uv.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>cv.FirstPage&&o>cv.LastPage)&&t.enabled?e=>Pv(e,t,r):null;return x.createElement(nv,{...l,onKeyDown:s},x.createElement(a,{height:on}))},Tv=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=lv(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Rv({type:uv.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Pv(e,t,r):null;return o<=cv.LastPage?null:x.createElement(nv,{...l,onKeyDown:s},x.createElement(a,{height:on}))};var Lv=k((e=>x.createElement(sv,{...e},x.createElement(fv,null),x.createElement(bv,null),x.createElement(dv,null),x.createElement(Av,null),x.createElement(Dv,null),x.createElement(Iv,null),x.createElement(Tv,null))));const Mv=e=>x.createElement(iv,{...e},x.createElement(Lv,{...e})),qv=Js(hp,{shouldForwardProp:e=>"isLastColumn"!==e})((({isLastColumn:e})=>({PointerEvent:"all",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)":{[`& .${un}`]:{background:"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${un}`]:{background:"#177fe6"}}}))),kv=Js(hp)({position:"absolute",height:"100%",width:"3px"}),Ov=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s})=>{const u=E((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),c=r||o?cn.PixelsMin:cn.PixelsMinTable,d=n?0:1,p={left:r?u.columnWidth-d:"100%"},f=e=>{const t=Math.max(u.initWidth+e,c);u.columnWidth=t,i(t)},m=()=>{if(u.columnWidth!==u.initWidth){const e={type:dn.Pixels,pixels:u.columnWidth};a(e)}else null==s||s(!1)},h=e=>{const t=e.clientX-u.initX;f(t)},g=e=>{mg(e),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g),m()},b=e=>{const t=e.touches[0].clientX-u.initX;f(t)},v=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",v),m()},y=!r&&l?e=>{if(e.key===ln.LEFT||e.key===ln.RIGHT){mg(e);const t=u.columnWidth-u.initWidth,n=5,r=e.key===ln.LEFT?t-n:t+n;f(r)}else e.key===ln.SPACE||e.key===ln.ENTER?(mg(e),l(e),m()):e.key===ln.ESC&&(mg(e),l(e),f(u.initWidth))}:void 0;return x.createElement(qv,{className:sn,isLastColumn:n,style:p,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),null==s||s(!0),u.initX=e.clientX},onDoubleClick:()=>a({type:dn.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",b),document.addEventListener("touchend",v),null==s||s(!0),u.initX=e.touches[0].clientX)},onKeyDown:y,onBlur:l,"data-testid":sn},x.createElement(kv,{className:un}))};var Nv=Js(hp,{shouldForwardProp:function(e){return"background"!==e}})((function(e){return{height:"100%",background:e.background.tableColorFromTheme}})),_v=Js(hp,{shouldForwardProp:function(e){return"lines"!==e&&"wordBreak"!==e}})((function(e){var t=e.lines,n=e.wordBreak;return j({lineHeight:"calc(4/3)",fontSize:"inherit"},(n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"})})),Fv=Js(hp)({overflow:"hidden",textOverflow:"ellipsis"});function zv(e,t){var n=A(!1);C((function(){n.current?e():n.current=!0}),t)}var jv=function(e,t,n){C((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){if(0!==e.deltaX){e.stopPropagation();var r=n.scrollWidth-n.offsetWidth,o=n.scrollLeft,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))}}(e,"rtl"===t,r)},i=function(e){var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),function(){r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}}),[e,t,n])},Hv=function(e){var t,n=e.key,r=e.target,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===du.DOWN||n===du.UP){var i=function(e){return n===du.DOWN?bg(e):vg(e)};mg(e);for(var a=i(o);a;){if("true"!==a.ariaDisabled){a.focus();break}a=i(a)}}},Bv=function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord;if(e.isInteractionEnabled){if(!Ig(n)){var a=!(null===(t=n.target.closest(".sn-table-cell"))||void 0===t?void 0:t.nextSibling);switch(n.key){case du.LEFT:case du.RIGHT:mg(n),n.key===du.RIGHT&&a?Cg(r,i):Eg(n,r,o,i,pu.FOCUS_BUTTON);break;case du.DOWN:mg(n),Sg({focusType:pu.REMOVE_TAB,cell:gg(r)}),Eg(n,r,o,i,pu.FOCUS);break;case du.TAB:!function(e,t,n,r,o){var i=e.target.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(mg(e),Cg(t,r)):r([n[0],n[1]+1]))}(n,r,o,i,a);break;case du.C:mg(n),Rg(n)&&kn(n)}}}else mg(n)},$v=function(e){var t=ob(eb,(function(e){return e.baseProps})),n=t.layout,r=t.rect,o=t.theme.name(),i=S(0),a=i[0],l=i[1],s=S(0),u=s[0],c=s[1];return O((function(){var t;if(e.current){var n=null!==(t=e.current)&&void 0!==t?t:{},r=n.offsetWidth,o=void 0===r?0:r,i=n.offsetHeight,a=void 0===i?0:i,s=n.clientWidth,u=void 0===s?0:s,d=n.clientHeight,p=a-(void 0===d?0:d);c(o-u),l(p)}}),[e,n,r,o]),{xScrollbarWidth:a,yScrollbarWidth:u}},Wv=Js("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Vv=Js(dh,{shouldForwardProp:function(e){return"fullHeight"!==e&&"interactions"!==e}})((function(e){var t=e.fullHeight,n=e.interactions;return{height:t?"100%":"calc(100% - ".concat(41,"px)"),overflow:n.active?"auto":"hidden",border:"none"}})),Uv=Js(Ym,{shouldForwardProp:function(e){return"showRightBorder"!==e&&"styling"!==e}})((function(e){var t=e.showRightBorder,n=e.styling;return{tableLayout:"fixed",width:"min-content",borderRight:t?"1px solid ".concat(n.body.borderRightColor):void 0}})),Gv=function(){return x.createElement(x.Fragment,null,x.createElement(Wv,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),x.createElement(Wv,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"}))},Yv=function(e){var t=e.children,n=e.fontSize,r=void 0===n?"":n,o=e.wordBreak,i=void 0!==o&&o,a=e.lines,l=void 0===a?3:a,s=parseInt(r||Fh,10),u=x.createElement(_v,{component:"span",className:"sn-table-cell-text",wordBreak:i,lines:l},t);return i?u:x.createElement(Fv,{minHeight:s*_h,maxHeight:s*_h*l},u)},Kv=function(e){var t=e.selectionsAPI,n=e.selectionDispatch,r=e.setShouldRefocus,o=e.keyboard,i=e.tableWrapperRef;C((function(){var e=function(){n({type:cu.RESET})},a=function(){n({type:cu.CLEAR})},l=function(){var t,n;(null===(t=i.current)||void 0===t?void 0:t.contains(document.activeElement))?r():o.enabled&&(null===(n=o.blur)||void 0===n||n.call(o,!0)),e()};return null==t||t.on("deactivated",e),null==t||t.on("canceled",e),null==t||t.on("confirmed",l),null==t||t.on("cleared",a),function(){null==t||t.removeListener("deactivated",e),null==t||t.removeListener("canceled",e),null==t||t.removeListener("confirmed",l),null==t||t.removeListener("cleared",a)}}),[t,o,n,r,i])},Zv=function(e,t,n,r){return{handleMouseDown:function(r){if(null==e||e(r),t.isSelectable){n({type:cu.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:function(){return n({type:cu.SELECT_MULTI_END})}}})}},handleMouseOver:function(e){1===e.buttons&&n({type:cu.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:function(e){0===e.button&&n({type:cu.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}},Xv=Js(th,{shouldForwardProp:function(e){return"lastRowBottomBorder"!==e}})((function(e){return{"& tr:last-child":{"& td, th":{borderBottomWidth:e.lastRowBottomBorder}}}})),Jv=Js(wh,{shouldForwardProp:function(e){return"hoverColors"!==e&&"hover"!==e}})((function(e){var t=e.hover,n=e.hoverColors;return j({"&&:hover":{background:"none"}},t&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":n}})})),Qv=Js(lh,{shouldForwardProp:function(e){return"cellStyle"!==e}})((function(e){var t=e.cellStyle,n=e.theme;return j(j(j({},zh),t),{padding:n.spacing(.5,1.5)})})),ey=Js(lh,{shouldForwardProp:function(e){return"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e}})((function(e){var t=e.totalsStyle,n=e.atTop,r=e.headRowHeight,o=e.theme;return j(j(j({},zh),t),{fontWeight:"600",position:"sticky",padding:o.spacing(.5,1.5),borderWidth:n?"0px 1px 1px 0px":"1px 1px 1px 0px",top:n&&r,bottom:!n&&0})}));function ty(e){return function(t){var n=t.cell,r=t.styling,o=t.announce,i=t.onMouseDown,a=ob(eb,(function(e){return qg(n,e.selectionState)})),l=ob(eb,(function(e){return e.selectionDispatch})),s=Zv(i,n,l,o),u=s.handleMouseDown,c=s.handleMouseOver,d=s.handleMouseUp,p=function(e,t){var n={};switch(t){case uu.SELECTED:n=Nh.SELECTED;break;case uu.POSSIBLE:n=Nh.POSSIBLE;break;case uu.EXCLUDED:n={background:"".concat(Nh.EXCLUDED_BACKGROUND,", ").concat(e.background),selectedCellClass:uu.EXCLUDED}}return j(j({},e),n)}(r,a);return x.createElement(e,j({},t,{styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c}))}}function ny(e,t){var n,r=(n=Qv,function(e){var t=e.styling,r=t.selectedCellClass,o=H(t,["selectedCellClass"]),i=e.component,a=e.align,l=e.children,s=e.scope,u=e.tabIndex,c=e.onKeyDown,d=e.onMouseDown,p=e.onKeyUp,f=e.onMouseUp,m=e.onMouseOver,h=e.title;return x.createElement(n,{cellStyle:o,component:i,scope:s,align:a,tabIndex:u,className:"sn-table-cell ".concat(r||""),title:h,onKeyDown:c,onMouseDown:d,onKeyUp:p,onMouseUp:f,onMouseOver:m},l)});return t&&(r=ty(r)),e&&(r=function(e){return function(t){var n=t.cell,r=t.column,o=t.styling,i=E((function(){return Kg(o,n.qAttrExps,r.stylingIDs)}),[o,n.qAttrExps,r.stylingIDs]);return x.createElement(e,j({},t,{styling:i}))}}(r)),r}var ry=function(){var e=ob(eb,(function(e){return e.tableData})),t=e.columns,n=e.totalsPosition.atTop,r=e.rows,o=ob(eb,(function(e){return e.baseProps})),i=o.rootElement,a=o.selectionsAPI,l=o.keyboard,s=o.styling,u=o.interactions,c=ob(eb,(function(e){return e.headRowHeight})),d=ob(eb,(function(e){return e.setFocusedCellCoord}));return x.createElement(wh,{className:"sn-table-row sn-table-totals-row"},t.map((function(e,t){var o=[n?1:r.length+1,t],p=n&&0===t&&!l.enabled?0:-1;return x.createElement(ey,{totalsStyle:s.totals,headRowHeight:c,atTop:n,key:e.id,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:p,title:u.passive?e.totalInfo:void 0,onKeyDown:function(e){!function(e,t,n,r,o){if(void 0===o&&(o=!1),o)mg(e);else if(!Ig(e))switch(e.key){case du.LEFT:case du.RIGHT:case du.UP:case du.DOWN:mg(e);var i=Tg(n,e);i===pu.FOCUS&&Sg({focusType:pu.REMOVE_TAB,cell:e.target}),Eg(e,t,n,r,i);break;case du.TAB:Mg({evt:e,rootElement:t,setFocusedCellCoord:r});break;case du.C:mg(e),Rg(e)&&kn(e);break;case du.SPACE:e.preventDefault()}}(e,i,o,d,null==a?void 0:a.isModal())},onMouseDown:function(){wg(o,i,d,l)}},x.createElement(Yv,{fontSize:s.totals.fontSize},e.totalInfo))})))},oy=k(ry),iy=function(e){var t,n,r=e.setShouldRefocus,o=e.tableWrapperRef,i=e.announce,a=ob(eb,(function(e){return e.tableData})),l=a.rows,s=a.columns,u=a.paginationNeeded,c=a.totalsPosition,d=ob(eb,(function(e){return e.baseProps})),p=d.selectionsAPI,f=d.rootElement,m=d.keyboard,h=d.layout,g=d.viewService,b=d.interactions,v=d.styling.body,y=v.hoverColors,S=v.lastRowBottomBorder,C=H(v,["hoverColors","lastRowBottomBorder"]),w=ob(eb,(function(e){return e.setFocusedCellCoord})),R=ob(eb,(function(e){return e.selectionDispatch})),A=!!b.active&&!!b.select,D=JSON.stringify(s.map((function(e){return e.stylingIDs}))),P=E((function(){return JSON.parse(D).map((function(e){return ny(!!e.length,A)}))}),[D,A]),I=!!(null===(n=null===(t=Vg(h))||void 0===t?void 0:t.content)||void 0===n?void 0:n.hoverEffect);return Kv({keyboard:m,selectionDispatch:R,selectionsAPI:p,setShouldRefocus:r,tableWrapperRef:o}),x.createElement(Xv,{lastRowBottomBorder:S},c.atTop?x.createElement(oy,null):void 0,l.map((function(e,t){return x.createElement(Jv,{hoverColors:y,hover:I,tabIndex:-1,key:e.id,className:"sn-table-row sn-table-data-row",rowindex:t},s.map((function(n,r){var o,a=n.id,l=e[a],s=P[r],d=0!==t||0!==r||c.atTop||m.enabled?-1:0;return s&&x.createElement(s,{scope:0===r?"row":null,component:0===r?"th":null,cell:l,column:n,key:a,align:l.align,styling:C,tabIndex:d,announce:i,title:b.passive?l.qText:void 0,onKeyDown:function(e){!function(e){var t=e.evt,n=e.rootElement,r=e.cell,o=e.selectionDispatch,i=e.isSelectionsEnabled,a=e.setFocusedCellCoord,l=e.announce,s=e.keyboard,u=e.paginationNeeded,c=e.totalsPosition,d=e.selectionsAPI;if(t.target.classList.contains("excluded"))mg(t);else{var p=null==d?void 0:d.isModal();if(!Ig(t,p))switch(t.key){case du.UP:case du.DOWN:case du.LEFT:case du.RIGHT:mg(t),Lg({evt:t,rootElement:n,cell:r,selectionDispatch:o,isSelectionsEnabled:i,setFocusedCellCoord:a,announce:l,totalsPosition:c,isSelectionMode:p});break;case du.SPACE:mg(t),r.isSelectable&&i&&o({type:cu.SELECT,payload:{cell:r,evt:t,announce:l}});break;case du.ENTER:mg(t),p&&(null==d||d.confirm(),l({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case du.ESC:mg(t),null==d||d.cancel(),l({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case du.TAB:Mg({evt:t,rootElement:n,setFocusedCellCoord:a,keyboard:s,isSelectionMode:p,paginationNeeded:u});break;case du.C:mg(t),Rg(t)&&kn(t)}}}({evt:e,rootElement:f,selectionsAPI:p,cell:l,selectionDispatch:R,isSelectionsEnabled:A,setFocusedCellCoord:w,announce:i,keyboard:m,paginationNeeded:u,totalsPosition:c})},onKeyUp:function(e){return function(e,t){e.key===du.SHIFT&&t({type:cu.SELECT_MULTI_END})}(e,R)},onMouseDown:function(){return function(e,t,n,r,o){var i=e.pageRowIdx,a=e.pageColIdx,l=o.atTop?i+2:i+1;wg([l,a],t,n,r)}(l,f,w,m,c)}},x.createElement(Yv,{fontSize:C.fontSize,lines:null===(o=g.viewState)||void 0===o?void 0:o.maxLineCount},l.qText))})))})),c.atBottom?x.createElement(oy,null):void 0)},ay=k(iy),ly=function(e){var t=e.column,n=e.isLastColumn,r=e.onColumnResize,o=t.pageColIdx,i=ob(eb,(function(e){return e.baseProps})),a=i.applyColumnWidths,l=i.interactions,s=ob(eb,(function(e){return e.featureFlags})).isNewHeadCellMenuEnabled,u=ob(eb,(function(e){return e.columnWidths})),c=ob(eb,(function(e){return e.setColumnWidths}));if(!l.active)return null;return x.createElement(Ov,{columnWidth:u[o],isLastColumn:n,keyValue:"adjuster-".concat(o),isNewHeadCellMenuEnabled:s,updateWidthCallback:function(e){null==r||r();var t=W([],u,!0);t[o]=e,c(t)},confirmWidthCallback:function(e){a(e,t)},handleBlur:function(e){return function(e){var t=e.target;t.setAttribute("tabIndex","-1");var n=null==t?void 0:t.closest(".sn-table-cell"),r=(null==n?void 0:n.querySelector(".sn-table-head-menu-button"))||(null==n?void 0:n.querySelector(".".concat(an)));null==r||r.focus()}(e)}})};function sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uy=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sy(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("defs",null,x.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),x.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"}))));var cy=Js("div")({position:"absolute",left:0,bottom:0}),dy=Js(Ap,{shouldForwardProp:function(e){return!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)}})((function(e){var t=e.isActivelySorted,n=e.textAlign,r=e.disabled,o=e.theme,i=e.isNewHeadCellMenuEnabled;return{textAlign:n,height:"auto",maxWidth:"100%",fontSize:"inherit",fontFamily:"inherit",padding:o.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:r?"auto":"pointer",justifySelf:n,"&&:focus, &&:hover":j(j({},i&&{background:"transparent"}),{"& svg":j({},!i&&{opacity:t?1:.5})}),"& svg":{opacity:t?1:0,fontSize:Fh},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:r?"hidden":"visible"}}})),py=Js("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),fy=Js(hp,{shouldForwardProp:function(e){return"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.theme,n=e.isLocked,r=e.isNewHeadCellMenuEnabled;return j(j({width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:t.spacing(.5),fontSize:"inherit",fontFamily:"inherit"},r&&{alignItems:"end",overflow:"hidden"}),{"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:n?"".concat(20,"px 2fr ").concat(hu,"px"):"1fr ".concat(hu,"px")},"&.aligned-center":{gridTemplateColumns:"".concat(hu,"px 2fr ").concat(hu,"px"),"& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:n?"".concat(hu,"px 2fr ").concat(20,"px"):"".concat(hu,"px 1fr"),"& > div:first-child":{gridColumn:n?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}})})),my=Js("div")({display:"flex",alignSelf:"flex-end"}),hy=Js(hp)({display:"flex",alignItems:"center",width:"".concat(20,"px"),height:"".concat(hu,"px"),flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),gy=Js(hp,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){var t=e.rightAligned;return j(j({},t?{marginRight:"auto"}:{marginLeft:"auto"}),{height:"".concat(hu,"px"),display:"flex"})})),by=Js(Ap,{shouldForwardProp:function(e){return"isVisible"!==e&&"rightAligned"!==e}})((function(e){return{opacity:e.isVisible?1:0,"&:focus":{opacity:1}}})),vy=Js(zp)((function(e){return{"&.MuiDivider-root":{margin:e.theme.spacing(.5)}}})),yy=Js(om)((function(e){var t=e.theme;return{borderRadius:"4px",margin:t.spacing(0,.5),padding:t.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}})),xy=Js("div")((function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}})),Sy=Js(Af)((function(e){return{marginRight:e.theme.spacing(1.5),lineHeight:0}}));Js("div")((function(e){return{height:"350px",boxSizing:"border-box",background:e.theme.palette.common.white}}));function Ey(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cy=q(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ey(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Zm5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1Z"}))));var wy=new Map,Ry={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Ay=function(e,t){return e.some((function(e){return t[e]>0}))},Dy={},Py=function(e){var t,n,r=e.autoFocus,o=e.id,i=e.onClick,a=e.itemTitle,l=e.icon,s=e.enabled,u=e.subMenus,c=S(!1),d=c[0],p=c[1],f=A(null);return x.createElement(x.Fragment,null,x.createElement(yy,{ref:u?f:null,key:o,"data-testid":"menu-item-".concat(o),className:"sn-table-head-menu-item",onClick:function(e){i&&(i(e),Dy={}),(null==u?void 0:u.length)&&(p(!0),Dy[a]=p)},disabled:!s,autoFocus:r,onKeyDown:Hv},x.createElement(xy,null,x.createElement(Sy,null,l),x.createElement(cd,{variant:"body2"},a)),(null==u?void 0:u.length)?x.createElement(Ab,null):null),(null==u?void 0:u.length)&&x.createElement(Ty,{anchorEl:f.current,open:d,onClose:function(){return p(!1)},menuGroups:(t=u,n=Dy,t.map((function(e){return e.map((function(e){var t=e.onClick,r=H(e,["onClick"]);return j(j({},r),t?{onClick:function(e){Object.entries(n).map((function(e){return(0,e[1])(!1)})),t(e)}}:{})}))}))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}}))},Iy=function(e){return e.menuGroup.map((function(e){return x.createElement(Py,j({key:e.id},e))}))},Ty=function(e){var t=e.anchorEl,n=e.open,r=e.onClose,o=e.menuGroups,i=e.transformOrigin,a=e.anchorOrigin,l=e.buttonId,s=e.menuId;return o.length?x.createElement(Qf,j({className:"sn-table-head-menu",id:s,open:n,anchorEl:t,onClose:r,"aria-labelledby":l},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),function(e){var t=e.itemGroups;return t.map((function(e,n){return[Iy({menuGroup:e}),n<t.length-1?x.createElement(vy,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0]}))}({itemGroups:o})):null},Ly=function(e){var t=e.column,n=e.tabIndex,r=t.isDim,o=t.qLibraryId,i=t.fieldId,a=t.headTextAlign,l=t.pageColIdx,s=ob(eb,(function(e){return e.baseProps})),u=s.translator,c=s.embed,d=s.model,p=s.interactions,f=s.layout,m=A(null),h=A(null),g=S(!1),b=g[0],v=g[1],y=S(!1),w=y[0],R=y[1],D=function(e,t){var n=ob(eb,(function(e){return e.baseProps})),r=n.app,o=n.layout,i=S(null),a=i[0],l=i[1],s=S(Ry),u=s[0],c=s[1];return C((function(){if(r&&r.getField&&e&&e.isDim&&t){var n=e.qLibraryId,i=e.fieldId;if(n){var a="".concat(r.id,"-").concat(n);wy.get(a)?l(wy.get(a)):r.createSessionObject(function(e,t){return void 0===t&&(t="$"),{qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}}(n,o.qStateName)).then((function(e){var t={selectAll:function(){return e.selectListObjectAll("/qListObjectDef")},clear:function(){return e.clearSelections("/qListObjectDef").then((function(e){return e}))},selectPossible:function(){return e.selectListObjectPossible("/qListObjectDef")},selectAlternative:function(){return e.selectListObjectAlternative("/qListObjectDef")},selectExcluded:function(){return e.selectListObjectExcluded("/qListObjectDef")}};l(t),wy.set(a,t)}))}else r.getField(i,o.qStateName).then(l)}}),[r,e,o.qStateName,t]),{fieldInstance:a,selectionActionsEnabledStatus:u,resetSelectionActionsEnabledStatus:M((function(){return c(Ry)}),[]),updateSelectionActionsEnabledStatus:function(t){var n=t.qHyperCube.qDimensionInfo.find((function(t){return t.qFallbackTitle===e.label}));n&&c({canSelectAll:Ay(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Ay(["qSelected"],n.qStateCounts),canSelectPossible:Ay(["qOption"],n.qStateCounts),canSelectAlternative:Ay(["qAlternative"],n.qStateCounts),canSelectExcluded:Ay(["qAlternative","qExcluded"],n.qStateCounts)})}}}(t,b),P=D.fieldInstance,I=D.selectionActionsEnabledStatus,T=D.resetSelectionActionsEnabledStatus,L=D.updateSelectionActionsEnabledStatus,q=M((function(){var e=o?{qLibraryId:o,type:"dimension"}:i;c.__DO_NOT_USE__.popover(h.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:f.qStateName}),c.on("fieldPopoverClose",(function(){R(!1)}))}),[c,i,o,f.qStateName]),k=E((function(){return W(W([],r&&p.select?[[{id:1,itemTitle:u.get("SNTable.MenuItem.Search"),onClick:function(e){e.stopPropagation(),v(!1),R(!0),q()},icon:x.createElement(Nb,null),enabled:!0}],[{id:1,itemTitle:u.get("SNTable.MenuItem.Selections"),icon:x.createElement(Fb,null),enabled:!0,subMenus:[[{id:1,itemTitle:u.get("SNTable.MenuItem.SelectAll"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectAll()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(jb,null),enabled:I.canSelectAll},{id:2,itemTitle:u.get("SNTable.MenuItem.SelectPossible"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectPossible()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Wb,null),enabled:I.canSelectPossible},{id:3,itemTitle:u.get("SNTable.MenuItem.SelectAlternative"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectAlternative()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Ub,null),enabled:I.canSelectAlternative},{id:4,itemTitle:u.get("SNTable.MenuItem.SelectExcluded"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.selectExcluded()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Yb,null),enabled:I.canSelectExcluded}],[{id:1,itemTitle:u.get("SNTable.MenuItem.ClearSelections"),onClick:function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return v(!1),[4,null==P?void 0:P.clear()];case 1:return e.sent(),[2]}}))}))},icon:x.createElement(Bb,null),enabled:I.canClearSelections}]]}]]:[],!0),[[{id:1,itemTitle:u.get("SNTable.MenuItem.AdjustColumnSize"),onClick:function(e){mg(e),v(!1),xg(m)},icon:x.createElement(Zb,null),enabled:!0}]],!1)}),[r,p.select,u,I,q,P]);C((function(){b||T()}),[b,T]);var O=f.qInfo.qId,N="sn-table-head-menu-button-".concat(l,"-").concat(O),_="sn-table-head-menu-".concat(l,"-").concat(O);return k.length?x.createElement(gy,{rightAligned:"right"===a},x.createElement(by,{isVisible:w||b,ref:m,size:"small",tabIndex:n,className:"sn-table-head-menu-button",id:N,"aria-controls":b?_:void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function(){return B(void 0,void 0,void 0,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return b||!d?[3,2]:[4,d.getLayout()];case 1:e=t.sent(),L(e),t.label=2;case 2:return v(!b),[2]}}))}))},"aria-label":u.get("SNTable.Accessibility.ColumnOptions")},x.createElement(Cy,{height:Fh})),x.createElement("div",{ref:h}),x.createElement(Ty,{open:b,anchorEl:m.current,onClose:function(){return v(!1)},menuGroups:k,buttonId:N,menuId:_})):null},My=function(e){var t,n=e.children,r=e.column,o=e.isInteractionEnabled,i=e.open,a=e.setOpen,l=ob(eb,(function(e){return e.baseProps})),s=l.keyboard,u=l.translator,c=l.changeSortOrder,d=l.interactions,p=l.embed,f=l.app,m=l.model,h=ob(eb,(function(e){return 0===e.focusedCellCoord[0]})),g=ob(eb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),b=A(null),v=A(null),y=function(e){var t=e.sortDirection,n=e.isLocked,r=e.headTextAlign,o="A"===t?x.createElement(kb,{height:Fh}):x.createElement(Mb,{height:Fh}),i=n?x.createElement(hy,{className:"aligned-".concat(r)},x.createElement(uy,{height:Fh,"data-testid":"head-cell-lock-icon"})):void 0;return"right"===r?{startIcon:o,lockIcon:i}:{endIcon:o,lockIcon:i}}(r),S=y.startIcon,E=y.endIcon,C=y.lockIcon,w=o&&yg(s)?0:-1,R={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return x.createElement(fy,{isLocked:Boolean(C),className:"aligned-".concat(r.headTextAlign),isNewHeadCellMenuEnabled:g},C&&x.createElement(my,null,C),x.createElement(dy,{className:"sn-table-head-label",isActivelySorted:r.isActivelySorted,textAlign:r.headTextAlign,color:"inherit",size:"small",startIcon:S,endIcon:E,tabIndex:w,disabled:!o,onClick:g?function(){}:function(){return o&&c(r)},isNewHeadCellMenuEnabled:g},n,h&&x.createElement(py,{"data-testid":"VHL-for-col-".concat(r.pageColIdx)},"".concat(R[r.sortDirection]," ").concat(u.get("SNTable.SortLabel.PressSpaceToSort")))),o&&(g?x.createElement(x.Fragment,null,x.createElement(Qb,{headerData:r,translator:u,tabIndex:w,anchorRef:b,handleHeadCellMenuKeyDown:Hv,menuAvailabilityFlags:(t={},t[Xb.SORTING]=!0,t[Xb.SEARCHING]=!0,t[Xb.SELECTIONS]=!0,t[Xb.ADJUST_HEADER_SIZE]=!0,t),open:i,setOpen:a,interactions:d,sortRelatedArgs:{sortFromMenu:function(e,t){return e.stopPropagation(),c(r,t)}},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnClosetHeaderAdjuster:xg},shouldShowMenuIcon:!0}),x.createElement(cy,{ref:v}),x.createElement(cy,{ref:b})):x.createElement(Ly,{column:r,tabIndex:w})))},qy=Js(lh,{shouldForwardProp:function(e){return"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e}})((function(e){var t=e.headerStyle,n=e.isNewHeadCellMenuEnabled,r=e.interactions,o=e.hoverBackground,i=e.background;return j(j(j(j({},zh),t),n&&{cursor:"pointer",background:i}),{pointer:"cursor",verticalAlign:"bottom","&:focus":{boxShadow:"none"},"&&:hover":j({},n&&{background:r.active?o:i})})})),ky=function(e){var t=e.column,n=e.columnIndex,r=e.columnsLength,o=S(!1),i=o[0],a=o[1],l=ob(eb,(function(e){return e.baseProps})),s=l.styling,u=l.interactions,c=l.rootElement,d=l.keyboard,p=l.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=ob(eb,(function(e){return e.tableData})).columns,b=ob(eb,(function(e){return e.columnWidths})),v=ob(eb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),y=ob(eb,(function(e){return e.setFocusedCellCoord})),E=ob(eb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),C=!!u.active&&!v,w=t.isActivelySorted?fu[t.sortDirection]:void 0,R=n===r-1,A=[0,t.pageColIdx],D={width:b[n]-(R?8:9),zIndex:g.length-n};return x.createElement(qy,{headerStyle:s.head,style:D,key:t.id,align:t.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":w,tabIndex:-1,title:u.passive?t.label:void 0,onKeyDown:function(e){return Bv({evt:e,rootElement:c,cellCoord:A,setFocusedCellCoord:y,isInteractionEnabled:C})},onMouseDown:function(e){return function(e){var t,n=e.evt,r=e.rootElement,o=e.cellCoord,i=e.setFocusedCellCoord,a=e.keyboard,l=e.isInteractionEnabled;n.preventDefault(),l&&(i(o),a.enabled&&!a.active?null===(t=a.focus)||void 0===t||t.call(a):Sg({focusType:pu.FOCUS_BUTTON,cell:hg(r,o)}))}({evt:e,rootElement:c,cellCoord:A,setFocusedCellCoord:y,keyboard:d,isInteractionEnabled:C})},isNewHeadCellMenuEnabled:E,background:i?f:m,hoverBackground:h,interactions:u,onClick:function(){return a(!0)}},x.createElement(My,{column:t,isInteractionEnabled:C,open:i,setOpen:a},x.createElement(Yv,{fontSize:s.head.fontSize},t.label)),x.createElement(ly,{column:t,isLastColumn:R}))},Oy=k((function(){var e,t=ob(eb,(function(e){return e.tableData})).columns,n=ob(eb,(function(e){return e.baseProps})),r=n.styling,o=n.viewService,i=ob(eb,(function(e){return e.setHeadRowHeight})),a=ob(eb,(function(e){return e.columnWidths})),l=A(null);return C((function(){l.current&&i(l.current.clientHeight)}),[r.head.fontSize,a,i]),(null===(e=o.viewState)||void 0===e?void 0:e.skipHeader)?null:x.createElement(bh,null,x.createElement(wh,{ref:l,className:"sn-table-row sn-table-head-row"},t.map((function(e,n){return x.createElement(ky,{column:e,columnIndex:n,columnsLength:t.length})}))))})),Ny=function(e){var t,n,r=e.pageInfo,o=e.setPageInfo,i=e.direction,a=e.footerContainer,l=e.announce,s=r.page,u=r.rowsPerPage,c=ob(eb,(function(e){return e.tableData})),d=c.totalColumnCount,p=c.totalRowCount,f=c.totalPages,m=c.paginationNeeded,h=c.rows,g=c.columns,b=c.totalsPosition,v=ob(eb,(function(e){return e.baseProps})),y=v.rootElement,S=v.keyboard,E=v.translator,w=v.theme,R=v.interactions,D=v.styling,P=v.viewService,I=v.layout,T=v.rect,L=ob(eb,(function(e){return e.focusedCellCoord})),q=ob(eb,(function(e){return e.setFocusedCellCoord})),k=ob(eb,(function(e){return e.setYScrollbarWidth})),O=ob(eb,(function(e){return e.showRightBorder})),N=ob(eb,(function(e){return e.selectionDispatch})),_=ob(eb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),F=A(!1),z=A(null),H=A(null),B=$v(z).yScrollbarWidth,$="".concat(E.get("SNTable.Accessibility.RowsAndColumns",[String(h.length+1),String(g.length)])," ").concat(E.get("SNTable.Accessibility.NavigationInstructions")),W=Vn(I,P),V=W&&null!==(t=P.scrollLeft)&&void 0!==t?t:0,U=W&&null!==(n=P.rowPartialHeight)&&void 0!==n?n:0,G=M((function(){F.current=y.getElementsByTagName("table")[0].contains(document.activeElement)}),[y]),Y=M((function(e){o(j(j({},r),{page:e})),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),f.toString()]],politeness:"assertive"})}),[r,o,f,l]),K=M((function(e){o(j(j({},r),{page:0,rowsPerPage:e})),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return function(e,t,n){C((function(){var r=e.current;if(r){var o=function(e){return function(e,t,n){var r,o=e.currentTarget,i=e.relatedTarget,a=o.contains(i),l=null==i?void 0:i.closest(".sn-table-head-menu");!n.enabled||a||l||t.current||(o.querySelector(".sn-table-announcer-1").innerHTML="",o.querySelector(".sn-table-announcer-2").innerHTML="",null===(r=n.blur)||void 0===r||r.call(n,!1))}(e,t,n)};return r.addEventListener("focusout",o),function(){r.removeEventListener("focusout",o)}}}),[e,t,n])}(H,F,S),jv(z,i,P),function(){var e=ob(eb,(function(e){return e.baseProps})),t=e.rootElement,n=e.keyboard,r=ob(eb,(function(e){return e.focusedCellCoord}));C((function(){var e=r[0]>0?pu.FOCUS:pu.FOCUS_BUTTON;e=n.active?e:pu.BLUR;var o=n.active?hg(t,r):gg(t);Sg({focusType:e,cell:o})}),[n.active,t])}(),C((function(){var e=z.current;e&&(e.scrollLeft=V,e.scrollTop=U)}),[r,p,V,U]),zv((function(){!function(e){var t,n=e.focusedCellCoord,r=e.rootElement,o=e.shouldRefocus,i=e.isSelectionMode,a=e.setFocusedCellCoord,l=e.keyboard,s=e.announce,u=e.totalsPosition;Sg({focusType:pu.REMOVE_TAB,cell:gg(r)});var c=[u.atTop?2:1,n[1]],d=i?c:bu;if(yg(l)){var p=o.current?pu.FOCUS:pu.ADD_TAB;o.current=!1;var f=hg(r,d);if(Sg({focusType:p,cell:f}),i){var m=null===(t=null==f?void 0:f.classList)||void 0===t?void 0:t.contains("selected");s({keys:["".concat(f.textContent,","),m?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}a(d)}({focusedCellCoord:L,rootElement:y,shouldRefocus:F,setFocusedCellCoord:q,isSelectionMode:_,keyboard:S,announce:l,totalsPosition:b})}),[h.length,p,d,s]),zv((function(){k(B)}),[B]),zv((function(){N({type:cu.UPDATE_PAGE_ROWS,payload:{pageRows:h}})}),[h]),x.createElement(Nv,{ref:H,background:w.background,dir:i,onKeyDown:function(e){!function(e){var t,n=e.evt,r=e.totalRowCount,o=e.page,i=e.rowsPerPage,a=e.handleChangePage,l=e.setShouldRefocus,s=e.keyboard,u=e.isSelectionMode;if(Ag(n)){mg(n);var c=Math.ceil(r/i)-1;n.key===du.RIGHT&&o<c?(l(),a(o+1)):n.key===du.LEFT&&o>0&&(l(),a(o-1))}else n.key===du.ESC&&s.enabled&&!u?(mg(n),null===(t=s.blur)||void 0===t||t.call(s,!0)):Dg(n.key)&&mg(n)}({evt:e,totalRowCount:p,page:s,rowsPerPage:u,handleChangePage:Y,setShouldRefocus:G,keyboard:S,isSelectionMode:_})},"data-testid":"sn-table"},x.createElement(Gv,null),x.createElement(Vv,{ref:z,className:"sn-table-container",fullHeight:a||!R.active||!m,interactions:R,tabIndex:-1,role:"application","data-testid":"table-container"},x.createElement(Uv,{styling:D,showRightBorder:O,stickyHeader:!0,"aria-label":$},x.createElement(Oy,null),x.createElement(ay,j({},e,{setShouldRefocus:G,tableWrapperRef:H})))),x.createElement(Mv,{footerContainer:a,pageInfo:r,paginationNeeded:m,theme:w,totalRowCount:p,totalColumnCount:d,totalPages:f,keyboard:S,translator:E,interactions:R,rect:T,layout:I,handleChangePage:Y,handleChangeRowsPerPage:K,isSelectionMode:_}))},_y=k(Ny),Fy=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function zy(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||Fy(r)&&Fy(o)))return!1;var r,o;return!0}function jy(e,t){var n;void 0===t&&(t=zy);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}}var Hy="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function By(e){cancelAnimationFrame(e.id)}function $y(e,t){var n=Hy();var r={id:requestAnimationFrame((function o(){Hy()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Wy=-1;function Vy(e){if(void 0===e&&(e=!1),-1===Wy||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Wy=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wy}var Uy=null;function Gy(e){if(void 0===e&&(e=!1),null===Uy||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?Uy="positive-descending":(t.scrollLeft=1,Uy=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Uy}return Uy}var Yy=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ky(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,Eu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Eu(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=jy((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=jy((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=jy((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(Gy()){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&&By(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$y(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Su(t,e),t.getDerivedStateFromProps=function(e,t){return Zy(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Vy();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Gy()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&By(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Yy:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],D=w[1],P=[];if(r>0&&g)for(var I=A;I<=D;I++)for(var T=E;T<=C;T++)P.push(R(t,{columnIndex:T,data:d,isScrolling:v?x:void 0,key:f({columnIndex:T,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,T)}));var L=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Gn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:P,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,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]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),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}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Zy=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Xy=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},Jy=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},Qy=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]},ex=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?tx(e,t,n,i,0,r):nx(e,t,n,Math.max(0,i),r)},tx=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=Qy(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},nx=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&Qy(e,t,r,n).offset<o;)r+=a,a*=2;return tx(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},rx=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=Qy(e,t,n,i),u="column"===e?Jy(t,i):Xy(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}},ox=Ky({getColumnOffset:function(e,t,n){return Qy("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ex("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=Qy("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Qy("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:Xy,getEstimatedTotalWidth:Jy,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return rx("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return rx("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return Qy("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ex("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=Qy("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Qy("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}}),ix=function(e,t){return e};function ax(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,Eu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Eu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=jy((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=jy((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=jy((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(Gy()){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<o?"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&&By(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$y(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Su(t,e),t.getDerivedStateFromProps=function(e,t){return lx(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?Vy():0:s.scrollHeight>s.clientHeight?Vy():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(Gy()){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&&By(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?ix:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var D=C;D<=w;D++)A.push(R(t,{data:c,key:p(D,c),index:D,isScrolling:b?y:void 0,style:this._getItemStyle(D)}));var P=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Gn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"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}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sx=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]},ux=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=sx(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},cx=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&sx(e,n,t).offset<r;)n+=i,i*=2;return ux(e,t,Math.min(n,o-1),Math.floor(n/2),r)},dx=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},px=ax({getItemOffset:function(e,t,n){return sx(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:dx,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=sx(e,t,o),p=dx(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?ux(e,t,o,0,n):cx(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=sx(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sx(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 fx(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 mx=["style"],hx=["style"];function gx(e,t){var n=e.style,r=qr(e,mx),o=t.style,i=qr(t,hx);return!fx(n,o)&&!fx(r,i)}var bx=function(e){var t=e.style;return x.createElement("div",{className:"sn-table-cell",style:j(j({},t),{borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"})})},vx=x.memo(bx,gx),yx=function(){},xx=function(e){return e.preventDefault()};var Sx,Ex=function(e){var t,n=e.columnIndex,r=e.rowIndex,o=e.style,i=e.data,a=i.rowsInPage,l=i.columns,s=i.bodyStyle,u=i.isHoverEnabled,c=i.maxLineCount,d=ob(eb,(function(e){return e.hoverIndex===r})),p=ob(eb,(function(e){return e.setHoverIndex})),f=ob(eb,(function(e){return e.baseProps})).interactions,m=ob(eb,(function(e){return e.showRightBorder})),h=null===(t=a[r])||void 0===t?void 0:t["col-".concat(n)],g=function(e){var t=ob(eb,(function(e){return e.baseProps})).interactions,n=ob(eb,(function(e){return e.selectionDispatch})),r="object"==typeof e,o=ob(eb,(function(t){return r?qg(e,t.selectionState):uu.INACTIVE})),i=t.active&&t.select;if(r&&i){var a=Zv(xx,e,n,yx);return{handleMouseDown:a.handleMouseDown,handleMouseOver:a.handleMouseOver,handleMouseUp:a.handleMouseUp,cellSelectionState:o}}return{cellSelectionState:o}}(h),b=g.handleMouseDown,v=g.handleMouseOver,y=g.handleMouseUp,S=g.cellSelectionState;if("object"==typeof h){var E=function(e,t,n,r,o){var i=o.hoverColors;o.lastRowBottomBorder;var a=H(o,["hoverColors","lastRowBottomBorder"]),l=t.stylingIDs.length?Kg(a,e.qAttrExps,t.stylingIDs):a;return r===uu.SELECTED?j(j({},l),Nh.SELECTED):r===uu.EXCLUDED?j(j({},l),{color:n?null==i?void 0:i.color:l.color,background:"".concat(Nh.EXCLUDED_BACKGROUND,", ").concat(n?null==i?void 0:i.background:l.background)}):n?j(j({},l),i):l}(h,l[n],u&&d,S,s),C={rowindex:r,columnindex:n};return x.createElement("div",j({className:"sn-table-cell ".concat(S),style:j(j(j({},o),E),{display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:h.isLastRow?"0px":"".concat(1,"px"),borderRightWidth:h.isLastColumn&&!m?"0px":"".concat(1,"px"),borderStyle:"solid",justifyContent:h.align,padding:"4px ".concat(12,"px"),boxSizing:"border-box",cursor:"default"}),onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:u?function(){return p(r)}:void 0,onMouseLeave:u?function(){return p(-1)}:void 0,title:f.passive?h.qText:void 0},C),x.createElement(Yv,{wordBreak:!h.isNumeric,lines:c},h.qText))}return x.createElement(vx,{style:j(j(j({},o),s),{borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"})})},Cx=x.memo(Ex,gx),wx=function(e){var t=A(e);return t.current=e,t},Rx=function(e){var t=e.qLeft,n=e.qTop,r=e.qWidth,o=e.qHeight;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o)},Ax=function(e,t){var n=A(new Set),r=A(new Set),o=A(new Set),i=wx(e),a=wx(t),l=E((function(){return{enqueue:function(e){var t=Rx(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((function(){return B(void 0,void 0,void 0,(function(){var e,t,l;return $(this,(function(s){switch(s.label){case 0:if(0===(e=Array.from(n.current.values())).length)return[2];n.current.clear(),r.current.add(e),s.label=1;case 1:return s.trys.push([1,3,4,5]),t=function(e){var t=[];return e.forEach((function(e){if(t.length>0){var n=t[t.length-1];!function(e,t){return e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth}(n,e)?function(e,t){return e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight}(n,e)?n.qWidth+=e.qWidth:t.push(j({},e)):n.qHeight+=e.qHeight}else t.push(j({},e))})),t}(e),[4,i.current(t)];case 2:return l=s.sent(),r.current.has(e)&&a.current(l),[3,5];case 3:return s.sent(),e.forEach((function(e){o.current.delete(Rx(e))})),[3,5];case 4:return r.current.delete(e),[7];case 5:return[2]}}))}))}),75))},clear:function(){n.current.clear(),r.current.clear(),o.current.clear()}}}),[i,a]);return l},Dx=function(e,t,n,r,o){var i=e[n];if(!i)return!0;for(var a=t;a<t+r;a++){var l=i["col-".concat(a)];if((null==l?void 0:l.rowIdx)!==o)return!0}return!1},Px=function(e,t,n,r){var o=e.slice(n,r);return 0===o.length||o.some((function(e){return!(null==e?void 0:e["col-".concat(t)])}))},Ix=function(e,t,n,r,o,i){e.forEach((function(e){e.qMatrix.forEach((function(a,l){var s=e.qArea.qTop-t.page*t.rowsPerPage,u=function(e,t,n,r,o,i,a,l){var s,u=r.qTop+n,c=o+n,d=null!==(s=e[c])&&void 0!==s?s:{key:"row-".concat(c)};return t.forEach((function(e,t){var n,o=t+r.qLeft,s=i[o],p=s.colIdx,f=s.isDim,m=s.isLocked,h=s.id,g=s.bodyTextAlign,b=s.selectionColIdx,v=_n(e);d[h]=j(j({},e),{align:Bn(e,g),rowIdx:u,colIdx:p,isSelectable:f&&!m,pageRowIdx:c,pageColIdx:o,selectionColIdx:b,isLastRow:u===a.qcy-1,isLastColumn:o===a.qcx-1,isNumeric:v}),l(null!==(n=e.qText)&&void 0!==n?n:"",c,o,v)})),{row:d,pageRowIdx:c}}(n,a,l,e.qArea,s,r,o.qHyperCube.qSize,i),c=u.row,d=u.pageRowIdx;n[d]=c}))}))},Tx=function(e){var t=e.layout,n=e.model,r=e.theme,o=e.initialDataPages,i=e.pageInfo,a=e.rowCount,l=e.visibleRowCount,s=e.visibleColumnCount,u=e.columns,c=e.setCellSize,d=e.gridState,p=A([]),f=wx(c),m=M((function(e,n){var r=Array.isArray(n)?n.slice(0,a):function(e){return Array(e).fill(void 0)}(a);return Ix(e,i,r,u,t,f.current),p.current=r,r}),[a,i,u,t,f]),h=S((function(){return m(null!=o?o:[])})),g=h[0],b=h[1];V((function(){b(m(null!=o?o:[]))}),[o]);var v=Ax((function(e){return n.getHyperCubeData("/qHyperCubeDef",e)}),(function(e){return b((function(t){return m(e,t)}))})),y=M((function(e,t,n,r){for(var o=e;o<e+n;o++)if(Px(p.current,o,t,r)){var i={qLeft:o,qTop:t,qHeight:r,qWidth:1};v.enqueue(i)}}),[p,v]),x=M((function(e,t,n,r){for(var o=t;o<t+r;o++){var a=Math.max(0,o-i.page*i.rowsPerPage);if(Dx(p.current,e,a,n,o)){var l={qLeft:e,qTop:o,qHeight:1,qWidth:n};v.enqueue(l)}}}),[p,v,i]),E=r.name();return C((function(){var e=t.qHyperCube.qSize,n=e.qcx,r=e.qcy,o=d.current.overscanRowStartIndex,a=d.current.overscanColumnStartIndex,u=o+i.page*i.rowsPerPage,c=n-a,p=i.rowsPerPage-o,f=Math.min(100,c,n,s+5),m=Math.min(100,p,r,l+25);return x(a,u,f,m),function(){v.clear()}}),[t,l,s,i,v,x,d,E]),{rowsInPage:g,loadRows:x,loadColumns:y}},Lx=function(e){var t,n=e.style,r=e.columnWidths,o=e.rowHeight,i=e.pageInfo,a=e.rowCount,l=e.gridRef,s=e.lineRef,u=e.columns,c=e.boldText,d=e.gridState,p=e.isSnapshot,f=e.viewService,m=e.maxNbrLines,h=void 0===m?3:m,g=A({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),b=ob(eb,(function(e){return e.baseProps})),v=b.layout,y=b.rect,x=S(o||24),E=x[0],C=x[1],w=Kt(j(j({},n),{bold:c})),R=w.measureText,D=w.estimateLineCount,P=parseInt(null!==(t=n.fontSize)&&void 0!==t?t:zh.fontSize,10)*zg,I=8e6/a-8-1,T=Math.max(0,Math.min(h,Math.round(I/P))),L=M((function(e,t,n){var o=u?function(e,t){var n=e-71;return n-(t.isLocked?24:0)}(r[t],u[t]):function(e){return e-24-1}(r[t]),i=Math.min(T,D({text:e.trim(),maxWidth:o,isNumeric:n}));return Math.max(1,i)*P+8+1}),[r,P,T,u,D]),q=M((function(e,t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var i="".concat(t,"-").concat(n);if(!g.current.measuredCells.has(i)){g.current.measuredCells.set(i,[e,t,n,r]);var a=L(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||p||C(g.current.totalHeight/g.current.count)}}),[L,p]),k=M((function(e){var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:E}),[g,E]),O=M((function(){g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),N=wx(q),_=M((function(){var e=new Map(g.current.measuredCells);O(),e.forEach((function(e){var t=e[0],n=e[1],r=e[2],o=e[3];N.current(t,n,r,o,!0)})),p||C(g.current.totalHeight/g.current.count)}),[O,p,N]);V((function(){O()}),[v,i]),V((function(){_()}),[R,y.width]);return(null==l?void 0:l.current)?l.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):(null==s?void 0:s.current)&&s.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),f.estimatedRowHeight=E,{setCellSize:q,getRowHeight:k,rowMeta:g,estimatedRowHeight:E,maxLineCount:T,resizeVisibleCells:function(e){var t;if(d){O();for(var n=d.current,r=n.overscanRowStartIndex,o=n.overscanRowStopIndex,i=Math.min(o,v.qHyperCube.qSize.qcy-1),a=function(n){var r=null!==(t=e[n])&&void 0!==t?t:{};Object.values(r).forEach((function(e){var t;"object"==typeof e&&q(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))},l=r;l<=i;l++)a(l)}},resizeAllCells:_,resetRowMeta:O}};!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(Sx||(Sx={}));var Mx={enabled:!1},qx=function(){},kx={current:null};var Ox=function(e,t,n,r,o){var i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=E((function(){return r.reduce((function(e,t){return e.width<n.width&&(e.width+=t,e.count+=1),e}),{count:0,width:0})}),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},Nx=function(e){var t,n=e.columnIndex,r=e.data,o=e.rowIndex,i=null===(t=r.rowsInPage[o])||void 0===t?void 0:t["col-".concat(n)];return"".concat(null==i?void 0:i.qElemNumber,"-").concat(null==i?void 0:i.qText,"-").concat(o,"-").concat(n)},_x={overflow:"hidden",willChange:"auto"},Fx=q((function(e,t){var n,r,o,i=e.rect,a=e.columns,l=e.innerForwardRef,s=e.pageInfo,u=e.bodyStyle,c=e.rowHeight,d=e.headerAndTotalsHeight,p=e.syncHeight,f=ob(eb,(function(e){return e.baseProps})),m=f.layout,h=f.model,g=f.theme,b=f.viewService,v=ob(eb,(function(e){return e.columnWidths})),y=ob(eb,(function(e){return e.initialDataPages})),S=null===(n=b.viewState)||void 0===n?void 0:n.maxLineCount,w=A(null),R=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),D=!!(null===(o=null===(r=Vg(m))||void 0===r?void 0:r.content)||void 0===o?void 0:o.hoverEffect),P=function(){var e=A(0),t=A(0),n=A(Sx.None),r=A(Sx.None);return{scrollHandler:M((function(o){var i=o.scrollTop,a=o.scrollLeft;i>t.current?n.current=Sx.Down:i<t.current?n.current=Sx.Up:n.current=Sx.None,a>e.current?r.current=Sx.Right:a<e.current?r.current=Sx.Left:r.current=Sx.None,t.current=i,e.current=a}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}}(),I=P.scrollHandler,T=P.verticalScrollDirection,L=P.horizontalScrollDirection,q=Ox(m,s,i,v,c),k=q.rowCount,N=q.visibleRowCount,F=q.visibleColumnCount,z=Lx({pageInfo:s,style:u,rowHeight:c,columnWidths:v,gridRef:w,rowCount:k,gridState:R,isSnapshot:!!m.snapshotData,viewService:b,maxNbrLines:S}),j=z.setCellSize,H=z.getRowHeight,B=z.rowMeta,$=z.estimatedRowHeight,W=z.maxLineCount,U=z.resizeVisibleCells,G=Tx({layout:m,model:h,theme:g,initialDataPages:y,pageInfo:s,rowCount:k,visibleRowCount:N,visibleColumnCount:F,columns:a,setCellSize:j,gridState:R}),Y=G.rowsInPage,K=function(e){var t=e.layout,n=e.loadRows,r=e.loadColumns,o=e.verticalScrollDirection,i=e.horizontalScrollDirection,a=e.rowCount,l=e.pageInfo,s=e.gridState,u=e.viewService,c=M((function(e){var c=e.overscanColumnStartIndex,d=e.overscanColumnStopIndex,p=e.overscanRowStartIndex,f=e.overscanRowStopIndex,m=e.visibleColumnStartIndex,h=e.visibleColumnStopIndex,g=e.visibleRowStartIndex,b=e.visibleRowStopIndex;if(s.current.overscanColumnStartIndex=c,s.current.overscanColumnStopIndex=d,s.current.overscanRowStartIndex=p,s.current.overscanRowStopIndex=f,!(p>a)){var v=c,y=p+l.page*l.rowsPerPage,x=d-c+1,S=f-p+1;if(u.visibleLeft=m,u.visibleWidth=h-m+1,u.visibleTop=g+l.page*l.rowsPerPage,u.visibleHeight=b-g+1,u.page=l.page,u.rowsPerPage=l.rowsPerPage,o.current===Sx.Down)n(v,y,x,p+(E=S+25)>a?a-p:E);else if(o.current===Sx.Up){var E=S+25,C=l.page*l.rowsPerPage,w=Math.max(C,y-25);n(v,w,x,E)}if(i.current===Sx.Right){var R=t.qHyperCube.qSize.qcx-v,A=x+5,D=Math.min(R,A);r(v,y,D,S)}else if(i.current===Sx.Left){var P=Math.max(0,v-5);A=Math.min(t.qHyperCube.qSize.qcx,x+5),r(P,y,A,S)}}}),[s,a,l.page,l.rowsPerPage,u,o,i,n,t.qHyperCube.qSize.qcx,r]);return c}({layout:m,loadRows:G.loadRows,loadColumns:G.loadColumns,verticalScrollDirection:T,horizontalScrollDirection:L,rowCount:k,pageInfo:s,gridState:R,viewService:b}),Z=E((function(){return{rowsInPage:Y,columns:a,bodyStyle:u,isHoverEnabled:D,maxLineCount:W}}),[Y,a,u,D,W]),X=function(e,t,n,r){var o=e.height;return n*r<(o-=t)&&(o=Math.min(n*r,o)),o}(i,d,k,$);return O((function(){var e,t;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!0)}),[k,p,l]),O((function(){var e,t,n;p(null!==(t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0,!1),1===B.current.lastScrollToRatio&&(null===(n=w.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){var t=ob(eb,(function(e){return e.baseProps})).selectionsAPI,n=ob(eb,(function(e){return e.selectionDispatch}));C((function(){n({type:cu.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),Kv({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:qx,keyboard:Mx,tableWrapperRef:kx})}(Y),V((function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[m,s,g.name(),i.width,v]),_(t,(function(){return{interpolatedScrollTo:function(e,t){var n,r,o,i,a,s=(null!==(r=null===(n=l.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:X)-X,u=Math.round(s*e);B.current.lastScrollToRatio=e,1===B.current.lastScrollToRatio?(null===(o=w.current)||void 0===o||o.scrollToItem({rowIndex:k-1,align:"start"}),null===(i=w.current)||void 0===i||i.scrollTo({scrollLeft:t})):null===(a=w.current)||void 0===a||a.scrollTo({scrollTop:u,scrollLeft:t})},resizeCells:function(){var e;null===(e=w.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),U(Y)}}}),[l,X,B,k,U,Y]),x.createElement(ox,{"data-key":"body",ref:w,innerRef:l,style:_x,columnCount:m.qHyperCube.qSize.qcx,columnWidth:function(e){return v[e]},height:X,rowCount:k,rowHeight:H,estimatedRowHeight:$,width:i.width,itemData:Z,onItemsRendered:K,onScroll:I,itemKey:Nx,className:"sn-table-body"},Cx)})),zx=k(Fx),jx=function(e){var t=e.width,n=e.height,r=e.children;return x.createElement("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n}},r)},Hx=Js("div",{shouldForwardProp:function(e){return"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e}})((function(e){var t=e.isNewHeadCellMenuEnabled,n=e.interactions,r=e.hoverBackground,o=e.background,i=e.applicableStyle;return j(j(j({},i),t&&{background:o}),{"&&:hover":j({},t&&{background:n.active?r:o})})})),Bx=function(e){var t=e.index,n=e.style,r=e.data,o=S(!1),i=o[0],a=o[1],l=r.columns,s=H(r.headerStyle,[]),u=r.columResizeHandler,c=ob(eb,(function(e){return e.baseProps})),d=c.interactions,p=c.styling.head,f=p.activeBackground,m=p.background,h=p.hoverBackground,g=ob(eb,(function(e){var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),b=ob(eb,(function(e){return e.showRightBorder})),v=ob(eb,(function(e){return e.featureFlags.isNewHeadCellMenuEnabled})),y=l[t],E=l.length-1===t,C=!!d.active&&!g,w="right"===y.headTextAlign?"row-reverse":"row";return x.createElement(Hx,{className:"sn-table-cell",title:d.passive?y.label:void 0,onClick:function(){return a(!0)},applicableStyle:s,style:j(j(j({},n),v?{cursor:"pointer"}:{cursor:"default"}),{display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!b?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:l.length-t,flexDirection:w,userSelect:"none"}),interactions:d,hoverBackground:h,background:i?f:m,isNewHeadCellMenuEnabled:v},x.createElement(My,{column:y,isInteractionEnabled:C,open:i,setOpen:a},x.createElement(Yv,{wordBreak:!0,lines:3},y.label)),x.createElement(ly,{column:y,isLastColumn:E,onColumnResize:u}))},$x=function(e,t,n,r,o){O((function(){var t;null===(t=null==e?void 0:e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},Wx={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Vx=function(e){var t=e.rect,n=e.forwardRef,r=e.columns,o=e.pageInfo,i=e.headerStyle,a=e.rowHeight,l=e.columResizeHandler,s=ob(eb,(function(e){return e.baseProps})),u=s.layout,c=s.theme,d=ob(eb,(function(e){return e.columnWidths}));return $x(n,u,o,d,c.name()),x.createElement(px,{ref:n,layout:"horizontal",style:Wx,itemCount:u.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l}},Bx)},Ux=k(Vx),Gx=x.forwardRef((function(e,t){var n=e.children,r=e.width,o=e.height,i=e.onScroll,a=ob(eb,(function(e){return e.baseProps})).interactions;return x.createElement("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i},n)})),Yx=function(e){var t=e.children,n=e.rect;return x.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:n.width,height:n.height}},t)},Kx=function(e){var t=e.index,n=e.style,r=e.data,o=ob(eb,(function(e){return e.baseProps})),i=o.layout,a=o.interactions,l=ob(eb,(function(e){return e.showRightBorder})),s=r.totalsStyle;s.hoverColors;var u=H(s,["hoverColors"]),c=r.columns,d=r.totals,p=c[t].totalInfo,f=c[t].totalsTextAlign,m=i.qHyperCube.qSize.qcx-1===t;return x.createElement("div",{className:"sn-table-cell",title:a.passive?p:void 0,style:j(j(j({},n),u),{display:"flex",alignItems:d.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!l?"0px":"1px",borderTopWidth:d.atBottom?"1px":"0px",borderBottomWidth:d.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,boxSizing:"border-box",cursor:"default",fontWeight:"600"})},x.createElement(Yv,{wordBreak:!Nn(p),lines:3},p))},Zx=function(e){var t=e.rect,n=e.forwardRef,r=e.pageInfo,o=e.totals,i=e.rowHeight,a=e.columns,l=ob(eb,(function(e){return e.baseProps})),s=l.layout,u=l.styling,c=l.theme,d=ob(eb,(function(e){return e.columnWidths}));return $x(n,s,r,d,c.name()),x.createElement(px,{ref:n,layout:"horizontal",style:Wx,itemCount:s.qHyperCube.qSize.qcx,itemSize:function(e){return d[e]},height:i,width:t.width,itemData:{totalsStyle:u.totals,columns:a,totals:o}},Kx)},Xx=k(Zx),Jx=function(e){var t=e.columns,n=e.columnWidths,r=e.pageInfo,o=e.headerRef,i=e.totalsRef,a=e.totalsPosition,l=e.isSnapshot,s=e.viewService,u=ob(eb,(function(e){return e.baseProps})).styling,c=Lx({style:u.head,columnWidths:n,lineRef:o,rowCount:1,pageInfo:r,boldText:!0,columns:t,isSnapshot:l,viewService:s}),d=Lx({style:u.totals,columnWidths:n,lineRef:i,rowCount:1,pageInfo:r,boldText:!0,isSnapshot:l,viewService:s});t.forEach((function(e,t){c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Nn(e.totalInfo))}));var p=c.getRowHeight(0)+8,f=d.getRowHeight(0),m=l?s.estimatedRowHeight:function(e){var t=e.fontSize,n=void 0===t?zh.fontSize:t;return Math.max(24,Hg(n))}(u.body);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:m,headerAndTotalsHeight:a.atTop||a.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},Qx=function(e){var t,n=e.pageInfo,r=ob(eb,(function(e){return e.tableData})),o=r.totalsPosition,i=r.columns,a=r.paginationNeeded,l=ob(eb,(function(e){return e.baseProps})),s=l.layout,u=l.theme,c=l.styling,d=l.rect,p=l.viewService,f=ob(eb,(function(e){return e.columnWidths})),m=ob(eb,(function(e){return e.setYScrollbarWidth})),h=A(null),g=A(null),b=A(null),v=A(null),y=A(),C=$v(h),w=C.xScrollbarWidth,R=C.yScrollbarWidth,D=E((function(){var e;return j(j({},c.body),{background:null!==(e=u.background.color)&&void 0!==e?e:"transparent"})}),[u.background.color,c]),P=Jx({columns:i,columnWidths:f,pageInfo:n,totalsPosition:o,headerRef:g,totalsRef:b,isSnapshot:!!s.snapshotData,viewService:p}),I=P.headerRowHeight,T=P.totalsRowHeight,L=P.bodyRowHeight,q=P.headerAndTotalsHeight,k=P.resizeAllHeaderCells,N=P.resizeAllTotalCells,_=E((function(){return function(e,t){var n=e.height-(t?41:0);return{width:e.width,height:n}}(d,a)}),[d,a]),F=E((function(){return function(e,t,n){return{width:e.width-n,height:e.height-t}}(_,w,R)}),[_,w,R]),z=Ox(s,n,F,f,L).rowCount,H=S(z*L+q),B=H[0],$=H[1],W=f.reduce((function(e,t){return e+t}),0),V=function(e,t,n,r){return M((function(o){var i,a,l,s=o.currentTarget,u=s.scrollHeight,c=s.clientHeight,d=s.scrollTop,p=s.scrollLeft,f=Math.max(0,Math.min(1,d/(u-c)));r.scrollTopRatio=f,r.scrollLeft=p,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(a=e.current)||void 0===a||a.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[r,n,e,t])}(g,b,v,p),U=M((function(e,t){void 0===t&&(t=!1);var n=e+q;(B<F.height&&n>F.height||t)&&$(n)}),[B,q,F.height]),G=M((function(){var e;h.current&&(h.current.scrollTop=0),null===(e=v.current)||void 0===e||e.resizeCells(),k(),N()}),[h,k,N]);O((function(){h.current&&(h.current.scrollLeft=0,h.current.scrollTop=0)}),[i.length]);var Y=u.name();O((function(){h.current&&(h.current.scrollTop=0)}),[n,z,Y]),zv((function(){m(R)}),[R]);var K=x.createElement(Xx,{rect:F,pageInfo:n,columns:i,forwardRef:b,totals:o,rowHeight:T});return x.createElement(Gx,{ref:h,width:_.width,height:_.height,onScroll:V},x.createElement(jx,{width:W,height:B},x.createElement(Yx,{rect:F},(null===(t=p.viewState)||void 0===t?void 0:t.skipHeader)?null:x.createElement(Ux,{headerStyle:c.head,rect:F,pageInfo:n,columns:i,forwardRef:g,rowHeight:I,columResizeHandler:G}),o.atTop?K:null,x.createElement(zx,{ref:v,innerForwardRef:y,bodyStyle:D,rect:F,pageInfo:n,columns:i,rowHeight:L,headerAndTotalsHeight:q,syncHeight:U}),o.atBottom?K:null)))},eS=k(Qx),tS=function(){var e=ob(eb,(function(e){return e.baseProps})),t=e.theme,n=e.keyboard,r=e.translator,o=e.interactions,i=e.rect,a=e.layout,l=ob(eb,(function(e){return e.tableData})),s=l.paginationNeeded,u=l.totalRowCount,c=l.totalColumnCount,d=l.totalPages,p=ob(eb,(function(e){return e.pageInfo})),f=ob(eb,(function(e){return e.setPage}));return x.createElement(Nv,{"data-testid":"sn-table",background:t.background,dir:"ltr"},x.createElement(eS,{pageInfo:p}),x.createElement(Mv,{paginationNeeded:s,handleChangePage:function(e){return f(e)},pageInfo:p,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:n,translator:r,theme:t,interactions:o,rect:i,layout:a}))},nS=k(tS);var rS,oS={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(rS||(rS={}));var iS=function(e,n){return t((function(){return function(e){if(e&&e.get&&e.add){var t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(oS).forEach((function(t){e.add(oS[t])}))}}(n),function(){return function(e,t,n){var r=n||null;return function(n){var o,i=n.keys,a=n.shouldBeAtomic,l=void 0===a||a,s=n.politeness,u=void 0===s?"polite":s,c=i.map((function(e){if(Array.isArray(e)){var n=e[0],r=e.slice(1);return t.get(n,r)}return t.get(e)})).join(" "),d=e.querySelector(".sn-table-announcer-1"),p=e.querySelector(".sn-table-announcer-2");r===rS.FIRST?(o=p,r=rS.SECOND):(o=d,r=rS.FIRST),o.innerHTML=o.innerHTML.endsWith(" ")?c:"".concat(c," "),o.setAttribute("aria-atomic",l.toString()),o.setAttribute("aria-live",u)}}(e,n)}}),[e,n.language()])},aS={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},lS=function(e){var t=e.isNewHeadCellMenuEnabled,n=e.app,l=e.model,s=e.rootElement,u=e.layout,c=e.interactions,d=e.translator,p=e.selectionsAPI,f=e.theme,m=e.changeSortOrder,h=e.keyboard,g=e.rect,b=e.embed,v=e.reactRoot,y=e.applyColumnWidths,S=e.isFontLoaded,E=e.viewService,C=r(),w=C.direction,R=C.footerContainer,A=Vn(u,E),D=Un(u,E),P=iS(s,d),I=A?{page:E.page||aS.page,rowsPerPage:E.rowsPerPage||aS.rowsPerPage,rowsPerPageOptions:aS.rowsPerPageOptions}:aS,T=o(I),L=T[0],M=T[1],q=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return D?[2,Wn(l,u,L,M,E)]:[2,null]}))}))}),[u,L,l,c,D])[0];a((function(){!!(D&&v&&l&&(u.snapshotData||n)&&u&&q&&m&&f&&p&&S&&b)&&function(e,t){var n=e.app,r=e.model,o=e.direction,i=e.selectionsAPI,a=e.layout,l=e.translator,s=e.interactions,u=e.theme,c=e.keyboard,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.applyColumnWidths,h=e.tableData,g=e.rect,b=e.viewService,v=H(e,["app","model","direction","selectionsAPI","layout","translator","interactions","theme","keyboard","rootElement","embed","changeSortOrder","applyColumnWidths","tableData","rect","viewService"]),y=ib(o);null==t||t.render(x.createElement(Zi,{stylisPlugins:"rtl"===o?[mu]:void 0},x.createElement(eu,{theme:y},x.createElement(rb,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:v.isNewHeadCellMenuEnabled},x.createElement(_y,j({},v,{direction:o}))))))}({app:n,model:l,rootElement:s,layout:u,tableData:q,direction:w,pageInfo:L,setPageInfo:M,interactions:c,translator:d,selectionsAPI:p,theme:f,changeSortOrder:m,keyboard:h,rect:g,footerContainer:R,announce:P,embed:b,applyColumnWidths:y,viewService:E,isNewHeadCellMenuEnabled:t},v)}),[n,l,v,q,c,w,f.name(),h.active,P,m,y,D,u,p,b,s,L,M,d,g,R,S,t])},sS=function(e,n,r){return t((function(){return function(e,t,n){if(t)return function(r,o){return B(void 0,void 0,void 0,(function(){var i,a,l,s,u,c,d,p,f,m;return $(this,(function(h){switch(h.label){case 0:return i=r.isDim,a=r.colIdx,l=r.qReverseSort,s=r.sortDirection,u=r.isActivelySorted,c=i?a:a-e,[4,t.getEffectiveProperties()];case 1:return d=h.sent(),p=d.qHyperCubeDef.qInterColumnSortOrder,f=[],m=o&&o!==s||!o&&u,u||(p.splice(p.indexOf(a),1),p.unshift(a),f.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:"[".concat(p.join(","),"]")})),(n&&m||!n&&u)&&f.push({qPath:"/qHyperCubeDef/".concat(i?"qDimensions":"qMeasures","/").concat(c,"/qDef/qReverseSort"),qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(f,!0),[2]}}))}))}}(e.qDimensionInfo.length,n,r)}),[e.qDimensionInfo.length,n,r])};var uS=function(e,t,n){return B(void 0,void 0,void 0,(function(){var r,o;return $(this,(function(i){switch(i.label){case 0:return r=t.qHyperCube.qDataPages,0===n&&void 0!==r&&0!==r.length?[3,2]:(o=n*Math.min(jh,t.qHyperCube.qSize.qcy),[4,e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])]);case 1:r=i.sent(),i.label=2;case 2:return[2,{initialDataPages:r,derivedFrom:{layout:t,page:n}}]}}))}))},cS=function(e){var n=e.app,r=e.layout,l=e.model,s=e.rect,u=e.theme,c=e.keyboard,d=e.translator,p=e.interactions,f=e.selectionsAPI,m=e.changeSortOrder,h=e.rootElement,g=e.embed,b=e.reactRoot,v=e.applyColumnWidths,y=e.isFontLoaded,S=e.viewService,E=e.isNewHeadCellMenuEnabled,C=!Un(r,S),w=t((function(){return function(e,t,n){var r=jn(e,n),o=$n(e),i=e.qHyperCube.qSize.qcy,a=Math.min(jh,i),l=i>jh&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(r,p,S)}),[r,p,S]),R=function(e,n){var r=o(0),i=r[0],a=r[1],l=Math.min(jh,e.qHyperCube.qSize.qcy),s=t((function(){return{page:i,rowsPerPage:l,rowsPerPageOptions:[]}}),[l,i]);if(n){var u=Math.floor(e.qHyperCube.qSize.qcy/jh);u<i&&a(u)}return{pageInfo:s,setPage:a}}(r,C),A=R.pageInfo,D=R.setPage,P=function(e){var t=e.model,n=e.layout,r=e.shouldRender,o=e.page,a=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){return r&&t?[2,uS(t,n,o)]:[2,void 0]}))}))}),[t,n,o])[0],l=(null==a?void 0:a.derivedFrom.layout)!==n||(null==a?void 0:a.derivedFrom.page)!==o;return{initialDataPages:null==a?void 0:a.initialDataPages,isLoading:l}}({model:l,layout:r,page:A.page,shouldRender:C}),I=P.initialDataPages,T=P.isLoading;a((function(){C&&l&&m&&I&&!T&&y&&function(e,t){var n=e.app,r=e.selectionsAPI,o=e.layout,i=e.model,a=e.translator,l=e.interactions,s=e.theme,u=e.keyboard,c=e.rect,d=e.rootElement,p=e.embed,f=e.changeSortOrder,m=e.tableData,h=e.applyColumnWidths,g=e.setPage,b=e.pageInfo,v=e.initialDataPages,y=e.viewService,S=e.isNewHeadCellMenuEnabled,E=ib("ltr");t.render(x.createElement(x.StrictMode,null,x.createElement(eu,{theme:E},x.createElement(rb,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S},x.createElement(nS,null)))))}({app:n,layout:r,model:l,rect:s,theme:u,keyboard:c,translator:d,interactions:p,selectionsAPI:f,rootElement:h,embed:g,changeSortOrder:m,tableData:w,applyColumnWidths:v,setPage:D,pageInfo:A,initialDataPages:I,viewService:S,isNewHeadCellMenuEnabled:E},b)}),[n,r,l,s,u.name(),c.active,d,p,f,m,C,h,g,b,w,v,D,A,T,I,y,E])};var dS={properties:{initial:{version:JSON.stringify("2.9.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]}},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Ln,exportProperties:In};function pS(e,t){var n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};var r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=function(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1}(s,u),d=function(e,t){if(!e)return-1;for(var n=e.length-1;n>-1;n--){var r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1}(s,u),p=function(e,t,n){if(!e||0===e.length||n<0)return 0;var r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)}(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}var fS=function(e,t){if(t)for(var n=0;n<t.length;n++){var r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},mS=function(e,t,n){if(!e)return!1;var r=e.y+e.height/2;return r>=t&&r<=n};var hS=function(e,t,n,r){var o;if(e<0)return 0;var i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||aS.rowsPerPage,l=(null===(o=r.viewState)||void 0===o?void 0:o.isMultiPage)?0:3;return Math.min(i,a,e-t+1+l)},gS=function(e,t,n){if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;var r=jn(e,t);if(Un(e,t)){var o=pS(n,r),i=o.visibleRowStartIndex,a=void 0===i?-1:i,l=o.visibleRowEndIndex,s=void 0===l?-1:l;return{rowPartialHeight:o.rowPartialHeight,scrollLeft:t.scrollLeft,visibleTop:t.qTop+a,visibleHeight:hS(s,a,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}var u=function(e,t){var n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};var i=t.scrollTopRatio,a=void 0===i?0:i,l=t.visibleTop,s=void 0===l?0:l,u=t.visibleHeight,c=void 0===u?0:u,d=t.page,p=void 0===d?0:d,f=t.rowsPerPage,m=p*(void 0===f?0:f),h=s-m,g=h+c-1,b=fS(h,o),v=null==b?void 0:b.getBoundingClientRect();if(!b||!v)return{};var y=r.y;if(1-a<.001)return{visibleRowStartIndex:h+(v.y>=y-4?0:1)+m,visibleRowEndIndex:g+m};var x=r.y+r.height,S=(mS(v,y,x)?h:h+1)+m,E=g+m,C=fS(g,o),w=null==C?void 0:C.getBoundingClientRect();return C&&w&&(mS(w,y,x)||(E=g-1+m)),{visibleRowStartIndex:S,visibleRowEndIndex:E}}(n,t),c=u.visibleRowStartIndex,d=void 0===c?-1:c,p=u.visibleRowEndIndex,f=void 0===p?-1:p;return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:d,visibleHeight:hS(f,d,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},bS=function(e){return e.getStyle("","","object.straightTableV2.backgroundColor")},vS=function(e){return e.getStyle("object","straightTableV2","backgroundColor")};function yS(o){return{qae:dS,ext:qn(o),component:function(){var y,x=u(),S=function(e){var n=t((function(){return K(e)}),[e]);return a((function(){return function(){return n.unmount()}}),[n]),n}(x),E=c(),C=d(),w=p(),R=f(),A=m(),D=h(),P=g(),I=r().freeResize,T=b(),L=(null===(y=null==E?void 0:E.snapshotData)||void 0===y?void 0:y.content)&&!I?j(j({},T),E.snapshotData.content.size):T,M=function(e){var n=r().viewState;return t((function(){return function(e,t){var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null===(n=null==t?void 0:t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(i=null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.visibleTop)&&void 0!==i?i:null==e?void 0:e.visibleTop,visibleHeight:null!==(l=null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.visibleHeight)&&void 0!==l?l:null==e?void 0:e.visibleHeight,scrollLeft:null!==(c=null!==(u=null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==c?c:0,scrollTopRatio:null!==(p=null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.scrollTopRatio)&&void 0!==p?p:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(m=null===(f=null==t?void 0:t.content)||void 0===f?void 0:f.rowsPerPage)&&void 0!==m?m:null==e?void 0:e.rowsPerPage,page:null!==(g=null===(h=null==t?void 0:t.content)||void 0===h?void 0:h.page)&&void 0!==g?g:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(v=null===(b=null==t?void 0:t.content)||void 0===b?void 0:b.estimatedRowHeight)&&void 0!==v?v:0}}(n,e.snapshotData)}),[n,e.snapshotData,e.usePagination])}(E),q=v(),k=((n,r,o)=>{const i=e();return t((()=>({...i,background:qe(i,n,r,o)})),[i.name(),n,r,o])})(x,bS,vS),O=o.flags.isEnabled("HEAD_CELL_MENU_TEST_FLAG"),N=sS(E.qHyperCube,w,O),_=On(E.qHyperCube,w),F=function(e,t){var n=Gg(t,e,!1),r=n.fontSize,o=n.fontFamily,a=Yg(t,e),l=a.fontSize,s=a.fontFamily,u=i((function(){return B(void 0,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return[4,document.fonts.load("600 ".concat(r," ").concat(o))];case 1:return e.sent(),[4,document.fonts.load("".concat(l," ").concat(s))];case 2:return e.sent(),[2,!0]}}))}))}),[r,o,l,s]),c=u[0],d=u[1];return d?(console.warn("Failed to load font:",d),!0):!!c}(k,E);!function(){var e=this;null==n||n((function(t,n){n.target&&n.target.closest(".sn-table-cell")&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:function(){return B(e,void 0,void 0,(function(){return $(this,(function(e){return kn(n),[2]}))}))}})}))}(),o.flags.isEnabled("PS_20907_TABLE_DOWNLOAD")&&function(e){var t=e.layout,n=e.viewService,r=e.model,o=e.rootElement,i=e.contentRect;l((function(e){return B(void 0,void 0,void 0,(function(){var a,l,s,u,c,d,p,f,m,h,g;return $(this,(function(b){switch(b.label){case 0:return e.snapshotData&&r&&!e.snapshotData.content?r.getHyperCubeData?(e.qHyperCube||(e.qHyperCube={}),a=gS(t,n,o),l=a.rowPartialHeight,s=a.scrollLeft,u=a.scrollTopRatio,c=a.visibleLeft,d=a.visibleWidth,p=a.visibleTop,f=a.visibleHeight,m=a.rowsPerPage,h=a.page,g=e.qHyperCube,[4,r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=p?p:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=f?f:0}])]):[3,2]:[2,e];case 1:g.qDataPages=b.sent(),e.snapshotData.content={rowPartialHeight:l,scrollLeft:s,scrollTopRatio:u,visibleLeft:c,visibleWidth:d,visibleTop:p,visibleHeight:f,rowsPerPage:m,page:h,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight},b.label=2;case 2:return[2,e]}}))}))})),s((function(){return{getViewState:function(){return gS(t,n,o)}}}),[t,n,o])}({layout:E,viewService:M,model:w,rootElement:x,contentRect:T}),cS({isNewHeadCellMenuEnabled:O,app:C,layout:E,model:w,rect:L,theme:k,keyboard:P,translator:A,interactions:R,selectionsAPI:D,changeSortOrder:N,rootElement:x,embed:q,reactRoot:S,applyColumnWidths:_,isFontLoaded:F,viewService:M}),lS({isNewHeadCellMenuEnabled:O,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:D,theme:k,changeSortOrder:N,keyboard:P,rect:L,embed:q,reactRoot:S,applyColumnWidths:_,isFontLoaded:F,viewService:M})}}}export{yS as default};
|